3 static float GetParamFloat(
string surface_name,
string param_name)
5 return GetGame().ConfigGetFloat(
"CfgSurfaces " + surface_name +
" " + param_name);
8 static bool AllowedWaterSurface(
float pHeight,
string pSurface,
array<string> pAllowedSurfaceList)
12 pSurface.Replace(
"_ext",
"");
13 pSurface.Replace(
"_int",
"");
16 bool isSeaCheck =
false;
18 foreach (
string allowedSurface : pAllowedSurfaceList)
20 if (pSurface ==
"" && allowedSurface ==
UAWaterType.SEA)
21 isSeaCheck = pHeight <=
g_Game.SurfaceGetSeaLevel() + 0.001;
23 if (isSeaCheck || allowedSurface == pSurface)