Trigger playermovement: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Entity information may need updated)
(-added class hierarchy, some cleanup)
Line 1: Line 1:
{{update}}
{{CD|CTriggerPlayerMovement|file1=triggers.cpp}}
__NOTOC__
{{base brush|trigger_playermovement}} It can be used to control player's movement options, for instance by automatically ducking or forcing walking speed.
{{base brush|trigger_playermovement}} It can be used to control player's movement options, for instance by automatically ducking or forcing walking speed.
 
{{warning|Don't kill this trigger while players are touching. Players will stay in duck, walk or disable jump mode}}
==See also==
* [[point_playermoveconstraint]]


==Keyvalues==
==Keyvalues==
{{KV Trigger}}
{{KV Trigger}}
{{KV Targetname}}


==Flags==
==Flags==
* 16 : (OBSOLETE, Uncheck me)
* 128 : Disable auto player movement
* 2048 : Auto-duck while in trigger
* 4096 : Auto-walk while in trigger {{L4D add}}
* 8192 : Disable jump while in trigger {{l4d2 add}}


{{Fl Trigger}}
{{Fl|1|Clients (in {{l4ds}} survivors and SI)}}
{{Fl|2|NPCs (in {{l4ds}} commons and witches)}}
{{fl|16|(OBSOLETE, Uncheck me)}}
{{fl|128|Disable auto player movement}}
{{fl|2048|Auto-duck while in trigger}}
{{fl|4096|Auto-walk while in trigger {{L4D add}}}}
{{fl|8192|Disable jump while in trigger {{l4d2 add}}}}


==Inputs==
== Inputs ==
{{I Trigger}}
{{I EnableDisable}}


==Outputs==
==See also==
{{O Trigger}}
* [[point_playermoveconstraint]]


{{sensor brush}}
{{sensor brush}}

Revision as of 03:20, 6 November 2022

C++ Class hierarchy
CTriggerPlayerMovement
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

Template:Base brush It can be used to control player's movement options, for instance by automatically ducking or forcing walking speed.

Warning.pngWarning:Don't kill this trigger while players are touching. Players will stay in duck, walk or disable jump mode

Keyvalues

BaseTrigger
Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Flags

Clients (in Left 4 Dead seriesLeft 4 Dead series survivors and SI) : [1]
NPCs (in Left 4 Dead seriesLeft 4 Dead series commons and witches) : [2]
(OBSOLETE, Uncheck me) : [16]
Disable auto player movement : [128]
Auto-duck while in trigger : [2048]
Auto-walk while in trigger Template:L4D add : [4096]
Disable jump while in trigger Template:L4d2 add : [8192]

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

See also