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

Trigger auto crouch: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
 
(26 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{note|The current description of this entity is based on unofficial data based on data mining. Anything that may be read here is largely incomplete or, in some cases, incorrect.}}
{{Ent not in fgd}}
 
{{LanguageBar}}
== Entity description ==
{{CD|CTriggerAutoCrouch|file1=triggers.cpp}}
Automatically crouch the survivor - part of a system created by Valve to divert the attention from controls so that players are focused on the horroristic environment instead.
{{This is a|brush entity|name=trigger_auto_crouch|since=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.
 
{{confusion|This does '''NOT''' force crouch. If you want a trigger to force crouching no matter what, use {{ent|trigger_playermovement}} using the "Auto-duck while in trigger" and the "Disable auto player movement" flags.}}
== Keyvalues ==
{{bug|hidetested=1|In {{l4ds|4}} 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.}}
* {{kv targetname}}
{{note|This entity simply sets or unsets <code>m_isAutoCrouchEnabled</code> property on players.}}
* {{KV Angles}}
{{note|Non-functional in {{csgo|4}} and {{bms|4}}.}}
* {{kv origin}}


== Flags ==
== Flags ==
* 1: ?
{{Fl|1|Clients {{in|{{l4ds}}|text=Survivors, Special Infected, Tanks}}}}
:{{note|Any other flags are irrelevant for this trigger's main purpose}}


[[Category:Left 4 Dead Entities]]
== See also ==
* {{ent|trigger_playermovement}}
* {{ent|point_playermoveconstraint}}

Latest revision as of 09:31, 5 April 2025

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)
C++ Class hierarchy
CTriggerAutoCrouch
CBaseTrigger
CBaseToggle
CBaseEntity
C++ 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