3 static int GetStepsParticleID(
string surface_name)
8 static int GetWheelParticleID(
string surface_name)
13 static int GetParamInt(
string surface_name,
string param_name)
15 return GetGame().ConfigGetInt(
"CfgSurfaces " + surface_name +
" " + param_name);
18 static float GetParamFloat(
string surface_name,
string param_name)
20 return GetGame().ConfigGetFloat(
"CfgSurfaces " + surface_name +
" " + param_name);
23 static string GetParamText(
string surfaceName,
string paramName)
26 GetGame().ConfigGetText(
"CfgSurfaces " + surfaceName +
" " + paramName, output);
31 static bool AllowedWaterSurface(
float pHeight,
string pSurface,
array<string> pAllowedSurfaceList)
35 pSurface.Replace(
"_ext",
"");
36 pSurface.Replace(
"_int",
"");
37 pSurface.Replace(
"sakhal_",
"");
40 bool isSeaCheck =
false;
42 foreach (
string allowedSurface : pAllowedSurfaceList)
44 if (pSurface ==
"" && allowedSurface ==
UAWaterType.SEA)
45 isSeaCheck = pHeight <= (
g_Game.SurfaceGetSeaLevel() + 0.25);
47 if (isSeaCheck || allowedSurface == pSurface)
54 static bool CheckLiquidSource(
float pHeight,
string pSurface,
int allowedWaterSourceMask)
61 success = pHeight <= (
g_Game.SurfaceGetSeaLevel() + 0.25);
67 success = allowedWaterSourceMask & liquidType;