Zh/Trigger paint cleanser: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
(Created page with "{{LanguageBar}} {{this is a|brush entity|name=trigger_paint_cleanser|game=Portal 2}} It is a trigger volume that destroys gel blobs which pass through it, and removes gel from objects such as cubes. In {{game link|Portal 2: Community Edition}}, it will additionally reset the paint gun's gel types when the player passes through it. {{note|It does not remove gel applied to brushes, or block gel from streaking past it.}} {{bugfix|In Portal 2, the en...")
 
No edit summary
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar|trigger_paint_cleanser|title=触发油漆清洁器}}
{{this is a|brush entity|name=trigger_paint_cleanser|game=Portal 2}}
{{this is a|brush entity|name=trigger_paint_cleanser|game=Portal 2}}
It is a trigger volume that destroys [[gel]] blobs which pass through it, and removes gel from objects such as cubes. In {{game link|Portal 2: Community Edition}}, it will additionally reset the [[weapon_paintgun|paint gun]]'s gel types when the player passes through it.
这是一个触发区域,会销毁经过的{{L|gel|凝胶}}团块,并清除物体(如方块)上的凝胶。在{{game link|Portal 2: Community Edition|《传送门2:社区版》}}中,当玩家通过该区域时,它还会重置{{L|weapon_paintgun|凝胶枪}}的凝胶类型。


{{note|It does not remove gel applied to brushes, or block gel from streaking past it.}}
{{note|它不会清除笔刷上的凝胶,也不会阻挡凝胶从其旁边流过。}}
{{bugfix|In Portal 2, the entity will always remove gel from physics objects regardless of the Physics Objects flag.|This has been fixed in P2CE, in addition to respecting the Clients flag for paint gun resetting.}}
{{bugfix|在《传送门2》中,该实体会无视"物理对象"属性(Flags),始终清除物理对象上的凝胶。|此问题已在P2CE中修复,同时会遵循"客户端"属性来控制油漆枪重置功能。}}
{{paintinmap}}
{{paintinmap}}


==Keyvalues==
==键值(Keyvalues)==
{{KV Trigger}}
{{KV Trigger}}


==Flags==
==属性(Flags)==
{{Fl Trigger}}
{{Fl Trigger}}


==Inputs==
==输入==
{{I Trigger}}
{{I Trigger}}
{{I Targetname}}
{{I Targetname}}


==Outputs==
==输出==
{{O Trigger}}
{{O Trigger}}
{{O Targetname}}
{{O Targetname}}

Revision as of 08:31, 11 July 2025

English (en)中文 (zh)Translate (Translate)

trigger_paint_cleanser是一个固体实体(en),可在传送门2 传送门2中使用。 这是一个触发区域,会销毁经过的凝胶(en)团块,并清除物体(如方块)上的凝胶。在传送门 2:社区特供版 Portal 2: Community Edition 中,当玩家通过该区域时,它还会重置凝胶枪(en)的凝胶类型。

Note.png注意:它不会清除笔刷上的凝胶,也不会阻挡凝胶从其旁边流过。
Icon-Bug.png错误:在《传送门2》中,该实体会无视"物理对象"属性(Flags),始终清除物理对象上的凝胶。  [todo tested in ?]
Note.png修复:此问题已在P2CE中修复,同时会遵循"客户端"属性来控制油漆枪重置功能。
Note.png注意:Gel needs to have Paint in Map set to True in worldspawn before applying on surfaces. Maps that do not use gel can save significant resources by avoiding gel code.

键值(Keyvalues)

BaseTrigger
Filter Name (filtername) <filter(en)>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <布尔值(en)>
Stay dormant until activated (with theEnableinput).

属性(Flags)

BaseTrigger
Everything (not including physics debris) : [64]
Clients (Survivors, Special Infected, Tanks 求生之路系列求生之路系列 之中) : [1]
Only clients in vehicles : [32]
Only clients *not* in vehicles : [512]
Disallow Bots (被移除求生之路 以来) : [4096]
NPCs (Common Infected, Witches 求生之路系列求生之路系列 之中) : [2]
Only player ally NPCs : [16]
Only NPCs in vehicles (respects player ally flag) : [2048]
Physics Objects (not including physics debris) : [8]
Physics debris (include also physics debris) : [1024]
Pushables (Passes entities with classname func_pushable) : [4] Obsolete
已弃用。
Equivalent to using Everything + filter_activator_class that filters func_pushable.

输入

BaseTrigger
Toggle
Toggles this trigger between enabled and disabled states.
Enable
Enable trigger
Disable
Disable trigger
TouchTest  (存在于自 起源2007 以来)
Triggers either the OnTouching or OnNotTouching outputs for whether anything is touching this entity.
Icon-Bug.png错误:Sleeping prop_physics will never fire "OnTouching". Also applies to entities using prop_physics as base.  (tested in: 半衰期2)
StartTouch  (存在于自 起源2007 以来) 不存在于FGD!
Behave as if the !caller entity had just entered the trigger volume. Accepts non-physical entities.
EndTouch  (存在于自 起源2007 以来) 不存在于FGD!
Behave as if !caller had just exited the trigger volume.
DisableAndEndTouch  (存在于 起源2013 多人分支军团要塞2分支 之中)
Disables this trigger and calls EndTouch on all currently-touching entities.


输出

BaseTrigger
OnStartTouch
!activator = entity that caused this output
!caller = this entity
Fired when a valid entity starts touching this trigger.
OnStartTouchAll
!activator = entity that caused this output
!caller = this entity
Fired when a valid entity starts touching this trigger, and no other entities are touching it. If there are any other entities touching the trigger when a new one begins to touch, only OnStartTouch will fire.
OnEndTouch
!activator = entity that caused this output
!caller = this entity
Fired when a valid entity stops touching this trigger.
Note.png注意:Will also fire for entities touching it when trigger is disabled via Disable input
Warning.png警告:This includes entities which are deleted while inside the trigger. In this case !activator will be invalid.
Warning.png警告:OnEndTouch can fire before OnStartTouch under certain circumstances[如何?] where both are fired on the same tick and each have the same delay.
Note.png修复:Add a slight delay to OnEndTouch.
OnEndTouchAll
!activator = entity that caused this output
!caller = this entity
Fired when all valid entities stop touching this trigger.
OnTouching  (存在于自 起源2007 以来)
!activator = !caller = this entity
Fired if something is currently touching this trigger when TouchTest is fired.
OnNotTouching  (存在于自 起源2007 以来)
!activator = !caller = this entity
Fired if nothing is currently touching this trigger when TouchTest is fired.