Tf halloween pickup: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy, cleanup)
(src link, intn)
Line 1: Line 1:
{{CD|CHalloweenPickup|base=CTFPowerup|nolink=1|file1=entity_halloween_pickup.cpp}}
{{CD|CHalloweenPickup|base=CTFPowerup|file1=entity_halloween_pickup.cpp}}
{{this is a|point entity|game=Team Fortress 2|name=tf_halloween_pickup}}
{{this is a|point entity|game=Team Fortress 2|name=tf_halloween_pickup}}


Line 6: Line 6:
== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{KV|pickup_sound|string|Sound played when this entity is touched.}}
{{KV|pickup_sound|intn=pickup_sound|string|Sound played when this entity is touched.}}
{{KV|pickup_particle|string|Particle displayed when touched.}}
{{KV|pickup_particle|intn=pickup_particle|string|Particle displayed when touched.}}


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

Revision as of 19:54, 18 February 2025

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

tf_halloween_pickup is a point 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.