Func timescale: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Initial creation of article on func_timescale)
 
mNo edit summary
Line 22: Line 22:
==Inputs==
==Inputs==
{{I Targetname}}
{{I Targetname}}
{{ScrollBox|title=AmbientMusic|
{{ScrollBox|title=TimeScale|
; <code>Playsound</code>
; <code>Start</code>
: Starts the sound.
: Start blending to the desired timescale.
; <code>Stopsound</code>
; <code>Stop</code>
: Stops the sound if it is playing.
: Stop and blend back to the default timescale (1.0f).
; <code>Reset</code>
: Reset immediately to normal timescale (1.0f).
}}
}}
==Outputs==
==Outputs==

Revision as of 13:38, 22 May 2010

Template:L4d2 point It is used to adjust the time scale of the server and client.

Stub

This article or section is a stub. You can help by expanding it.

KeyValues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
  • desiredTimescale:
Desired timescale <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:
Acceleration per second <float>
How quickly the change per second goes up to the max.
  • minBlendRate:
Minimum blend per second <float>
Minimum change per second when blending from the current timescale to the desired.
  • blendDeltaMultiplier:
Perframe delta multiplier <float>
The per frame delta between desired and current is multiplied by this to get the maximum change per second.

Inputs

TimeScale:
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).

Outputs

See also

External links