13 static int GetParamInt(
string surface_name,
string param_name)
15 return g_Game.ConfigGetInt(
"CfgSurfaces " + surface_name +
" " + param_name);
20 return g_Game.ConfigGetFloat(
"CfgSurfaces " + surface_name +
" " + param_name);
26 g_Game.ConfigGetText(
"CfgSurfaces " + surfaceName +
" " + paramName, output);
37 pSurface.
Replace(
"sakhal_",
"");
40 bool isSeaCheck =
false;
42 foreach (
string allowedSurface : pAllowedSurfaceList)
45 isSeaCheck = pHeight <= (
g_Game.SurfaceGetSeaLevel() + 0.25);
47 if (isSeaCheck || allowedSurface == pSurface)
68 success = allowedWaterSourceMask & liquidType;
static string GetParamText(string surfaceName, string paramName)
static int GetStepsParticleID(string surface_name)
static bool AllowedWaterSurface(float pHeight, string pSurface, array< string > pAllowedSurfaceList)
static float GetParamFloat(string surface_name, string param_name)
static bool CheckLiquidSource(float pHeight, string pSurface, int allowedWaterSourceMask)
static int GetParamInt(string surface_name, string param_name)
static int GetWheelParticleID(string surface_name)
proto int GetLiquidType()
See 'LiquidTypes' in 'constants.c'.
static proto SurfaceInfo GetByName(string name)
proto int GetStepParticleId()
proto int GetWheelParticleId()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
const int LIQUID_SALTWATER
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.