Player speedmod: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{lang|Player speedmod|title=player_speedmod}}
{{lang|title=player_speedmod}}
 
{{infotable
{{infotable
|player_speedmod|img=[[File:player_speedmod.png]]
|player_speedmod
|img=[[File:player_speedmod.png]]
|type=e0
|type=e0
|engine=2
|engine=2
|in=0
|in=0
}} {{point ent|icon block=|this=|engine={{source|4}}}} This entity 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.
}}
 
{{entity|player_speedmod|type=e0}} This entity 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|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.}}
{{Note|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.}}

Revision as of 02:22, 9 February 2023

English (en)Translate (Translate)
player_speedmod
Player speedmod.png
TypePoint entity
EngineSource Source
AvailabilityIn all games
 

Template:Entity This entity 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