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, search
English (en)
... Icon-Important.png
class hierarchy
CTriggerAutoCrouch defined in triggers.cpp
CBaseTrigger
CBaseToggle
CBaseEntity

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.

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

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Flags


BaseTrigger:
  •  [1] : Clients (Survivors, Special Infected, Tanks Left 4 Dead series)
  •  [2] : NPCs (Common Infected, Witches Left 4 Dead series)
  •  [8] : Physics Objects
  •  [16] : Only player ally NPCs
  •  [32] : Only clients in vehicles
  •  [64] : Everything (not including physics debris)
  •  [512] : Only clients *not* in vehicles
  •  [1024] : Physics debris
  •  [2048] : Only NPCs in vehicles (respects player ally flag)
  •  [4096] : Disallow Bots

See also