Func timescale: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Cleanup)
Line 1: Line 1:
{{l4d2 point|func_timescale}} It is used to adjust the time scale of the server and client.
{{l4d2 point|func_timescale}}
{{stub}}
 
==KeyValues==
== Entity description ==
*{{KV Targetname}}
Adjust the time scale of the server and client.
*{{KV Angles}}
 
*{{ScrollBox|title=desiredTimescale|
== Keyvalues ==
; Desired timescale <[[float]]>
{{KV|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.}}
: 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.
{{KV|Acceleration per second|float|How quickly the change per second goes up to the max.}}
}}
{{KV|Minimum blend per second|float|Minimum change per second when blending from the current timescale to the desired.}}
*{{ScrollBox|title=acceleration|
{{KV|Perframe delta multiplier|float|The per frame delta between desired and current is multiplied by this to get the maximum change per second.}}
; Acceleration per second <[[float]]>
{{KV Targetname}}
: How quickly the change per second goes up to the max.
{{KV Angles}}
}}
 
*{{ScrollBox|title=minBlendRate|
== Inputs ==
; Minimum blend per second <[[float]]>
{{IO|Start|Start blending to the desired timescale.}}
: Minimum change per second when blending from the current timescale to the desired.
{{IO|Stop|Stop and blend back to the default timescale (1.0f).}}
}}
{{IO|Reset|Reset immediately to normal timescale (1.0f).}}
*{{ScrollBox|title=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==
{{I Targetname}}
{{I Targetname}}
{{ScrollBox|title=TimeScale|
 
; <code>Start</code>
== Outputs ==
: Start blending to the desired timescale.
; <code>Stop</code>
: Stop and blend back to the default timescale (1.0f).
; <code>Reset</code>
: Reset immediately to normal timescale (1.0f).
}}
==Outputs==
{{O Targetname}}
{{O Targetname}}
==See also==
==See also==
==External links==
* [[logic_timescale]] (Portal 2 only)
[[category:Left 4 Dead 2]]

Revision as of 00:01, 11 June 2011

Template:L4d2 point

Entity description

Adjust the time scale of the server and client.

Keyvalues

Desired timescale. ([todo internal name (i)]) <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 ([todo internal name (i)]) <float>
How quickly the change per second goes up to the max.
Minimum blend per second ([todo internal name (i)]) <float>
Minimum change per second when blending from the current timescale to the desired.
Perframe delta multiplier ([todo internal name (i)]) <float>
The per frame delta between desired and current is multiplied by this to get the maximum change per second.
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.

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


Outputs

See also