Trap lightning

Trap lightning

Classname: trap_lightning
Purpose: Harassment
H2 Code: misc.hc
fields required: origin,targetname
Shoots lightning when triggered, can track player or shoot at a weather_lightning_end (targetted lightning appears in the game (EGYPT5), but I haven't managed to get it to display the flash). Player tracking requires the TRACK(=1) spawnflag to be set.

Fields

origin Value is a triple of numbers; where it is, your mapeditor should handle this visually, automatically.
targetname value is a name, lightning fires when trigger fires. REQUIRED, else shooter won't do anything.
dmg Value is a number; damage done by hit, default=10.
wait Value is a number; intervaal between firings, in secs, default=1.
target Value is a name, target-value of a weather_lighting_end. Targetted lightning seems to fire one bold when triggered, & I haven't managed to get the flash to display.
spawnflags Sum of numbers below for properties desired:
  • 1 - TRACK: tracks player
  • 2 - ONCE: fires once only.

Note

There's supposed to be noise controlling whether it's silent or not, but I haven't managed to make it work. aflag is supposed to limit radius, but doesn't appear in the maps and crashes the game to console.
Back to the list.