physenv.AddSurfaceData
Description
Adds a material surface property type to the game's physics environment.
See util.GetSurfaceData for the opposite function.
The game has a limit of 128 surface properties - this includes properties loaded automatically from surfaceproperties.txt. Due to this, there's only a small amount of open slots that can be registered with GMod's provided surfaceproperties.txt.
Issue Tracker: 2604
Issue Tracker: 2604
Arguments
1 string properties
The properties to add. Each one should include
"base"
or the game will crash due to some values being missing.Example
Adds the "scout_baseball" surface property from TF2.