This article relates to the game "Left 4 Dead 2". Click here for more information.

func_timescale

From Valve Developer Community
Jump to: navigation, search

class hierarchy
CFuncTimescale
CBaseEntity

func_timescale is a point entity available in Left 4 Dead 2 Left 4 Dead 2.

English (en)中文 (zh)
Edit

Adjust the time scale of the server and client.

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Desired timescale (desiredTimescale) <float>
Time scale to blend towards, this is a multiplicative value where 1.0 is normal time, 0.5 is half speed, 2.0 is double speed.
Acceleration per second (acceleration) <float>
How quickly the change per second goes up to the max.
Minimum blend per second (minBlendRate) <float>
Minimum change per second when blending from the current timescale to the desired.
Perframe delta multiplier (blendDeltaMultiplier) <float>
The per frame delta between desired and current is multiplied by this to get the maximum change per second.

Inputs

Start
Start blending to the desired timescale.
Stop
Stop and blend back to the default timescale (1.0f).
Reset
Reset immediately to normal timescale (1.0f).

See also