DIFF

class SurfaceInfoSource

SurfaceInfo SurfaceProperties

All members, including inherited

Unmanaged surface info handle. Provides API to surfaces that are defined as part of 'CfgSurfaces' or exist in an objects .bisurf file. Lifetime is managed in code so don't store handles of this type yourself. Any created 'SurfaceInfo' is destroyed during 'Game' ScriptModule destruction.

Constructors 2

protected void SurfaceInfo()
protected void ~SurfaceInfo()

Methods 21

proto static SurfaceInfo GetByName(string name)

Warning: O(n) time complexity where n is the total number of loaded surfaces Note: Will load the surface if not loaded Warning: If the surface name is invalid, it will still create a SurfaceInfo

proto static SurfaceInfo GetByFile(string name)

Warning: O(n) time complexity where n is the total number of loaded surfaces Note: Will load the surface if not loaded Warning: If the surface name is invalid, it will still create a SurfaceInfo 'CfgSurfaces' can be pathed by having the name prefixed with '#', so 'GetByFile("#cp_grass")' will return same as 'GetByName("cp_grass")'

proto string GetName()
proto string GetEntryName()
proto string GetSurfaceType()
proto float GetRoughness()
proto float GetDustness()
proto float GetBulletPenetrability()
proto float GetThickness()
proto float GetDeflection()
proto float GetTransparency()
proto float GetAudability()
proto bool IsLiquid()
proto bool IsStairs()
proto bool IsPassthrough()
proto string GetSoundEnv()
proto string GetImpact()
proto int GetLiquidType()

See 'LiquidTypes' in 'constants.c'

proto int GetStepParticleId()

See 'ParticleList', if config entry not set, value is 'ParticleList.NONE', if config entry is set but doesn't exist, value is 'ParticleList.INVALID'

proto int GetWheelParticleId()