DIFF

class SurfaceInfo

SurfaceInfo › SurfaceProperties

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 35

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 float GetRoughness()
proto float GetDustness()
proto float GetBulletPenetrability()
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 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 string GetStepSoundSetName()
proto int GetWheelParticleId()
proto string GetWheelSoundSetName()
proto int GetWheelContactParticleId()
proto string GetWheelContactSoundSetName()
proto int GetVehicleDustParticleId()
proto string GetVehicleDustSoundSetName()
proto int GetDustKickupEffectId()
proto int GetDustKickupEffectSmallId()
proto int GetDustKickupEffectBigId()
proto int GetCloudEffectParticleId()
proto string GetCloudEffectSoundSetName()
proto int GetGroundEffectParticleId()
proto string GetGroundEffectSoundSetName()
proto int GetCeilingDustParticleId()