Deathtouch

Deathtouch Trigger

Classnames: trigger_deathtouch (PoP only)
Purpose: Extermination.
H2 Code: triggers.hc
fields required: target
Kills things that touch it, either players, or targetted other items, depending on its spawnflags.

Fields

target Value is a name; entity with matching targetnames is killed if it touches the trigger; unless the ANY_PLAYER spawnflag is set, then it kills touching players instead.
targetname Value is a name; can be used to activate the trigger. The code documentation also speaks of killing all targetted entities when triggered, but this isn't done in the maps and I can't make it work.
spawnflags: Add up the numbers for the properties you want, & set the sum as the spawnflags value.
  • 1 = NOTOUCH: doesn't kill on touch (or at all, as far as I can tell; not used in the maps)
  • 2 = ANY_PLAYER: kills a touching player, but not a targetted monster or other item.
  • 4 = GIB: gibs if possible
  • 8 = INACTIVE: must be activated to work.

Note: the hcode comments speak of setting a th_die to provide a specific mode of death, but this isn't done in the maps & I haven't looked into it.
Back to the list.