13 static int GetParamInt(
string surface_name,
string param_name)
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)
61 success = pHeight <= (
g_Game.SurfaceGetSeaLevel() + 0.25);
68 success = allowedWaterSourceMask & liquidType;
proto native float ConfigGetFloat(string path)
Get float value from config on path.
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
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.
proto native CGame GetGame()
const int LIQUID_SALTWATER
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.