Garry's Mod Wiki

Player:SetLaggedMovementValue

  Player:SetLaggedMovementValue( number timescale )

Description

Slows down the player movement simulation by the timescale, this is used internally in the HL2 weapon stripping sequence.

It achieves such behavior by multiplying the FrameTime by the specified timescale at the start of the movement simulation and then restoring it afterwards.

This is reset to 1 on spawn.

There is no weapon counterpart to this, you'll have to hardcode the multiplier in the weapon or call Weapon:SetNextPrimaryFire / Weapon:SetNextSecondaryFire manually.

Arguments

1 number timescale
The timescale multiplier.