Trigger auto crouch: Difference between revisions
Jump to navigation
Jump to search

Risk 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.
Bug:In 
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:This entity simply sets or unsets
Note:Non-functional in
Counter-Strike: Global Offensive and
Black Mesa.
No edit summary |
No edit summary |
||
(28 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Ent not in fgd}} | ||
{{LanguageBar}} | |||
{{CD|CTriggerAutoCrouch|file1=triggers.cpp}} | |||
{{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.}} | |||
{{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 == | ||
{{Fl|1|Clients {{in|{{l4ds}}|text=Survivors, Special Infected, Tanks}}}} | |||
:{{note|Any other flags are irrelevant for this trigger's main purpose}} | |||
== | == See also == | ||
* {{ | * {{ent|trigger_playermovement}} | ||
* {{ | * {{ent|point_playermoveconstraint}} | ||
Latest revision as of 09:31, 5 April 2025


![]() |
---|
CTriggerAutoCrouch |
![]() |
trigger_auto_crouch
is a brush entity available in all Source games 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.





m_isAutoCrouchEnabled
property on players.


Flags
- Clients (Survivors, Special Infected, Tanks
) : [1]
Note:Any other flags are irrelevant for this trigger's main purpose