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

Player speedmod: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
m (clean up, replaced: See Also → See also, added underlinked tag)
Line 1: Line 1:
{{Underlinked|date=January 2024}}
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}
{{infotable
{{infotable
Line 11: Line 13:


{{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.}}


__TOC__
__TOC__
Line 31: Line 32:
{{fl|128|Suppress zoom}}
{{fl|128|Suppress zoom}}


== See Also ==
== See also ==
* <code>[[player]]</code>
* <code>[[player]]</code>


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

Revision as of 02:38, 6 January 2024

Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Translate (Translate)
player_speedmod
Player speedmod.png
TypePoint entity
EngineSource Source
AvailabilityIn all games
 

player_speedmod is an e0 available in all Source Source games. 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