Newplat

Newplat

Classname: func_newplat
Purpose: 2-way elevators
H2 Code: plats.hc
fields required: height
Plats that are meant to go down as well as up. Like ordinary plats, they should normally be put into the map in their `up' position, so that they will light correctly. Player can recall newplat to `down' position by walking under it (but then better step back ...)

Fields

height Value is a number, REQUIRED in order for plat to go anywhere (code to set default height doesn't seem to work). Plat will normally be displayed in the `down' position, that is the map position minus the height.
speed Value is a number, which overrides the default 150 speed.
soundtype Value is a number:
  • 1 - pulley
  • 2 - chain (default)
dmg Value is a number, 666 causes gib on contact with moving plat; otherwise no effect on damage-rate while player is being squashed (not very useful, it would appear).
wait Value is a number, time (secs) until automatic return movement, if this has been enabled by a spawnflag. default = 3.
spawnflags Value is a number, sum of numbers for properties desired below (here for more explanation):
  • 1 - START_BOTTOM : platform will initially be drawn at the bottom of it's travel movement and will operate as an upgoing platform. Eutectic says `Designer must draw the platform in the topmost position nevertheless' but this didn't work for me.
  • 2 - RETURN_TO_START : makes the platform return to its start point after being used (use wait to say after how much delay).
  • 4 - CONTINUOUS: once used, the platform will operate by itself continuously.

Back to the list.