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

trigger_auto_crouch

From Valve Developer Community
Revision as of 23:32, 13 May 2024 by MyGamepedia (talk | contribs)
Jump to navigation Jump to search
English (en)Translate (Translate)
C++ Class hierarchy
CTriggerAutoCrouch
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger_auto_crouch is an e2 available in all Source Source games since Left 4 Dead Left 4 Dead. It is also avaible in Black Mesa Black Mesa. 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.

Icon-Bug.pngBug:Non-functional in Counter-Strike: Global Offensive[confirm]  [todo tested in ?]
Note.pngNote: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  [todo tested in ?]

Keyvalues

Name (targetname) <string>[ Edit ]
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

Flags

BaseTrigger
Everything (not including physics debris) : [64]
Clients (Survivors, Special Infected, Tanks Left 4 Dead seriesLeft 4 Dead series) : [1]
Only clients in vehicles : [32]
Only clients *not* in vehicles : [512]
Disallow Bots (removed since Left 4 Dead) : [4096]
NPCs (Common Infected, Witches Left 4 Dead seriesLeft 4 Dead series) : [2]
Only player ally NPCs : [16]
Only NPCs in vehicles (respects player ally flag) : [2048]
Physics Objects (not including physics debris) : [8]
Physics debris (include also physics debris) : [1024]
Pushables (Passes entities with classname func_pushable) : [4] Obsolete
Deprecated.
Equivalent to using Everything + filter_activator_class that filters func_pushable.

See also