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
No edit summary
No edit summary
 
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Trigger auto crouch}}{{CD|CTriggerAutoCrouch|file1=triggers.cpp}}
{{Ent not in fgd}}
{{this is a|brush entity|name=trigger_auto_crouch|since=Left 4 Dead}} It is also available in {{bms|4}}. 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.
{{LanguageBar}}
{{bug|Non-functional in {{csgo|4}} and {{bms|4}}.}}
{{CD|CTriggerAutoCrouch|file1=triggers.cpp}}
{{bug|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.}}
{{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.
{{note|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.}}
{{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.}}
{{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.}}
{{note|This entity simply sets or unsets <code>m_isAutoCrouchEnabled</code> property on players.}}
{{note|Non-functional in {{csgo|4}} and {{bms|4}}.}}


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


== See also ==
== See also ==
* {{ent|trigger_playermovement}}
* {{ent|trigger_playermovement}}
* {{ent|point_playermoveconstraint}}
* {{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