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

Trigger playermovement: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(19 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{{wrongtitle|title=trigger_playermovement}}
{{LanguageBar}}
{{base_brush}}[[Category: GUI Entities]]
{{CD|CTriggerPlayerMovement|file1=triggers.cpp}}
__NOTOC__
{{This is a|brush entity|name=trigger_playermovement}} It can be used to control player's movement options, for instance by automatically ducking or forcing walking speed.
{{bug|If trigger is killed while players are touching they will stay in duck, walk or disable jump mode}}
{{bug|{{tf2}}Players will remain stuck in duck, walk, or disable jump mode if they die within the volume and the round subsequently resets.  This behavior is not removed until the player enters and exits the trigger volume again after respawning.  Untested in other games, but you should probably not use this entity in a place where players could die while touching it shortly before round reset.}}


==Entity Description==
== Keyvalues ==
An entity that can be used to disable player's automatic ducking/unducking when jumping.
{{KV Targetname}}
{{KV Trigger}}


{{sensor_brush}}
== Flags ==
{{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|since={{l4d2}}}}
{{fl|8192|Disable jump while in trigger|since={{l4d2}}}}


{{in code|class=class_c_trigger_player_movement.html CTriggerPlayerMovement|file=triggers_8cpp-source.html triggers.cpp}}
== Inputs ==
{{I EnableDisable}}


==Keyvalues==
== See also ==
*{{kv trigger}}
* {{ent|point_playermoveconstraint}}
* {{ent|trigger_auto_crouch}}


==Flags==
{{sensor brush}}
*1 : Clients
*2 : NPCs
*4 : Pushables
*8 : Physics Objects
*16 : (OBSOLETE, Uncheck me)
*128 : Disable auto player movement
 
==Inputs==
*{{i trigger}}
 
==Outputs==
*{{o trigger}}

Latest revision as of 15:56, 26 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CTriggerPlayerMovement
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger_playermovement is a brush entity available in all Source Source games. It can be used to control player's movement options, for instance by automatically ducking or forcing walking speed.

Icon-Bug.pngBug:If trigger is killed while players are touching they will stay in duck, walk or disable jump mode  [todo tested in ?]
Icon-Bug.pngBug:Team Fortress 2Players will remain stuck in duck, walk, or disable jump mode if they die within the volume and the round subsequently resets. This behavior is not removed until the player enters and exits the trigger volume again after respawning. Untested in other games, but you should probably not use this entity in a place where players could die while touching it shortly before round reset.  [todo tested in ?]

Keyvalues

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

BaseTrigger
Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

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 : [4096] (in all games since Left 4 Dead 2)
Disable jump while in trigger : [8192] (in all games since Left 4 Dead 2)

Inputs

EnableDisable:

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

See also