Tf halloween pickup: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Reordered Outputs.)
m (Classifying as model entity)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{tf2 point|tf_halloween_pickup}}
{{CD|CHalloweenPickup|base=CTFPowerup|file1=entity_halloween_pickup.cpp}}
{{this is a|model entity|game=Team Fortress 2|name=tf_halloween_pickup}}


{{code class|CHalloweenPickup|entity_halloween_pickup.cpp}}
==Entity Description==
A Halloween-styled Health kit used in [https://wiki.teamfortress.com/wiki/Halloween_event Halloween Events].
A Halloween-styled Health kit used in [https://wiki.teamfortress.com/wiki/Halloween_event Halloween Events].


==Keyvalues==
== Keyvalues ==
{{KV|pickup_sound|string|Sound played when this entity is touched.}}
{{KV Targetname}}
{{KV|pickup_particle|string|Particle displayed when touched.}}
{{KV|pickup_sound|intn=pickup_sound|string|Sound played when this entity is touched.}}
{{KV BaseEntity}}
{{KV|pickup_particle|intn=pickup_particle|string|Particle displayed when touched.}}
 
==Inputs==
{{I BaseEntity}}


==Outputs==
== Outputs ==
{{IO|OnRedPickup|Fired when a RED player touches this entity.}}
{{O|OnRedPickup|Fired when a RED player touches this entity.}}
{{IO|OnBluePickup|Fired when a BLU player touches this entity.}}
{{O|OnBluePickup|Fired when a BLU player touches this entity.}}
{{O BaseEntity}}

Latest revision as of 04:34, 19 May 2025

C++ Class hierarchy
CHalloweenPickup
CTFPowerup
CItem
CBaseAnimating
CBaseEntity
C++ entity_halloween_pickup.cpp

tf_halloween_pickup is a model entity available in Team Fortress 2 Team Fortress 2.

A Halloween-styled Health kit used in Halloween Events.

Keyvalues

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

pickup_sound (pickup_sound) <string>
Sound played when this entity is touched.
pickup_particle (pickup_particle) <string>
Particle displayed when touched.

Outputs

OnRedPickup
Fired when a RED player touches this entity.
OnBluePickup
Fired when a BLU player touches this entity.