Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Jul 17, 2024
1 parent 6f81928 commit 094dd24
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 21 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Various ini settings allow to customize the appearance and can be edited while i

# List of releases

## Splinter Cell Blacklist - [Download Link](https://github.com/ThirteenAG/XboxRainDroplets/releases/tag/scb)

#### Screen:

![scb](https://github.com/user-attachments/assets/3121f763-6926-4c96-8076-651654f39ee3)

## Grand Theft Auto IV: The Complete Edition - [Download Link](https://github.com/ThirteenAG/XboxRainDroplets/releases/tag/gtaiv)

#### Video (click on the image to go to YouTube):
Expand Down
49 changes: 31 additions & 18 deletions source/SplinterCellBlacklist.XboxRainDroplets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,25 @@ void Init()
//auto at = *(RwV3d*)(regs.ebx + 0x8C);
//auto pos = *(RwV3d*)(regs.ebx + 0x9C);
//
//WaterDrops::right = right;
//WaterDrops::up = up;
//WaterDrops::at = at;
//WaterDrops::pos = pos;
//WaterDrops::at = { -right.x, -right.z, -right.y };
//WaterDrops::up = { up.x, up.z, up.y };
//WaterDrops::right = { -at.x, -at.z, -at.y };
//WaterDrops::pos = { pos.x, pos.z, pos.y };
//
//if (WaterDrops::fSpeedAdjuster)
//{
// WaterDrops::right.x *= WaterDrops::fSpeedAdjuster;
// WaterDrops::right.y *= WaterDrops::fSpeedAdjuster;
// WaterDrops::right.z *= WaterDrops::fSpeedAdjuster;
//}

WaterDrops::ms_rainIntensity -= 0.05f;
if (WaterDrops::ms_rainIntensity < 0.0f)
WaterDrops::ms_rainIntensity = 0.0f;

WaterDrops::ms_rainIntensity = 0.0f;
#ifdef DEBUG
WaterDrops::ms_rainIntensity = 1.0f;
#endif // DEBUG
});

pattern = hook::pattern("F3 0F 11 44 24 ? F3 0F 11 45 ? F3 0F 11 04 24 E8 ? ? ? ? 8B 7D F0 8A 55 0B");
Expand Down Expand Up @@ -55,19 +68,19 @@ void Init()
{
auto pSwapChain = *(IDXGISwapChain**)(regs.edi + 0x330);

static bool bOnce = false;
if (!bOnce)
{
bOnce = true;
ID3D11Device* pDevice = nullptr;
HRESULT ret = pSwapChain->GetDevice(__uuidof(ID3D11Device), (PVOID*)&pDevice);
ID3D10Multithread* multithread = nullptr;
if (SUCCEEDED(pDevice->QueryInterface(__uuidof(ID3D10Multithread), (void**)&multithread))) {
multithread->SetMultithreadProtected(TRUE);
multithread->Release();
}
pDevice->Release();
}
//static bool bOnce = false;
//if (!bOnce)
//{
// bOnce = true;
// ID3D11Device* pDevice = nullptr;
// HRESULT ret = pSwapChain->GetDevice(__uuidof(ID3D11Device), (PVOID*)&pDevice);
// ID3D10Multithread* multithread = nullptr;
// if (SUCCEEDED(pDevice->QueryInterface(__uuidof(ID3D10Multithread), (void**)&multithread))) {
// multithread->SetMultithreadProtected(TRUE);
// multithread->Release();
// }
// pDevice->Release();
//}

Sire::Init(Sire::SIRE_RENDERER_DX11, pSwapChain);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[MAIN]
MinSize = 5
MaxSize = 16
MinSize = 10
MaxSize = 26
MaxDrops = 350
MaxMovingDrops = 600
RadialMovement = 1
EnableGravity = 1
SpeedAdjuster = 1.0
MoveStep = 1.0
MoveStep = 0.1

0 comments on commit 094dd24

Please sign in to comment.