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 (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
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}}
<!-- 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}}
{{this is a|brush entity|name=trigger_auto_crouch|since=Left 4 Dead}} It is also avaible 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.
{{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.
{{bug|Non-functional in {{csgo|4}} and {{bms|4}}.}}
{{bug|Non-functional in {{csgo|4}} and {{bms|4}}.}}
{{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.}}
{{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.}}

Revision as of 01:04, 18 May 2024

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. It is also available 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 Counter-Strike: Global Offensive and Black Mesa Black Mesa.  [todo tested in ?]
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 ?]
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.

Flags

Clients (Survivors, Special Infected, Tanks Left 4 Dead seriesLeft 4 Dead series)
Note.pngNote:Any other flags are irrelevant for this trigger
 : [1]

See also