Zh/Env physexplosion: Difference between revisions
< Zh
Jump to navigation
Jump to search
(Created page with "{{lang|Env physexplosion}} {{point_ent:zh|env_physexplosion|sprite=1}} 它适用于给物理对象施加一个物理力(取决于设置的半径),并取决于大小造...") |
No edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{ | {{this is a|point entity|name=env_physexplosion|sprite=1}} | ||
它适用于给物理对象施加一个物理力(取决于设置的半径),并取决于大小造成一次轻度到大的爆炸。爆炸不可见,如果你想要爆炸是可见的,请用{{ent|env_explosion}}. | |||
{{提示|可以用较小的力对悬挂物体或者灯进行一次摇晃。}} | {{提示|可以用较小的力对悬挂物体或者灯进行一次摇晃。}} | ||
{{code class | {{code class|CPhysExplosion|physobj.cpp}} | ||
==标签/Flags== | ==标签/Flags== | ||
Line 10: | Line 11: | ||
*2: Push players - 推开玩家 | *2: Push players - 推开玩家 | ||
*4: Push radially - 非球体爆炸,不会产生向上或者向下的力。 | *4: Push radially - 非球体爆炸,不会产生向上或者向下的力。 | ||
*8: Test | *8: Test {{L|LOS}} before pushing - 在推前测试{{L|LOS}} | ||
*16: Disorient player if pushed - 玩家被推动会迷失方向。 | *16: Disorient player if pushed - 玩家被推动会迷失方向。 | ||
==键值== | ==键值== | ||
{{KV Targetname}} | |||
{{KV|Magnitude (magnitude)|字符串|爆炸冲击波力的大小。 | {{KV|Magnitude (magnitude)|字符串|爆炸冲击波力的大小。 | ||
{{ | {{Note|限制在1~100,如果需要更大请创建更多实例。(经测试可以单个实体大于100,求生之路2)}}}} | ||
{{KV|Clamp Radius (0 {{=}} auto) (radius)|字符串|受力的半径,如果指定,则爆炸取决于此。没有,则取决于Magnitude的大小。}} | {{KV|Clamp Radius (0 {{=}} auto) (radius)|字符串|受力的半径,如果指定,则爆炸取决于此。没有,则取决于Magnitude的大小。}} | ||
{{KV|Limit to Entity (targetentityname)|target_destination|如果指定,爆炸只会影响匹配的实体。}} | {{KV|Limit to Entity (targetentityname)|target_destination|如果指定,爆炸只会影响匹配的实体。}} | ||
{{KV|Inner radius (inner_radius)|float|If not zero, the | {{KV|Inner radius (inner_radius)|float|If not zero, the {{L|LOS}} is calculated from a point intersecting this sphere.}} | ||
==输入== | ==输入== | ||
{{ | {{I|Explode|开始一次爆炸。}} | ||
{{ | {{I|ExplodeAndRemove|since=p2|开始一次爆炸,并会删除自己本身。}} | ||
==输出== | ==输出== | ||
{{ | {{O|OnPushedPlayer|当玩家被爆炸推动的时候触发。}} | ||
{{ACategory|Physics}} |
Latest revision as of 17:38, 25 September 2024

env_physexplosion
是一个点实体 ,可在所有的 起源 游戏中使用。
它适用于给物理对象施加一个物理力(取决于设置的半径),并取决于大小造成一次轻度到大的爆炸。爆炸不可见,如果你想要爆炸是可见的,请用env_explosion.

标签/Flags
- 1: No Damage - 只有力的作用,类似于冲击波(无论是否勾选都不会伤害玩家,只会是物体)
- 2: Push players - 推开玩家
- 4: Push radially - 非球体爆炸,不会产生向上或者向下的力。
- 8: Test LOS before pushing - 在推前测试LOS
- 16: Disorient player if pushed - 玩家被推动会迷失方向。
键值
- Name (目标名称) <target_source>[ Edit ]
- 这个名称是其他实体通过 输入/输出 或其他 关键值 (如
parentname
或target
) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告 中。参见: 所有实体均可使用的 通用键值、输入与输出

- Clamp Radius (0 = auto) (radius) ([todo internal name (i)]) <字符串 >
- 受力的半径,如果指定,则爆炸取决于此。没有,则取决于Magnitude的大小。
- Limit to Entity (targetentityname) ([todo internal name (i)]) <target_destination>
- 如果指定,爆炸只会影响匹配的实体。
- Inner radius (inner_radius) ([todo internal name (i)]) <浮点型 >
- If not zero, the LOS is calculated from a point intersecting this sphere.
输入
- Explode
- 开始一次爆炸。
输出
- OnPushedPlayer
- 当玩家被爆炸推动的时候触发。