本文与游戏《求生之路2》有关。点击这里查看更多信息。

func_timescale

From Valve Developer Community
Jump to: navigation, search
English (en)中文 (zh)

类层级(Class Hierarchy)
CFuncTimescale
CBaseEntity

func_timescale是一个点实体,可在求生之路2 求生之路2中使用。

This page was translated by DaKang233 on January 6, 2023 (UTC+8). Anyone is welcome to add new content or fix errors.


实体描述

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

键值

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)>
将所需时间刻度和当前时间刻度之间的每帧增加速度的量乘以此得到每秒的最大变化。
Name (targetname) <字符串(en)>
其他实体引用该实体的目标名称

角度:
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

输出

实体目标名:

OnUser1OnUser4
这些输出将分别响应于FireUser1FireUser4 输入。 详见 User Inputs and Outputs
OnKilled (存在于 Left 4 Dead series 之中)
当实体被删除时触发此输出。

另见