func_door

From Quake Wiki

Revision as of 07:29, 25 March 2013 by Than (talk | contribs) (fixed displayname)


This is a brush entity that can move in the level. As the name implies it is commonly used for doors, however its movement is also useful in implementing simple moving objects such as lifts or extending platforms. It can be made to open in any horizontal direction, or straight up or down, but the standard Quake entities were not capable of rotation, unlike many recent patches such as the Ritual and Rogue add-on mission packs, and Hexen2, but clever map designers can still make interesting effects with a little time and imagination. To place a door in your map, create the brush you wish to use as the door, then turn it into a func_door entity.

Attributes

func_door has the following attributes in Worldcraft. These may also be known as keyvalues.

  • Angle : The direction of motion for the entity when triggered
  • Name / Targetname : Give the entity a name for identification by other entities. Only use this if you want the door to be locked until triggered by something else, such as a button.
  • Target : Give the entity a target entity to trigger
  • Killtarget : Give the entity a target entity to kill
  • Speed : Speed of movement when triggered
  • Sounds : Type of sounds produced by the entity when triggered. The selection is limited to the following options:
    • None (value 0)
    • Stone (value 1)
    • Machine (value 2)
    • Stone Chain (value 3)
    • Screechy Metal (value 4)
    • Custom Sounds (value 5)
  • Move sound / noise2 : The sound to play during movement if custom sounds are being used
  • Stop sound / noise1 : The sound to play when motion stops if custom sounds are being used
  • Delay before close / Wait : The time in seconds before the motion reverses to return the entity to the original position
  • Lip : The amount of additional distance to add to the motion. The default amount is equal to the width of the brush in the direction of motion. This value can be positive or negative; positive values reduce the distance while negative values increase the distance.
  • Damage inflicted when blocked : The amount of damage to apply to an entity that attempts to block the motion of the door
  • Message if triggered / message : Sends a message to display on the player's screen when triggered
  • Health (shoot open) : Amount of damage required to be done to the entity to trigger motion

Flags

func_door has the following entity spawnflags:

  • Starts open : The entity is moved to the open position for it's initial state
  • Don't link : Restricts the entity from being linked to a matching door (preventing it from opening as part of a pair)
  • Gold key required : The entity will not move unless the player has collected the Gold Key
  • Silver key required : The entity will not move unless the player has collected the Silver key
  • Toggle : The entity will toggle between open and closed states instead of automatically closing after a delay
  • Not in Easy : The entity will not exist if the player is in Easy difficulty mode
  • Not in Normal : The entity will not exist if the player is in Normal difficulty mode
  • Not in Hard : The entity will not exist if the player is in Hard difficulty mode
  • Not in Deathmatch : The entity will not exist if the game is a Deathmatch game