player_speedmod

From Source Entities
Jump to navigation Jump to search

Code classes:

player_speedmod is a point entity present in all Source games. It changes the player's velocity (including falling speed) and can disable various things.

Flags[edit | edit source]

  • 1: Suppress weapons - Hides and disables weapons. (Stops working when weapons are switched in Css.pngCsgo-small.png. Just re-draws the weapon in L4d.pngL4d2-small.png.)
  • 2: Suppress HUD (Only hides part of HUD in Css.png. Disables weapon switching and sniper scope graphic in Css.pngCsgo-small.pngL4d.pngL4d2-small.png. Hides crosshair in P2.png.)
  • 4: Suppress jump (View still shifts up for a moment in Css.pngCsgo-small.pngL4d.pngL4d2-small.png.)
  • 8: Suppress duck
  • 16: Suppress +use (Bug: P2.pngCubes can still be picked up, unless you send cubes the DisablePickup input.)
  • 32: Suppress sprintHl2.png
  • 64: Suppress attack (Some viewmodels do their draw animation when attempting to fire in Css.png. Still does visual and sound effects in Css.pngCsgo-small.pngL4d.pngL4d2-small.png.)
  • 128: Suppress zoom (Does not work in Css.pngP2.pngCsgo-small.png.)

Inputs[edit | edit source]

ModifySpeed <float>
Multiplies the player velocity by this much and does the things specified in the flags. To set everything back to normal, send the input with the parameter 1.
Note: In multiplayer, the !activator must be a player in order to work.
Tip: Set the speed to .99 to only use the flags.