Point prop use target: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Reformat)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{l4d2 point|point_prop_use_target}} 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.
__NOTOC__
{{CD|CPointPropUseTarget}}
{{entity|type=e0|game=Left 4 Dead 2|point_prop_use_target}} 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.


== Keyvalues ==
== Keyvalues ==
{{KV|Gas nozzle|target_destination|The name of the prop_dynamic gas nozzle for this use_target (scavenge mode).}}
{{KV|Gas nozzle|intn=nozzle|target_destination|The name of the prop_dynamic gas nozzle for this use_target (scavenge mode).}}
{{KV Origin}}
{{KV Targetname}}
{{KV Targetname}}


== Flags ==
== Flags ==
* 1 : Useable by Gas Can
{{fl|1|Useable by Gas Can}}
* 2 : Useable by Cola Bottles
{{fl|2|Useable by Cola Bottles}}
 
== Inputs ==
{{I Targetname}}


== Outputs ==
== Outputs ==
Line 17: Line 15:
{{IO|OnUseCancelled|Fired when a player use is cancelled.}}
{{IO|OnUseCancelled|Fired when a player use is cancelled.}}
{{IO|OnUseFinished|Fired when a player use is complete.}}
{{IO|OnUseFinished|Fired when a player use is complete.}}
{{O Targetname}}


== See also ==
== See also ==
* [[L4D2 Level Design/Scavenge Maps]]
* [[L4D2 Level Design/Scavenge Maps]]

Revision as of 11:24, 3 August 2023

C++ Class hierarchy
CPointPropUseTarget
CBaseEntity

Template:Entity 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.

Keyvalues

Gas nozzle (nozzle) <targetname>
The name of the prop_dynamic gas nozzle for this use_target (scavenge mode).
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Flags

Useable by Gas Can : [1]
Useable by Cola Bottles : [2]

Outputs

OnUseStarted
Fired when a player starts using this target.
OnUseCancelled
Fired when a player use is cancelled.
OnUseFinished
Fired when a player use is complete.

See also