Trap fireball

Trap fireball

Classname: trap_fireball
Purpose: Harassment
H2 Code: eric.hc
fields required: origin,angle,targetname
Shoots fireballs when triggered, can track player or shoot at a target, such as as a target_null. Can fire once or continuously, depending on spawnflag, but must be switched on in order to work.

Fields

origin Value is a triple of numbers; where it is, your mapeditor should handle this visually, automatically.
angle Value is an angle (in degrees); don't really know what it's there, but shooter won't work without it. REQUIRED.
targetname value is a name, shooter shoots 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; interval between firings, in secs, default=0.5.
target Value is a name, targets whatever it's supposed to shoot at; if this is undefined, player is tracked instead.
spawnflags
  • 1 TRIGGERONLY - fires one shot each triggering, rather than continually.

Note

From the comments, maybe this was Eric Biessman's first significant H2 entity.
Back to the list.