Zh/Env smoketrail: Difference between revisions
< Zh
Jump to navigation
Jump to search
(Created page with "{{lang|Env smoketrail}} {{base point|env_smoketrail}} It creates a smoke trail. {{code class|SmokeTrail|smoke_trail.cpp}} ==Keyvalues== {{KV|Sprite Opacity (opacity)|float|...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{lang|Env smoketrail}} | {{lang|Env smoketrail}} | ||
{{ | {{point_ent:zh|env_smoketrail}} 创造烟雾轨迹。 | ||
{{code class:zh|SmokeTrail|smoke_trail.cpp}} | |||
{{code class|SmokeTrail|smoke_trail.cpp}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Sprite Opacity (opacity)|float| | {{KV:zh-cn|Sprite Opacity (opacity)|float|精灵图不透明度(0~1)}} | ||
{{KV|Spawn Rate (spawnrate)|float| | {{KV:zh-cn|Spawn Rate (spawnrate)|float|每秒产生粒子数量。}} | ||
{{KV|Particle Life Time (lifetime)|float| | {{KV:zh-cn|Particle Life Time (lifetime)|float|每秒死亡粒子数量。}} | ||
{{KV|Start Color (startcolor)|color255| | {{KV:zh-cn|Start Color (startcolor)|color255|开始产生时粒子颜色。}} | ||
{{KV|End Color (endcolor)|color255| | {{KV:zh-cn|End Color (endcolor)|color255|结束的粒子颜色。}} | ||
{{KV|Emitter Life Time (emittime)|float| | {{KV:zh-cn|Emitter Life Time (emittime)|float|多久<code>env_smoketrail</code> 将停止产生粒子。 0代表永远产生。}} | ||
{{KV|Minimum Random Speed (minspeed)|float| | {{KV:zh-cn|Minimum Random Speed (minspeed)|float|粒子产生随机速度的最小值。}} | ||
{{KV|Maximum Random Speed (maxspeed)|float| | {{KV:zh-cn|Maximum Random Speed (maxspeed)|float|同上,最大值。}} | ||
{{KV|Minimum Directed Speed (mindirectedspeed)|float| | {{KV:zh-cn|Minimum Directed Speed (mindirectedspeed)|float|沿着<code>env_smoketrail</code>X轴方向产生粒子的最小速度。}} | ||
{{KV|Maximum Directed Speed (maxdirectedspeed)|float| | {{KV:zh-cn|Maximum Directed Speed (maxdirectedspeed)|float|同上,最大速度。}} | ||
{{KV|Starting particle size (startsize)|float| | {{KV:zh-cn|Starting particle size (startsize)|float|粒子产生时的大小。}} | ||
{{KV|Ending particle size (endsize)|float| | {{KV:zh-cn|Ending particle size (endsize)|float|粒子结束时的大小。}} | ||
{{KV|Spawn radius (spawnradius)|float| | {{KV:zh-cn|Spawn radius (spawnradius)|float| <code>env_smoketrail</code>的粒子产生范围}} | ||
{{KV|Fire Sprite (firesprite)|sprite|deprecated=1| | {{KV:zh-cn|Fire Sprite (firesprite)|sprite|deprecated=1|不存在于代码. 火效果精灵图}} | ||
{{KV|Smoke Puff (smokesprite)|sprite|deprecated=1| | {{KV:zh-cn|Smoke Puff (smokesprite)|sprite|deprecated=1|不存在于代码. 抽烟那种效果?}} | ||
{{KV BaseEntity|css=1}} | {{KV BaseEntity:zh|css=1}} | ||
== | ==输入== | ||
{{I BaseEntity}} | {{I BaseEntity:zh}} | ||
== | ==输出== | ||
{{O BaseEntity|l4d=1}} | {{O BaseEntity:zh|l4d=1}} |
Revision as of 07:03, 18 November 2019
env_smoketrail
是一个存在于所有的 起源 游戏的点实体。 创造烟雾轨迹。
待完善: This template is currently using deprecated suf or {{Lang}}-based translations. Please use the main {{Code class}} instead, which uses {{Autolang}}.
在源代码中,它由 class
SmokeTrail
代表,定义于 smoke_trail.cpp
。
Keyvalues
- Sprite Opacity (opacity) <浮点型 >
- 精灵图不透明度(0~1)
- Spawn Rate (spawnrate) <浮点型 >
- 每秒产生粒子数量。
- Particle Life Time (lifetime) <浮点型 >
- 每秒死亡粒子数量。
- Start Color (startcolor) <color255 >
- 开始产生时粒子颜色。
- End Color (endcolor) <color255 >
- 结束的粒子颜色。
- Emitter Life Time (emittime) <浮点型 >
- 多久
env_smoketrail
将停止产生粒子。 0代表永远产生。
- Minimum Random Speed (minspeed) <浮点型 >
- 粒子产生随机速度的最小值。
- Maximum Random Speed (maxspeed) <浮点型 >
- 同上,最大值。
- Minimum Directed Speed (mindirectedspeed) <浮点型 >
- 沿着
env_smoketrail
X轴方向产生粒子的最小速度。
- Maximum Directed Speed (maxdirectedspeed) <浮点型 >
- 同上,最大速度。
- Starting particle size (startsize) <浮点型 >
- 粒子产生时的大小。
- Ending particle size (endsize) <浮点型 >
- 粒子结束时的大小。
- Spawn radius (spawnradius) <浮点型 >
env_smoketrail
的粒子产生范围
Fire Sprite (firesprite) <sprite >- 已弃用。 不存在于代码. 火效果精灵图
Smoke Puff (smokesprite) <sprite >- 已弃用。 不存在于代码. 抽烟那种效果?

This article has been marked as a candidate for speedy deletion for the following reason:
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
The redirect page got deleted, therefore this page should too.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourselfAdministrators / Moderators - Remember to check if anything links here and the page history before deleting.
输入
Base:
- AddContext <字符串 >
- 添加到实体的 Response Contexts/响应上下文列表。格式是
<key>:<value>
。
语法:
- ClearContext
- 从此实体的列表中删除所有上下文。
- ClearParent
- 从移动层次结构中删除该实体,使其可以自由移动。
- FireUser1 to FireUser4
- 触发相应的
OnUser
输出;详见 User Inputs and Outputs。
- Kill
- 从这个世界中删除此实体。
- KillHierarchy
- 功能类似
Kill
,尽管此实体与其父实体都被删除了,但比Kill
快一点。
- RemoveContext
- 从实体列表删除一个上下文。名字应与现有上下文进行匹配。
- SetParent <字符串 >
- 跟随此实体移动,详见 实体层级(依赖关系)。
- SetParentAttachmentMaintainOffset <字符串 >
- 同上,但没有传送。在接收到输入时,实体保持其相对于附件的位置。
- DispatchResponse <字符串 > 不存在于FGD!
- 向实体发送一个上下文。 详见 Response
和 Concept
.
- DispatchEffect <字符串 > (被移除于
以来) 不存在于FGD!
- 在实体的原点坐标设置一个特定效果;参见 List of Client Effects
。自从
求生之路后由粒子系统取代。
- RunScriptCode <字符串 > (存在于自
以来)
- 在接收输入的实体范围内执行一串 VScript 源代码。通过控制台触发时可能需要字符串引用。
修复:使用文本编辑器手动删除带有字符串的参数。
- SetLocalOrigin <coordinates > (存在于自
以来) 不存在于FGD!
- 将此实体设置到地图中的某个位置。如果此实体是某实体父级,那么它的子级也会随着移动。
输出
Base/基础:
- OnUser1 to OnUser4
- 这些输出将分别响应于
FireUser1
到FireUser4
输入。 详见 User Inputs and Outputs。 - OnKilled (仅存在于
之中)
- 当实体被Kill输入时响应此输出。