player_capabilities

A player_capabilities turns off or on what the player who triggered it can do: attack, jump, duck, use things, make
step sounds and move.
Attributes
The entity also has these common keys:
- Naming and triggering: Name
KeyDescriptionDefault
Attack capability
attack_capabilitySets whether the player can use the primary and the secondary attack of their weapons. A zoomed weapon stays zoomed while attacks are off.
- Off (-1)
- No change (0)
- On (1)
- Toggle (2)
- Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default
No change (0)Jump capability
jump_capabilitySets whether the player can jump.
- Off (-1)
- No change (0)
- On (1)
- Toggle (2)
- Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default
No change (0)Duck capability
duck_capabilitySets whether the player can duck.
- Off (-1)
- No change (0)
- On (1)
- Toggle (2)
- Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default
No change (0)Use capability
use_capabilitySets whether the player can use buttons, mounted guns and trains with the use key.
- Off (-1)
- No change (0)
- On (1)
- Toggle (2)
- Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default
No change (0)Step sounds
stepsound_capabilitySets whether the player makes footstep sounds.
- Off (-1)
- No change (0)
- On (1)
- Toggle (2)
- Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default
No change (0)Movement capability
movement_capabilitySets whether the player can walk, strafe and swim. Jumping and pushes still work.
- Off (-1)
- No change (0)
- On (1)
- Toggle (2)
- Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default
No change (0)Notes
- It only changes the activator, and only if that is an alive player
- When a
trigger_relayfires it, the relay needs its flag Forward activator so the player stays the activator - The change lasts until another
player_capabilitieschanges it back or the player respawns - The player's game gets the change at once, so their movement doesn't stutter
See also
player_speed- changes a player's top speedtrigger_playerfreeze- freezes players in place
Changes since 1.38
player_capabilitiesis new
