Secret doors

Secret doors

Classname: func_door_secret
Purpose: Access granted/denied.
H2 Code: doors.hc
First move back, then to the side, actuated either by damage, or if they have a targetname, by a remote trigger (but not by approach, unlike an ordinary door0. The .hc code and Eutetic's list mention puzzle fields, but I haven't gotten them to work. Likewise abslight. A speed key appears in the maps, but doesn't seem to do anything. In Portal of Praevus, close_target doesn't work with secret doors.

Fields

angle Value is an angle (in degrees, default = 0 = west); door's first move is 90 deg. clockwise w.r.t the angle, second in the direction of the angle, unless the 1ST LEFT or 1ST DOWN spawnflags are set.
wait Value is a number, amount of time before closing; 3 = default, -1 = never return (OPEN_ONCE spawnflag also works for this).
soundtype Value is a number, indicating a sound type. This is produced together with the `secret door clicks' at end of each move.
dmg Value is a number, damage inflicted when door movement is actually blocked, e.g. player is caught between door and a wall (different from rotating doors, which inflict damage when they merely move player).
message Value is a number, indicting the message to be displayed upon touching a triggered or shot door that hasn't been opened yet (QuArK users can instead use a string-valued #message-field).
targetname Value is a name, the target-value of the door's remote trigger. Targetted doors won't open from damage unless the ALWAYS_SHOOT spawnflag is checked.
t_width Value is a number, overrides default = width of door for first (back) move. A value of 0 won't work (produces default), but .01 gives no visible movement (but you still get the two secret clicks).
t_length Value is a number, overrides default = length of door for second (sideways) move. A value of 0 won't work (produces default), but .01 gives no visible movement (but you still get the two secret clicks).
target Value is a name, the targetname-value of some entity that is triggered when the door opens.
spawnflags Value is a number, sum up the ones below for the properties you want (hopefully your editor has a checkbox scheme or something to do the arithmetic for you):
  • 1 - OPEN_ONCE: doesn't shut.
  • 2 - 1ST_LEFT: first move is 90 deg counterclockwise w.r.t angle.
  • 4 - 1ST_DOWN: first move is down
  • 8 - NO_SHOOT: doesn't seem to do anything.
  • 16 - ALWAYS_SHOOT: opens upon damage even if targetted
  • 32 - x = no function
  • 64 - REMOVE_PP: in .hc code comments but doesn't seem to work..
  • 128 - NO_PP: ditto.

Back to the list.