player_speedmod
Jump to navigation
Jump to search
Code classes:
CMovementSpeedMod
CPointEntity
CBaseEntity
(all ents)
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 . Just re-draws the weapon in .)
- 2: Suppress HUD (Only hides part of HUD in . Disables weapon switching and sniper scope graphic in . Hides crosshair in .)
- 8: Suppress duck
- 16: Suppress
+use
(Bug: Cubes can still be picked up, unless you send cubes the DisablePickup input.)
- 64: Suppress attack (Some viewmodels do their draw animation when attempting to fire in . Still does visual and sound effects in .)
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.