3 static int GetParamInt(
string surface_name,
string param_name)
5 return g_Game.ConfigGetInt(
"CfgSurfaces " + surface_name +
" " + param_name);
10 return g_Game.ConfigGetFloat(
"CfgSurfaces " + surface_name +
" " + param_name);
27 pSurface.
Replace(
"sakhal_",
"");
30 bool isSeaCheck =
false;
32 foreach (
string allowedSurface : pAllowedSurfaceList)
35 isSeaCheck = pHeight <= (
g_Game.SurfaceGetSeaLevel() + 0.25);
37 if (isSeaCheck || allowedSurface == pSurface)
58 success = allowedWaterSourceMask & liquidType;
64 [
Obsolete(
"1.30: use SurfaceInfo.GetStepParticleId directly")]
70 [
Obsolete(
"1.30: use SurfaceInfo.GetWheelParticleId directly")]
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.
void Obsolete(string msg="")
const int LIQUID_SALTWATER
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.