func_timescale

From Valve Developer Community
< Zh
Revision as of 02:19, 6 January 2023 by 1416006136 (talk | contribs) (Created page with "{{lang|Func timescale|title=<code style=padding:0>func_timescale</code>}} {{:User:1416006136/Signature|time=2023年1月6日}} {{point ent|suf=:zh-cn|func_timescale|game=Left 4...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)

This page was translated by DaKang233 on Error: Invalid time. (UTC+8). Anyone is welcome to add new content or fix errors.


Template:Point ent

实体描述

调整服务器和客户端的时间刻度。

键值

Desired timescale (desiredTimescale) <浮点型(en)>
要混合到的时间尺度,这是一个乘数,其中 1.0 是正常时间,0.5 是当前时间速度的一半,2.0 是当前时间速度的 2 倍。
Acceleration per second (acceleration) <浮点型(en)>
每秒变化达到最大值的速度。
Minimum blend per second (minBlendRate) <浮点型(en)>
从当前时间刻度混合到所需时间刻度时每秒的最小变化。
Perframe delta multiplier (blendDeltaMultiplier) <浮点型(en)>
将所需时间速度和当前时间速度之间的每帧增加速度的量乘以此得到每秒的最大变化。
参见:  Generic Keyvalues, Inputs and Outputs available to all entities
Name(en) (targetname) <target_source>
其他实体引用该实体的目标名称。
角度:
Pitch Yaw Roll (Y Z X) <angle(en)>
这个实体在世界的方向。Pitch是围绕Y轴旋转,Yaw是围绕Z轴的旋转,Roll是围绕X轴的旋转。

输入

Start
开始混合到所需的时间速度。
Stop
停止并混合回默认时间刻度 (1.0f)。
Reset
立即重置为正常时间刻度 (1.0f)。

Template:I Targetname:zh-cn

输出

实体目标名:

OnUser1 to OnUser4
这些输出将分别响应于FireUser1FireUser4 输入。 详见 User Inputs and Outputs
OnKilled  (存在于 求生之路系列求生之路系列 之中)
当实体被删除时触发此输出。

另见