Crushers

Crushers

Classname: func_crusher
Purpose: Squash player.
H2 Code: plats.hc
The basic idea of a crusher is to go back and forth (or up and down) repetitively, creating a trap for the player. They should be drawn in their extended (crushing) position (so that they will be lit correctly), with their angle specifying the direction they retract in (typically into a wall).

Fields

angle Value is an angle (in degrees, default = 0 = west); direction of motion. -1 for up, -2 for down.
speed Value is a number, movement speed; 150 = default.
lip Value is a number, distance left over after movement, 4=default (crusher moves its length in the direction of movement, less 4 or the lip-value).
dmg Value is a number, danage inflected on player when squashed. default = 10. 666 means gib on contact.
targetname Value is a name, the target-value of a trigger, which turns the crusher on and off. Exactly what happens is determined by the MULTIPLE spawnflag: if MULTIPLE is on, then each activation of the trigger produces a single movement-cycle for the crusher, if it's off, the trigger toggles whether the crusher is running or not (inactive crushers don't cause damage, even when dmg=666).
soundtype Value is one of the following numbers:
  • 1 - base fast
  • 2 - chain slow (default)
  • 3 - guillotine
spawnflags Value is a number, gotten by adding up the following numbers for the properties you want:
  • 1 - MULTIPLE: discussed in treatment of targetname field.
  • 2 - SLIDE: door-style accelerating movement
  • 4 - START_OPEN: crusher starts in `open' or post-movement position.
  • 8 - END_OPEN: crusher stops in open position.

Notes

The code comments mention a wait field, but this does nothing for me, and I can't find it referred to the actual code.


Back to the list.