Player speedmod: Difference between revisions
Jump to navigation
Jump to search

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.
Warning:player_speedmod will not reset if a round restarts.
Note:Due to the way it is coded,
Bug:
[todo tested in ?]
(fix stupid offset) |
(-added class hierarchy, remove duplicate info) |
||
Line 1: | Line 1: | ||
<!-- When this page is updated to {{langsp}} or {{langsp}} 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 {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}} | ||
{{ | {{CD|CMovementSpeedMod|file1=player.cpp}} | ||
| | |||
| | |||
}} | |||
{{this is a|point entity|name=player_speedmod}} 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. | {{this is a|point entity|name=player_speedmod}} 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.}} | ||
{{Warning|player_speedmod will not reset if a '''round''' restarts.}} | {{Warning|player_speedmod will not reset if a '''round''' restarts.}} | ||
__NOTOC__ | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
Line 36: | Line 26: | ||
== See also == | == See also == | ||
* | * {{ent|player}} | ||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 08:49, 18 June 2024


![]() |
---|
CMovementSpeedMod |
![]() |
player_speedmod
is a point entity available in all 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.


Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- ModifySpeed <float >
- Modifies player speed by X amount.
Flags
- Suppress weapons : [1]

Suppress weapons
only holsters and hides the active weapon. Switching to other weapons (and back to the hidden one) remains available (unless also using Suppress HUD
. Even then, switching by picking up new weapons or ammo for depleted weapons is still possible). - Suppress HUD : [2]
- Suppress jump : [4]
- Suppress duck : [8]
- Suppress use : [16]
- Suppress sprint : [32]
- Suppress attack : [64]

Suppress attack
does not work on 
- Suppress zoom : [128]