Player speedmod: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (removed {{DISPLAYTITLE}}, covered by the base point template)
(-more concise page)
Line 1: Line 1:
{{base_point|player_speedmod}}
{{base_point|player_speedmod}}


==Entity description==
Speeds up or slows down player velocity over time (slow motion / fast forward.) To disable it, fire the input "ModifySpeed 1.0" to reset the speed multiplier.
Speeds up or slows down player velocity over time (slow motion / fast forward.) To disable it, fire the input "ModifySpeed 1.0" to reset the speed multiplier.


Line 8: Line 7:
==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV Targetname}}
== Flags ==
* 1 : Suppress weapons
* 2 : Suppress HUD
* 4 : Suppress jump
* 8 : Suppress duck
* 16 : Suppress use
* 32 : Suppress sprint
* 64 : Suppress attack
* 128 : Suppress zoom


==Inputs==
==Inputs==
{{I Targetname}}
{{IO|ModifySpeed|Modifies player speed by X amount.|param=float}}
{{IO|ModifySpeed|Modifies player speed by X amount.|param=float}}


==Outputs==
== Flags ==
* {{O Targetname}}
{{fl|1|Suppress weapons}}
{{fl|2|Suppress HUD}}
{{fl|4|Suppress jump}}
{{fl|8|Suppress duck}}
{{fl|16|Suppress use}}
{{fl|32|Suppress sprint}}
{{fl|64|Suppress attack}}
{{fl|128|Suppress zoom}}
 
== See Also ==
* [[player]]


[[Category:Entities]]
[[Category:Entities]]

Revision as of 15:53, 25 October 2022

Template:Base point

Speeds up or slows down player velocity over time (slow motion / fast forward.) To disable it, fire the input "ModifySpeed 1.0" to reset the speed multiplier.

Note.pngNote:Using player_speedmod will always disable the flashlight. To enable the flashlight even as player_speedmod is active: right after firing the ModifySpeed input, fire an "EnableFlashlight" input to !player.

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

Inputs

ModifySpeed <floatRedirectInput/float>
Modifies player speed by X amount.

Flags

Suppress weapons : [1]
Suppress HUD : [2]
Suppress jump : [4]
Suppress duck : [8]
Suppress use : [16]
Suppress sprint : [32]
Suppress attack : [64]
Suppress zoom : [128]

See Also