Entity that sets friction?

mixedgamer123

L1: Registered
Aug 29, 2011
6
0
As the title suggests, I am trying to find an entity that adjusts the players friction when they either step in a certain zone or a ground

For example, when a player steps on an ice ground, they should not be able to turn easily, they would keep sliding till the player goes the opposite way to stop themselves

And another example, when a player steps on a "chocolate" ground" they can turn VERY easily, move a bit slower and stop immediately when a movement button is depressed

Anyone know how to do this?
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
Friction is defined by the material in Source. If you want to make a custom material you can see what surfaces are available by looking at source engine.gcf/hl2/scripts/surfaceproperties.txt and team fortress 2 content.gcf/tf/scripts/surfaceproperties_tf.txt and choosing one with the friction level and other aspects you want. You can only use those that exist, however, not make custom surfaces for your map (those are mod-level files).