Trigger quake

Trigger quake

Classname: trigger_quake
Purpose: Earthquakes
H2 Code: triggers.hc
Fields required: origin, targetname
Earthquake effect: "Sorry some of the entity names are screwy, but it saves space" it says in the code comments. There seem to be some PoP enhancements, which I haven't really tested.

Fields

origin as usual.
targetname as usual.
lifespan Value is a number, how long it lasts, default = 2. Long lifespans aren't much use because the sound effect stops after a few seconds.
angle (PoP only) Value is a number, direction it must be approached to set it off (I haven't actually tested this, but from reading the code it looks like it should work). 0 will be taken as no angle, for an angle of 0, use 1.
wait Value is a number, wait before quake starts, default = 1. -1 value occurs in egypt1; I'm not really sure what it's for but seems to make quake start immediately (0 would give the default = 1). Note that somewhat bizarrely, the lifespan is computed more or less from the trigger time rather than the actual start of the quake, so that if wait and lifespan are both 6, the quake will be very short!
target, killtarget, message As usual.
dmg Value is a number, supposedly damage to player, but doesn't seem to work.
items Value is a number, supposedly radius of quake, but I don't think it works in original H2. It's used in PoP, so maybe it works there.
spawnflags Supposedly 1 = dodamage, 2 = multiple, but I can't get them to do anything.

Back to the list.