env_fire

From Valve Developer Community
< Zh
Revision as of 02:55, 13 October 2019 by 求生的兔 (talk | contribs)
Jump to navigation Jump to search

Template:Otherlang2 Template:Translate:zh-cn

Example of env_fire

起源 env_fire是一个存在于所有的 起源 游戏的点实体

Entity description

Env fire.png

It handles a single flame at its origin. The flame causes heat 'damage' to other env_fire entities around it, and will eventually ignite non-flaming env_fire entities nearby, causing the fire to spread.

Note.png注意:This entity doesn't create a lighting effect of any sort, you have to use a flickering light for that.
Note.png注意:The fire may fall through the world on spawn if placed exactly at ground level. Place it a little bit above the ground to fix this.
Icon-Bug.png错误:This entity doesn't work in Portal. Please see Portal:Env_Fire_fix for more details  [todo tested in ?]
Icon-Bug.png错误:While still available, it does not have particle effects in Team Fortress 2. This method is recommended instead.  [todo tested in ?]
Icon-Bug.png错误:While still available, it does not currently work correctly in your Source 2007 based mod until you build(/rebuild) the project.  [todo tested in ?]
Icon-Bug.png错误:Plasma fire is invisible.  [todo tested in ?]


Keyvalues

Duration ([todo internal name (i)]) <整数(en)>
Amount of time the fire will burn.
Size ([todo internal name (i)]) <整数(en)>
Height (in world units) of the flame.
Attack ([todo internal name (i)]) <整数(en)>
Amount of time the fire takes to grow to full strength.
Type ([todo internal name (i)]) <choices>
Either Natural or Plasma. Natural is a general all purpose flame, like a wood fire.
  • 0 : Natural
  • 1 : Plasma
Ignition Point ([todo internal name (i)]) <浮点型(en)>
Amount of heat 'damage' to take before this flame should ignite.
Damage Scale ([todo internal name (i)]) <浮点型(en)>
Multiplier of the burn damage done by the flame.
Name (目标名称) <target_source>[ Edit ]
这个名称是其他实体通过 输入/输出(en) 或其他 关键值(en)(如 parentnametarget) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告(en) 中。
参见:  所有实体均可使用的 通用键值、输入与输出(en)

Parentname:
Parent (parentname) <目标名(en)>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Start Disabled (StartDisabled) <布尔值(en)>
保持休眠状态,直到被唤醒。(利用Enable输入)。

Flags

  • 1 : Infinite Duration
  • 2 : Smokeless
  • 4 : Start On
  • 8 : Start Full
  • 16 : Don't drop
  • 32 : No glow
  • 128 : Delete when out
  • 256 : Visible from above
Note.png注意: In Alien Swarm, an env_fire entity cannot be extinguished by the player unless set to "Infinite Duration".

Inputs

StartFire
Start the fire.
Extinguish <浮点型(en)>
Puts out the fire permanently in the number of seconds specified.
ExtinguishTemporary <浮点型(en)>
Puts out the fire temporarily in the number of seconds specified.


Parentname:
SetParent <字符串(en)>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <字符串(en)>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <字符串(en)>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnIgnited
Fires when the fire is first ignited.
OnExtinguished
Fires when the fire is fully extinguished.