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

Player speedmod

From Valve Developer Community
Jump to: navigation, search

English (en)
class hierarchy
CMovementSpeedMod defined in player.cpp

player_speedmod is a point entity 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.
Warning.pngWarning:player_speedmod will not reset if a round restarts.


Name (targetname) <string>
The targetname that other entities refer to this entity by.


ModifySpeed <float>
Modifies player speed by X amount.


  •  [1] : Suppress weapons
Note.pngNote:Due to the way it is coded, 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).
  •  [2] : Suppress HUD
  •  [4] : Suppress jump
  •  [8] : Suppress duck
  •  [16] : Suppress use
  •  [32] : Suppress sprint
  •  [64] : Suppress attack
Icon-Bug.pngBug:Suppress attack does not work on Garry's Mod
  •  [128] : Suppress zoom

See also