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

trigger_playermovement

From Valve Developer Community
Jump to: navigation, search
Underlinked - Logo.png
This article needs more links to other articles to help integrate it into the encyclopedia. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024


English (en)
... Icon-Important.png
class hierarchy
CTriggerPlayerMovement defined in triggers.cpp
CBaseTrigger
CBaseToggle
CBaseEntity

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.

Warning.pngWarning:Don't kill this trigger while players are touching. Players will stay in duck, walk or disable jump mode
Warning.pngWarning: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.

Keyvalues

BaseTrigger:

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

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Flags

  •  [1] : Clients (in Left 4 Dead series survivors and SI)
  •  [2] : NPCs (in Left 4 Dead series commons and witches)
  •  [16] : (OBSOLETE, Uncheck me)
  •  [128] : Disable auto player movement
  •  [2048] : Auto-duck while in trigger
  •  [4096] : Auto-walk while in trigger (in all games since Left 4 Dead)
  •  [8192] : Disable jump while in trigger (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