Door

From Tremulous Wiki
Jump to: navigation, search

A Tremulous door is a sliding brush (or set of brushes, so very complex door shapes are easily possible). By default the door will automatically open when a player gets close to it. It does not rotate like the rotating door.

Doors are extremely flexible. For example: A door can easily be used as a lift (by setting lip to a high negative value). A door could also be very small, not intended for someone to walk through, to use it as a status light while, for example, a lift cycle is busy somewhere.

Entity Name: 'func_door'

Keys

Key Default Value Effect
Health 0 If set to any non-zero value, the door must take damage (any amount) to activate.
Angle 0 Determines the opening direction of door. (up = -1, down = -2)
Speed 100 Determines how fast the door moves (Measured in 'Game Units' per second).
Wait 2 Number of seconds before door returns (-1 = return immediately).
Lip 8 Lip remaining at end of move (In 'Game Units').
Targetname If set, a func_button or trigger is required to activate the door.
Target If set, will trigger specified entity when door reaches final position (open or closed).
dmg 4 Damage to inflict on player when he blocks operation of door. Door will reverse direction when blocked unless CRUSHER spawn flag is set.
Team Assign the same team name to multiple doors that should operate together

Spawn Flags

Flag Action
START_OPEN The door will spawn in the open state and operate in reverse.
CRUSHER Door will not reverse direction when blocked and will keep damaging player until he dies or gets out of the way.

The door has four sounds: One when it starts its motion, one when it stops. And these two again in the other direction.


Creating a Door

  • Create a brush or set of brushes.
  • Select all the brushes making up the door
  • Right-click in the 2-D View window and select 'func_door' under the 'Func' menu option.


While selected press 'N' to open the entity window and edit the doors keys (Parameters).

Tremulous
Personal tools