Pressure Plates

Pressure Plates

Classname: func_pressure
Purpose: Walk on me.
H2 Code: buttons.hc
Some resemblance to buttons, except responds to cumulative mass on top of rather than to being bumped into. Pressure plates don't seem able to be activated, nor to be able to target trigger_counters, but multiple pressure plates can target a trigger_check entity, which will then only fire if both or down (this requires that the trigger_check and the func_pressure entities share the same netname-value). In the Raven maps (including PoP), pressure plates appear only in Egypt5, in the puzzle where you have to get two of them down in order to open a door.

Fields

angle Value is an angle (in degrees); button goes that way when pushed, -1 for up, -2 for down.
target Value is a name; Entity with matching targetname value is triggered.
speed Value is a number, which overrides the default 40 speed.
mass Value is a number, total (cumulated) mass needed to trigger. Some sample masses are (unchecked info from buttons.hc):

  • Player ~= 60-80
  • Normal barrel = 75-85
  • Indestructible barrel
wait Value is a number, which overrides the default 1 second wait for the plate to pop back. -1 value means never return.
soundtype Value is one of these numbers:
  • 0 -- steam metal
  • 1 -- wooden clunk
  • 2 -- metallic clink
  • 3 -- in-out
lip Value is a number; plate travels its width minus the lip in pixels when they're pushed. The default is 4.
health With a health-value, the plate responds to bashing as well as being stepped on, but not in a very useful way, it seems to me (a vestige from a previous life perhaps?)
abslight Value between 0 and 1 (decimal), to set the absolute light-value.
targetname Supposedly for activation, as with buttons, but I haven't got it to work yet.
netname Value is a name, shared with a trigger_check that the pressure-plate helps to fire.
spawnflags: 1 - ACTIVATE; supposedly requires activation, but doesn't seem to want to work for me.

Back to the list.