halloween_zapper

From Valve Developer Community
Jump to navigation Jump to search
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>
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 (touch_trigger) <targetname>
The dispenser_touch_trigger that defines which players to zap. The entity is coded to look for this trigger type specifically and will not function with any other type.
Particle Effect (ParticleEffect) <string>
The particle effect to be played when fired.
Zapper Type (ZapperType) <choices>
  • 0: Zap on touch
  • 1: Zap only on input

Inputs

ZapTouching
Zap all touching players.

EnableDisable:

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