Zh/Env fire: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
|en=Env_fire
|en=Env_fire
}}
}}
{{translate:zh-cn}}
{{translate}}
[[File:env_fire.jpg|thumb|250px|right|Example of env_fire]]
[[File:env_fire.jpg|thumb|250px|right|env_fire实例。]]


{{base point:zh-cn|env_fire}}
{{point_ent:zh|env_fire}}


==Entity description==
==实体描述==
[[File:env_fire.png|left|link=]]  
[[File:env_fire.png|left|link=]]  
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.
简单的在实体[[origin|坐标]]上产生火焰的实体。火焰导热 '伤害' 给其他 周围'''env_fire'''实体。  并且会点燃附近不燃烧的env_fire实体。引发大火蔓延。
{{clr-left}}
{{clr-left}}


{{note|This entity doesn't create a lighting effect of any sort, you have to use a flickering [[light]] for that.}}
{{注意|不会提供照明效果。}}
{{note|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.}}
{{注意|实体可能会“掉出”世界,你需要提高一点就像玩家出生点那样。}}
{{bug|This entity doesn't work in [[Portal]]. Please see [[Portal:Env_Fire_fix]] for more details}}
{{bug|[[Portal]]中无效。参加[[Portal:Env_Fire_fix]]来获取信息。}}
{{bug|While still available, it does not have particle effects in [[Team Fortress 2]]. [[TF2/Creating_fire|This method]] is recommended instead.}}
{{bug|虽然它可用,但是不会再[[Team Fortress 2]]中产生粒子效果。参加 [[TF2/Creating_fire|This method]]来获取信息。}}
{{bug|While still available, it does not currently work correctly in your Source 2007 based mod until you build(/rebuild) the project.}}
{{bug|除非你build(/rebuild)项目,否则不会用于source2007的mod。}}
{{bug|Plasma fire is invisible.}}
{{bug|等离子火(Plasma fire)不可见。}}




==Keyvalues==
==键值==
{{KV|Duration|integer|Amount of time the fire will burn.}}
{{KV:zh-cn|Duration|整数型|火焰燃烧的持续时间。}}
{{KV|Size|integer|Height (in world units) of the flame.}}
{{KV:zh-cn|Size|整数型|火焰高度 (以世界单位) }}
{{KV|Attack|integer|Amount of time the fire takes to grow to full strength.}}
{{KV:zh-cn|Attack|整数型|多长时间这团火焰会燃烧到最高高度。}}
{{KV|Type|choices|Either Natural or Plasma. Natural is a general all purpose flame, like a wood fire.}}
{{KV:zh-cn|Type|choices|火焰效果,等离子或者自然火}}
:* 0 : Natural
:* 0 : Natural/自然火
:* 1 : Plasma
:* 1 : Plasma/等离子火(不可见)
{{KV|Ignition Point|float|Amount of heat 'damage' to take before this flame should ignite.}}
{{KV:zh-cn|Ignition Point|浮点型|需要对其导热多少'伤害'才能点燃。}}
{{KV|Damage Scale|float|Multiplier of the burn damage done by the flame.}}
{{KV:zh-cn|Damage Scale|浮点型|燃烧伤害X此倍数。}}
{{KV Targetname}}
{{KV Targetname:zh}}
{{KV Parentname}}
{{KV Parentname:zh}}
{{KV EnableDisable}}
{{KV EnableDisable:zh}}


==Flags==
==标签/Flags==
* 1 : Infinite Duration
* 1 : Infinite Duration - 永远燃烧
* 2 : Smokeless
* 2 : Smokeless - 无烟的
* 4 : Start On
* 4 : Start On - 自启动
* 8 : Start Full
* 8 : Start Full - 直接烧至最大高度
* 16 : Don't drop
* 16 : Don't drop - 不会掉落
* 32 : No glow
* 32 : No glow - 无光圈
* 128 : Delete when out
* 128 : Delete when out - 当它烧尽就删除。
* 256 : Visible from above
* 256 : Visible from above - 从上方可见。
{{note| In Alien Swarm, an env_fire entity cannot be extinguished by the player unless set to "Infinite Duration".}}
{{注意| Alien Swarm, env_fire 除非设置"Infinite Duration"否则无法被熄灭。}}


==Inputs==
==输入==
{{IO|StartFire|Start the fire.}}
{{IO:zh|StartFire|开始燃烧。}}
{{IO|Extinguish|Puts out the fire permanently in the number of seconds specified.|param=float}}
{{IO:zh|Extinguish|指定秒数内永久扑灭火焰。|param=浮点型}}
{{IO|ExtinguishTemporary|Puts out the fire temporarily in the number of seconds specified.|param=float}}
{{IO:zh|ExtinguishTemporary|指定秒数内暂时扑灭火焰。|param=浮点型}}
{{I Targetname}}
{{I Targetname:zh}}
{{I Parentname}}
{{I Parentname:zh}}
{{I EnableDisable}}
{{I EnableDisable:zh}}


==Outputs==
==输出==
{{IO|OnIgnited|Fires when the fire is first ignited.}}
{{IO:zh|OnIgnited|当火焰被点燃时触发输出。}}
{{IO|OnExtinguished|Fires when the fire is fully extinguished.}}
{{IO:zh|OnExtinguished|当火焰完全扑灭时触发输出。}}
{{O Targetname}}
{{O Targetname:zh}}


[[Category:Special effects:zh-cn]]
[[Category:Special effects:zh-cn]]

Revision as of 03:08, 13 October 2019

Template:Otherlang2

Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)
env_fire实例。

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

实体描述

Env fire.png

简单的在实体坐标上产生火焰的实体。火焰导热 '伤害' 给其他 周围env_fire实体。 并且会点燃附近不燃烧的env_fire实体。引发大火蔓延。

Template:注意 Template:注意

Icon-Bug.png错误:Portal中无效。参加Portal:Env_Fire_fix来获取信息。  [todo tested in ?]
Icon-Bug.png错误:虽然它可用,但是不会再Team Fortress 2中产生粒子效果。参加 This method来获取信息。  [todo tested in ?]
Icon-Bug.png错误:除非你build(/rebuild)项目,否则不会用于source2007的mod。  [todo tested in ?]
Icon-Bug.png错误:等离子火(Plasma fire)不可见。  [todo tested in ?]


键值

Duration <整数(en)>
火焰燃烧的持续时间。
Size <整数(en)>
火焰高度 (以世界单位) 。
Attack <整数(en)>
多长时间这团火焰会燃烧到最高高度。
Type <choices>
火焰效果,等离子或者自然火
  • 0 : Natural/自然火
  • 1 : Plasma/等离子火(不可见)
Ignition Point <浮点型(en)>
需要对其导热多少'伤害'才能点燃。
Damage Scale <浮点型(en)>
燃烧伤害X此倍数。

Template:KV Targetname:zh

Parentname:
Parent (parentname) <目标名(en)>
指定一个实体作为父实体(跟随移动)。实体的父级实体,该实体可以与父实体保持移动偏移。名称后面可以添加一个附属点,以逗号隔开。

EnableDisable/启动禁用:

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 - 从上方可见。

Template:注意

输入

StartFire
开始燃烧。
Extinguish <浮点型(en)>
指定秒数内永久扑灭火焰。
ExtinguishTemporary <浮点型(en)>
指定秒数内暂时扑灭火焰。

Template:I Targetname:zh

Parentname:
SetParent <字符串(en)>
设置父级实体。详见Entity Hierarchy (parenting).
SetParentAttachment <字符串(en)>
修改此实体到父实体的特定附属点。实体会传送,以至于其骨骼方位与附属匹配。在使用此输入前必须设置好实体的父实体。
SetParentAttachmentMaintainOffset <字符串(en)>
同上,但不传送。实体接受到此输出后保留与父级的相对位置。
ClearParent
取消绑定父实体,以至于此实体可以自由行动。

EnableDisable/启动禁用:

Enable
Disable
启动/禁用此实体所具备的效果。同样会使实体消失。

输出

OnIgnited
当火焰被点燃时触发输出。
OnExtinguished
当火焰完全扑灭时触发输出。

实体目标名:

OnUser1 to OnUser4
这些输出将分别响应于FireUser1FireUser4 输入。 详见 User Inputs and Outputs
OnKilled  (存在于 求生之路系列求生之路系列 之中)
当实体被删除时触发此输出。