Zh/Env explosion: Difference between revisions
< Zh
Jump to navigation
Jump to search
m (Translation modification) |
m (Improvement) |
||
Line 6: | Line 6: | ||
{{clearleft}} | {{clearleft}} | ||
==标签 | == 标签 == | ||
*1: No Damage - | *1: No Damage - 不造成伤害 | ||
*2: Repeatable - 一旦爆炸发生了,这个实体会删除自己本身。除此之外,它会在<code>Explode</code>输入后0.3秒删除(此期间可以重新触发)。 | *2: Repeatable - 一旦爆炸发生了,这个实体会删除自己本身。除此之外,它会在<code>Explode</code>输入后0.3秒删除(此期间可以重新触发)。 | ||
*4: No [https://www.youtube.com/watch?v=wgLAkto0rzc 火球/油管链接] | *4: No [https://www.youtube.com/watch?v=wgLAkto0rzc 火球/油管链接] | ||
Line 13: | Line 13: | ||
*16: No Decal - 在爆炸的中心偏左产生一个爆炸的黑色灰烬效果。 | *16: No Decal - 在爆炸的中心偏左产生一个爆炸的黑色灰烬效果。 | ||
*<s>32: No Sparks</s> - 没有效果 | *<s>32: No Sparks</s> - 没有效果 | ||
*64: No Sound - | *64: No Sound - 无声 | ||
*128: Random Orientation -随机方向 | *128: Random Orientation - 随机方向 | ||
*256: No [https://www.youtube.com/watch?v=BpupvIUX2uI Fireball Smoke] -只有火球本身可以的情况下才会生成火球烟。 | *256: No [https://www.youtube.com/watch?v=BpupvIUX2uI Fireball Smoke] - 只有火球本身可以的情况下才会生成火球烟。 | ||
*512: No [https://www.youtube.com/watch?v=GB5fnGYuF6I 粒子/YouTube] | *512: No [https://www.youtube.com/watch?v=GB5fnGYuF6I 粒子/YouTube] | ||
*<s>1024: No DLights</s> - 没有效果 | *<s>1024: No DLights</s> - 没有效果 | ||
*2048: Don't clamp Min - | *2048: Don't clamp Min - 允许更小的火焰图标。 | ||
*4096: Don't clamp Max - | *4096: Don't clamp Max - 允许更大的火焰图标。 | ||
*8192: Damage above surface only - 在水下则不造成伤害(对玩家)。 | *8192: Damage above surface only - 在水下则不造成伤害(对玩家)。 | ||
*16384: Generic damage - 造成 <code>[[Damage_types#Damage_type_table| | *16384: Generic damage - 造成<code>[[Damage_types#Damage_type_table|一般伤害]]</code> ,区分于<code>DMG_BLAST</code>. | ||
==键值== | == 键值 == | ||
{{KV:zh-cn|Magnitude (iMagnitude)| | {{KV:zh-cn|Magnitude (iMagnitude)|int|爆炸的伤害数值。}} | ||
{{KV:zh-cn|Radius Override (iRadiusOverride)| | {{KV:zh-cn|Radius Override (iRadiusOverride)|int|伤害范围。如果指定,基于设置,未指定则范围基于伤害(上面的值)。}} | ||
{{KV:zh-cn|Fireball Sprite (fireballsprite)|sprite| | {{KV:zh-cn|Fireball Sprite (fireballsprite)|sprite|火球的图标。}} | ||
{{KV:zh-cn|Render Mode (rendermode)|choices|[[Render mode]]火球渲染模式。 | {{KV:zh-cn|Render Mode (rendermode)|choices|[[Render mode]]火球渲染模式。 | ||
:*0: Normal | :*0: Normal | ||
Line 32: | Line 32: | ||
:*5: Additive}} | :*5: Additive}} | ||
{{KV:zh-cn|Ignored Entity (ignoredEntity)|target_destination|不伤害或者影响实体。}} | {{KV:zh-cn|Ignored Entity (ignoredEntity)|target_destination|不伤害或者影响实体。}} | ||
{{KV:zh-cn|Damage Force (DamageForce)| | {{KV:zh-cn|Damage Force (DamageForce)|float|nofgd=1|如果指定,会将此值作为物理力的作用大小。}} | ||
{{KV:zh-cn|Ignored Class (ignoredClass)| | {{KV:zh-cn|Ignored Class (ignoredClass)|int|不伤害或者影响[[List_of_default_AI_relationships|class]]的NPC }} | ||
{{KV BaseEntity:zh|css=1}} | {{KV BaseEntity:zh-cn|css=1}} | ||
==输入== | == 输入 == | ||
{{IO:zh|Explode|触发爆炸。}} | {{IO:zh-cn|Explode|触发爆炸。}} | ||
{{I BaseEntity:zh|prel4d=1}} | {{I BaseEntity:zh-cn|prel4d=1}} | ||
==输出== | == 输出 == | ||
{{O BaseEntity:zh|l4d=1}} | {{O BaseEntity:zh-cn|l4d=1}} | ||
==参见== | == 参见 == | ||
*{{ent|env_physexplosion}} | *{{ent|env_physexplosion}} |
Revision as of 01:53, 20 August 2020

env_explosion
是一个存在于所有的 起源 游戏的点实体。它将在自己的坐标点上产生一次爆炸。
待完善: This template is currently using deprecated suf or {{Lang}}-based translations. Please use the main {{Code class}} instead, which uses {{Autolang}}.
在源代码中,它由 class
CEnvExplosion
代表,定义于 explode.cpp
。
标签
- 1: No Damage - 不造成伤害
- 2: Repeatable - 一旦爆炸发生了,这个实体会删除自己本身。除此之外,它会在
Explode
输入后0.3秒删除(此期间可以重新触发)。 - 4: No 火球/油管链接
8: No Smoke- 没有效果- 16: No Decal - 在爆炸的中心偏左产生一个爆炸的黑色灰烬效果。
32: No Sparks- 没有效果- 64: No Sound - 无声
- 128: Random Orientation - 随机方向
- 256: No Fireball Smoke - 只有火球本身可以的情况下才会生成火球烟。
- 512: No 粒子/YouTube
1024: No DLights- 没有效果- 2048: Don't clamp Min - 允许更小的火焰图标。
- 4096: Don't clamp Max - 允许更大的火焰图标。
- 8192: Damage above surface only - 在水下则不造成伤害(对玩家)。
- 16384: Generic damage - 造成
一般伤害
,区分于DMG_BLAST
.
键值
- Magnitude (iMagnitude) <整数 >
- 爆炸的伤害数值。
- Radius Override (iRadiusOverride) <整数 >
- 伤害范围。如果指定,基于设置,未指定则范围基于伤害(上面的值)。
- Fireball Sprite (fireballsprite) <sprite >
- 火球的图标。
- Render Mode (rendermode) <choices>
- Render mode火球渲染模式。
- 0: Normal
- 4: Solid
- 5: Additive
- Ignored Entity (ignoredEntity) <target_destination>
- 不伤害或者影响实体。
输入
- Explode
- 触发爆炸。
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输入时响应此输出。