------------------------------------------------------------------------
Water Removal Code
---------------------------------------------------------------------------
-----------------------------------------------------
Credits
mizdx
RockstarNorth
RockstarGames
Water Removal Code
[hide-reply]
[/hide-reply]
Code:
bool WaterTrue, WaterFalse, WaterRemoved;
int WaterCounter, WaterMaxValue;
void Water()
{
if (WaterRemoved)
{
if (!WaterTrue && !WaterFalse)
{
WaterCounter = 0;
WaterMaxValue = 0;
WaterTrue = true;
}
else
{
//printf("%s\n", );
}
}
else
{
if (!WaterFalse && !WaterTrue)
{
WaterCounter = 0;
WaterMaxValue = 0;
WaterFalse = true;
}
else
{
//printf("%s\n", );
}
}
}
void WaterFunc()
{
if (WaterTrue)
{
WaterCounter++;
for (int i = 0; i < 100 * WaterCounter; i++)
{
*(char*)(0x01A857C + WaterMaxValue) = 0x00;
WaterMaxValue++;
if (WaterMaxValue >= 6492)
{
//printf("%s\n", );
WaterTrue = false;
break;
}
}
}
}
---------------------------------------------------------------------------
-----------------------------------------------------
Credits
mizdx
RockstarNorth
RockstarGames