这篇条目有关 Source引擎。如需详情,点击这里。

Zh/Env physexplosion: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
(Preparing multipage. Removed deprecated point ent template, which is now handled by "This is a" template placed on base (MultiPage) page.)
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{langsp}}
{{LanguageBar}}
{{this is a|point entity|name=env_physexplosion|sprite=1}}
它适用于给物理对象施加一个物理力(取决于设置的半径),并取决于大小造成一次轻度到大的爆炸。爆炸不可见,如果你想要爆炸是可见的,请用{{ent|env_explosion}}.
它适用于给物理对象施加一个物理力(取决于设置的半径),并取决于大小造成一次轻度到大的爆炸。爆炸不可见,如果你想要爆炸是可见的,请用{{ent|env_explosion}}.


Line 10: Line 11:
*2: Push players - 推开玩家
*2: Push players - 推开玩家
*4: Push radially - 非球体爆炸,不会产生向上或者向下的力。
*4: Push radially - 非球体爆炸,不会产生向上或者向下的力。
*8: Test [[LOS]] before pushing - 在推前测试[[LOS]]
*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)|字符串|爆炸冲击波力的大小。


{{注意|限制在1~100,如果需要更大请创建更多实例。(经测试可以单个实体大于100,求生之路2)}}}}
{{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 [[LOS]] is calculated from a point intersecting this sphere.}}
{{KV|Inner radius (inner_radius)|float|If not zero, the {{L|LOS}} is calculated from a point intersecting this sphere.}}
{{KV BaseEntity|css=1}}


==输入==
==输入==
{{IO|Explode|开始一次爆炸。}}
{{I|Explode|开始一次爆炸。}}
{{IO|ExplodeAndRemove|since=p2|开始一次爆炸,并会删除自己本身。}}
{{I|ExplodeAndRemove|since=p2|开始一次爆炸,并会删除自己本身。}}
{{I BaseEntity}}


==输出==
==输出==
{{IO|OnPushedPlayer|当玩家被爆炸推动的时候触发。}}
{{O|OnPushedPlayer|当玩家被爆炸推动的时候触发。}}
{{O BaseEntity|l4d=1}}
 
{{ACategory|Physics}}

Latest revision as of 17:38, 25 September 2024

English (en)中文 (zh)Translate (Translate)
Env physexplosion.png

env_physexplosion是一个点实体(en),可在所有的 起源 起源 游戏中使用。

它适用于给物理对象施加一个物理力(取决于设置的半径),并取决于大小造成一次轻度到大的爆炸。爆炸不可见,如果你想要爆炸是可见的,请用env_explosion.

Tip.png提示:可以用较小的力对悬挂物体或者灯进行一次摇晃。
C++ 在源代码中,它由 class CPhysExplosion 代表,定义于 physobj.cpp

标签/Flags

  • 1: No Damage - 只有力的作用,类似于冲击波(无论是否勾选都不会伤害玩家,只会是物体)
  • 2: Push players - 推开玩家
  • 4: Push radially - 非球体爆炸,不会产生向上或者向下的力。
  • 8: Test LOS(en) before pushing - 在推前测试LOS(en)
  • 16: Disorient player if pushed - 玩家被推动会迷失方向。

键值

Name (目标名称) <target_source>[ Edit ]
这个名称是其他实体通过 输入/输出(en) 或其他 关键值(en)(如 parentnametarget) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告(en) 中。
参见:  所有实体均可使用的 通用键值、输入与输出(en)

Magnitude (magnitude) ([todo internal name (i)]) <字符串(en)>
爆炸冲击波力的大小。
Note.png注意:限制在1~100,如果需要更大请创建更多实例。(经测试可以单个实体大于100,求生之路2)
Clamp Radius (0 = auto) (radius) ([todo internal name (i)]) <字符串(en)>
受力的半径,如果指定,则爆炸取决于此。没有,则取决于Magnitude的大小。
Limit to Entity (targetentityname) ([todo internal name (i)]) <target_destination>
如果指定,爆炸只会影响匹配的实体。
Inner radius (inner_radius) ([todo internal name (i)]) <浮点型(en)>
If not zero, the LOS(en) is calculated from a point intersecting this sphere.

输入

Explode
开始一次爆炸。
ExplodeAndRemove  (存在于自 传送门2 以来)
开始一次爆炸,并会删除自己本身。

输出

OnPushedPlayer
当玩家被爆炸推动的时候触发。