This article's documentation is for anything that uses the Source engine. Click here for more information.

trigger_auto_crouch

From Valve Developer Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Icon-NotInFGD.png
This entity is not in the Alien SwarmPortal 2Counter-Strike: Global Offensive FGD by default.
See below for instructions on making it available.
English (en)Translate (Translate)
Class hierarchy
CTriggerAutoCrouch
CBaseTrigger
CBaseToggle
CBaseEntity
triggers.cpp

trigger_auto_crouch is a brush entity available in all Source Source games since Left 4 Dead Left 4 Dead. If a player is touching this trigger's brush and is near a place where they can crouch under an obstacle this trigger will make the player crouch automatically.

Warning.pngRisk of Confusion:This does NOT force crouch. If you want a trigger to force crouching no matter what, use trigger_playermovement using the "Auto-duck while in trigger" and the "Disable auto player movement" flags.
Icon-Bug.pngBug:In Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series if a player is incapacitated in this trigger while the round restarts the auto crouch behavior will remain until they touch and leave an auto crouch trigger again.
Note.pngNote:This entity simply sets or unsets m_isAutoCrouchEnabled property on players.
Note.pngNote:Non-functional in Counter-Strike: Global Offensive Counter-Strike: Global Offensive and Black Mesa Black Mesa.

Flags

Clients (Survivors, Special Infected, Tanks Left 4 Dead seriesLeft 4 Dead series) : [1]
Note.pngNote:Any other flags are irrelevant for this trigger's main purpose

See also