Func friction (Source): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
{{This is a|brush entity|name=func_friction|game=Half-Life: Source|game1=Black Mesa (mod)|game2=Garry's Mod}} Supposed to allow creating an area of low friction (to simulate an icy area for example).
{{This is a|brush entity|name=func_friction|game=Half-Life: Source|game1=Black Mesa (mod)|game2=Garry's Mod}} Supposed to allow creating an area of low friction (to simulate an icy area for example).


Deprecated in favor of [[material surface properties]] with different friction values.
Deprecated in favor of [[material surface properties#Half-Life: Source|material surface properties]] with different friction values.
{{confirm|Allegedly doesn't work in {{Black Mesa (mod)}}; does it work in {{hls}} and/or {{gmod}}?}}
{{confirm|Allegedly doesn't work in {{Black Mesa (mod)}}; does it work in {{hls}} and/or {{gmod}}?}}



Latest revision as of 09:24, 9 December 2025

C++ Class hierarchy
CFrictionModifier
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

func_friction is a brush entity available in Half-Life: Source Half-Life: Source, Black Mesa (mod) Black Mesa (mod), and Garry's Mod Garry's Mod. Supposed to allow creating an area of low friction (to simulate an icy area for example).

Deprecated in favor of material surface properties with different friction values.

Confirm:Allegedly doesn't work in Black Mesa (mod); does it work in Half-Life: Source and/or Garry's Mod?

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
Friction Percent (modifier) <float>
Set the friction to this percent of the regular friction.
Note.pngNote:Other Keyvalues / Inputs / Outputs are same as CBaseTrigger.