Halloween zapper: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(-added class hierarchy, cleanup)
 
Line 1: Line 1:
{{lang|Halloween zapper}}{{this is a|point entity|game=Team Fortress 2|name=halloween_zapper}} When triggered, it plays a particle effect on players within an area. Despite the default FGD description of "Halloween Hell zapper," it does nothing on its own aside from playing the particle effect.
{{LanguageBar}}
{{CD|CTFHellZap|nolink=1|file1=tf_weapon_spellbook.cpp}}
{{this is a|point entity|game=Team Fortress 2|name=halloween_zapper}} When triggered, it plays a particle effect on players within an area. Despite the default FGD description of "Halloween Hell zapper," it does nothing on its own aside from playing the particle effect.


==Keyvalues==
== Keyvalues ==
{{KV Targetname}}
{{KV|Custom Touch Trigger|target_destination|The trigger that defines which players to zap.}}
{{KV|Custom Touch Trigger|target_destination|The trigger that defines which players to zap.}}
{{KV|Particle Effect|string|The particle effect to be played when fired.}}
{{KV|Particle Effect|string|The particle effect to be played when fired.}}
Line 7: Line 10:
* 0: Zap on touch
* 0: Zap on touch
* 1: Zap only on input}}
* 1: Zap only on input}}
{{KV BaseEntity|base=1}}
 
==Inputs==
== Inputs ==
{{IO|ZapTouching|Zap all touching players.}}
{{I|ZapTouching|Zap all touching players.}}
{{I BaseEntity|base=1|noscroll=0}}
{{I EnableDisable}}
{{I EnableDisable}}
{{confirm|can it actually be enabled and disabled?}}
{{confirm|can it actually be enabled and disabled?}}
==Outputs==
{{O BaseEntity}}

Latest revision as of 16:30, 25 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CTFHellZap
CBaseEntity
C++ tf_weapon_spellbook.cpp

halloween_zapper is a point entity available in Team Fortress 2 Team Fortress 2. When triggered, it plays a particle effect on players within an area. Despite the default FGD description of "Halloween Hell zapper," it does nothing on its own aside from playing the particle effect.

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

Custom Touch Trigger ([todo internal name (i)]) <targetname>
The trigger that defines which players to zap.
Particle Effect ([todo internal name (i)]) <string>
The particle effect to be played when fired.
Zapper Type ([todo internal name (i)]) <choices>
  • 0: Zap on touch
  • 1: Zap only on input

Inputs

ZapTouching
Zap all touching players.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Confirm:can it actually be enabled and disabled?