Zh/Point prop use target: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
(Created page with "{{subst:#if: Translation of 'Point prop use target' to '中文' via Template:LanguageBar buttons * * * * * * * * * * * * * * * * * * * * * * * * * * * *...")
 
No edit summary
 
Line 1: Line 1:
{{subst:#if:|||{{LAuto/t}}


--- DON'T JUST BLINDLY DELETE THIS PART. DO REPLACE THE LINKS AND CATEGORIES. THE PICTURE SHOWS HOW TO USE IT ! ---
SEARCH FOR:
\[\[(?!#|File(?:[ _]talk)?:|Image(?:[ _]talk)?:|Media:|Template(?:[ _]talk)?:|MediaWiki(?:[ _]talk)?:|Talk:|Category[ _]talk:|Project[ _]talk:|Valve[ _]Developer[ _]Community[ _]talk:|Help[ _]talk:|User(?:[ _]talk)?:|c:|commons:|Dictionary:|Google:|GoogleGroups:|IMDB:|M:|Meta:|Metawikipedia:|MW:|SdkBug:|SourceForge:|Steampowered:|W:|Wiki:|WikiBooks:|Wikipedia:|Wikiquote:|Wiktionary:|WP:)(:?(?:Category|Category|Help|Project|Valve[ _]Developer[ _]Community|Special|)(?:[^\|\]]+))(\|?.*?)\]\]
REPLACE WITH:
{{subst:LAuto|$1$2}}
}}{{wip}}{{translating}}
{{LanguageBar}}
{{LanguageBar}}
{{:User:1416006136/Signature|time=May 9 2025 14:29}}
{{CD|CPointPropUseTarget}}
{{CD|CPointPropUseTarget}}
{{This is a|point entity|name=point_prop_use_target|game=Left 4 Dead 2}} It is an use target for carried props. Triggers the prop's use behavior. This is the point entity that players approach and "fills the gas" or "drops off the cola" with. Currently only available for gas can and cola props.
{{This is a|point entity|name=point_prop_use_target|game=Left 4 Dead 2}} 它是携带的道具的'''使用目标'''。会触发道具使用行为。这是一个让玩家靠近以「灌油」或者「放入可乐」的点实体。目前只有汽油桶和可乐道具可以使用。__NOTOC__
__NOTOC__


== Keyvalues ==
== 键值 ==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Gas nozzle|intn=nozzle|target_destination|The name of the prop_dynamic gas nozzle for this use_target (scavenge mode).}}
{{KV|Gas nozzle|intn=nozzle|target_destination|用于此 use_target (清道夫模式) 的 prop_dynamic 灌油口实体的目标名。}}


== Flags ==
== 标志 ==
{{fl|1|Useable by Gas Can}}
{{fl|1|Useable by Gas Can 可被汽油桶使用}}
{{fl|2|Useable by Cola Bottles}}
{{fl|2|Useable by Cola Bottles 可被可乐使用}}


== Outputs ==
== 输出 ==
{{O|OnUseStarted|ac-is-this=1|Fired when a player starts using this target.}}
{{O|OnUseStarted|ac-is-this=1|当玩家开始使用该目标时触发。}}
{{O|OnUseCancelled|ac-is-this=1|Fired when a player use is cancelled.}}
{{O|OnUseCancelled|ac-is-this=1|当玩家取消使用时触发。}}
{{O|OnUseFinished|ac-is-this=1|Fired when a player use is complete.}}
{{O|OnUseFinished|ac-is-this=1|当玩家完成使用时触发。}}


==Inputs==
==输入==
{{I|Activate|Activate the use target.}}
{{I|Activate|激活该使用目标。}}
{{I|Deactivate|Deactivate the use target.}}
{{I|Deactivate|禁用该使用目标。}}


== See also ==
== 另见 ==
* {{ent|game_scavenge_progress_display}}
* {{ent|game_scavenge_progress_display}}
* [[L4D2 Level Design/Scavenge Maps]]
* {{L|L4D2 Level Design/Scavenge Maps|求生之路2关卡设计/清道夫地图}}

Latest revision as of 07:29, 9 May 2025

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

This page was translated by DaKang233 on May 9, 2025 (UTC+8). Anyone is welcome to add new content or fix errors.


C++ 类层级
CPointPropUseTarget
CBaseEntity

point_prop_use_target是一个点实体(en),可在求生之路2 求生之路2中使用。 它是携带的道具的使用目标。会触发道具使用行为。这是一个让玩家靠近以「灌油」或者「放入可乐」的点实体。目前只有汽油桶和可乐道具可以使用。

键值

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

Gas nozzle (nozzle) <target_destination>
用于此 use_target (清道夫模式) 的 prop_dynamic 灌油口实体的目标名。

标志

Useable by Gas Can 可被汽油桶使用 : [1]
Useable by Cola Bottles 可被可乐使用 : [2]

输出

OnUseStarted
!activator = !caller = this entity
当玩家开始使用该目标时触发。
OnUseCancelled
!activator = !caller = this entity
当玩家取消使用时触发。
OnUseFinished
!activator = !caller = this entity
当玩家完成使用时触发。

输入

Activate
激活该使用目标。
Deactivate
禁用该使用目标。

另见