func_timescale
Jump to navigation
Jump to search
Code classes:
CFuncTimescale
CBaseEntity
(all ents)
func_timescale
is a point entity present in Left 4 Dead 2. It speeds up or slows down the entire game without changing host_timescale
.
To do: Work out a formula for how long blending lasts in real-world seconds.
Keyvalues[edit | edit source]
- Desired timescale
(desiredTimescale)
<float>
- How fast the game should run as a scalar of default speed. 0.5 is half, 2.0 is double speed.
- Minimum blend per second
(minBlendRate)
<float>
- Minimum change per second when blending from the current timescale to the desired. To do: Real-world seconds or in-game seconds?
- Acceleration per second
(acceleration)
<float>
- How quickly the change per second goes up to the max. To do: Real-world seconds or in-game seconds?
- Perframe delta multiplier
(blendDeltaMultiplier)
<float>
- The per frame delta between desired and current (Confirm: Minimum + Accel * time?) is multiplied by this to get the maximum change per second.
Inputs[edit | edit source]
- Start
- Blends to the desired timescale.
- Stop
- Blends back to the normal timescale.
- Reset
- Goes immediately back to regular timescale.