16 bool isSeaCheck =
false;
18 foreach (
string allowedSurface : pAllowedSurfaceList)
21 isSeaCheck = pHeight <=
g_Game.SurfaceGetSeaLevel() + 0.001;
23 if (isSeaCheck || allowedSurface == pSurface)
proto native float ConfigGetFloat(string path)
Get float value from config on path.
static float GetParamFloat(string surface_name, string param_name)
static bool AllowedWaterSurface(float pHeight, string pSurface, array< string > pAllowedSurfaceList)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.