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

func_brush

From Valve Developer Community
< Zh
Revision as of 16:50, 13 August 2024 by 1416006136 (talk | contribs) (Created page with "{{LanguageBar}} 本页面的译者及时间为大康 (talk) 08:08, 6 January 2022 (PST)。部分内容由机器翻译。 ---- {{Th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Hrvatski (hr)Русский (ru)中文 (zh)Translate (Translate)

本页面的译者及时间为大康 (talk) 08:08, 6 January 2022 (PST)。部分内容由机器翻译。


func_brush是一个固体实体(en),可在所有的 起源 起源 游戏中使用。它是具有各种功能的通用笔刷实体。 它结合了来自 Goldsource 的func_wallfunc_illusionaryfunc_wall_toggle的功能。上述实体现在仍然可以使用,但对内存的节省非常有限。

Note.png注意:在 中,这是一个保留实体(preserved entity)(en)
  • 在新一轮中,它不会故意将自己重置为其默认属性(包括位置)。
    PlacementTip.png解决方案:如果这是一个问题,你可以采用 logic_auto 实体模拟重置它。
  • 通过Kill(en)杀死它会永远移除它,因为它不会在新一轮重生
  • 它不能用 point_template 生成。
  • 把这个实体与非保留实体绑定可能会导致不良影响
C++ 在源代码中,它由 class CFuncBrush 代表,定义于 modelentities.cpp

键值

Solidity (Solidity) <choices>
用于控制这个笔刷的坚固性/碰撞。
  • 0: Toggle(切换)- 碰撞随其可见性一起切换。
  • 1: Never Solid(从不碰撞)
  • 2: Always Solid(始终碰撞)
Solid BSP (solidbsp) <布尔值(en)>
如果玩家似乎相对于固体表面奇怪地旋转,则将此设置为 BSP。
NPC class excluded from collisions (excludednpc) <classname(en)>
如果在此处指定了 NPC 类型名称(classname)(例如npc_zombie),则该类型的 NPC 不会与这些笔刷发生碰撞。
Invert NPC class exclusion (invert_exclusion) <布尔值(en)>
如果启用,则会将上述“NPC class excluded from collisions”属性的含义变成“仅该类型的 NPC 会与这些笔刷发生碰撞”
Start Disabled (StartDisabled) <布尔值(en)>
保持休眠状态,直到被唤醒。(利用Enable输入)。
Tip.png提示:如果 SolidityToggle,禁用也会使实体没有碰撞。
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Note.png注意:Archived page history
Icon-Important.png重要:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.


标志

  • 2: Ignore player +USE——实体将忽略所有Use输入,包括来自玩家的输入(译者注:+USE即你按E键的作用)。

输入

SetExcluded
更改不与画笔碰撞的NPC类。
SetInvert
是否反转NPC类排除规则。
Toggle  不存在于FGD!
切换实体的启用状态

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
SetDamageFilter <目标名(en)>
Sets a filter for this entity for when it receives damage.
EnableDamageForces
Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
DisableDamageForces
Prevents the entity from being pushed by damage done to it.
待完善: move/mention at proper place


输出