This is a simple include that adds few features to the game's water
#Include zWater
4 messages · Page 1 of 1 (latest)
To be honest this wont work, cause water isnt always below 0, some parts in GTA SA the z (IN LAND) is below 0 and they aren't in the water, and some parts the water is above 0, thats why water.dat exists
And your loop on everyone every 5 seconds is unoptimized, it should be a dynamic area...
This does not work well
Better to use ColAndreas and 3DTryg include
Tryg3D::IsPointInUnderwater(...)
Tryg3D::IsPointInWater(...)
Tryg3D::IsPointInWaterFrontOfPlayer(...)
Item::IsPointInWaterOrient(...)