Func lookdoor
Jump to navigation
Jump to search


Template:Hl2 brush It's a door that moves, either when looked by a targeted object or when a target object comes near the door. Behavior can be either based on viewing direction or proximity alone, or on a combination of both.

SetPosition
input and Start Position keyvalue do not perform any bounds checking, so values less than 0 and greater than 1 can be used. Negative values will move in the opposite direction to the movement direction, and values greater than 1 will move it in multiples of the set Move Distance. Moving past the opened/closed position does not trigger the OnFullyOpen
and OnFullyClosed
outputs.


Flags
FuncMoveLinear:
- Not Solid : [8]

LookDoor:
- 8192: LookDoor Threshold
- 16384: LookDoor Invert
- 32768: LookDoor From Open
Keyvalues
- Target (target) ([todo internal name (i)]) <targetname> !FGD
- View cone switch for this door (Necessary to trigger it).[Clarify]
- Proximity Distance (ProximityDistance) ([todo internal name (i)]) <float>
- If non-zero, how close player must be for door to move.
- Proximity Offset (ProximityOffset) ([todo internal name (i)]) <float>
- Offset from the target object.
- Field of View (FieldOfView) ([todo internal name (i)]) <float>
- If non-zero, how far away from the door the player can look while still triggering it.
FuncMoveLinear:
- Move Direction (Pitch Yaw Roll) (movedir) <angle>
- The direction the entity will move in.
- Start Position (startposition) <float>
- Position of brush when spawned, where 0 is the starting position and 1 is starting position + (move direction * move distance).
- Speed (speed) <integer>
- The speed that the brush moves, in inches per second.
- Move Distance (movedistance) <float>
- The distance from the starting point that the brush should move, in inches.
- Block Damage (blockdamage) <float>
- The amount of damage to do to any entity that blocks the brushes, per frame.

- Sound played when the brush starts moving. (startsound) <sound>
- The sound to play when the brush starts moving.
- Sound played when the brush stops moving. (stopsound) <sound>
- The sound to play when the brush stops moving.
Inputs
- InvertOn
- Make the door behave oppositely. Player has to be outside Proximity Distance, and not looking at the door within Field of View.
- InvertOff
- Turn door behavior back to the normal method.
FuncMoveLinear:
- Open
- Move the brush to the end position (starting position + (move direction * move distance)).
- Close
- Move the brush to the starting position.
- SetPosition <float >
- Move the brush to a specific position, where 0 is the starting position and 1 is the starting position + (move direction * move distance).
- SetSpeed <float >
- Set the speed and update immediately.
- TeleportToTarget <targetname > (only in
)
- Teleport to the origin of a given entity.
- ResetPosition <float > (only in
)
- Set a new start position, parameter relative to wherever the current one is. Todo: Parameter might actually be optional?
Outputs
FuncMoveLinear:
- OnFullyOpen
- !activator = !caller = this entity
Fired when the brush reaches the end position (starting position + (move direction * move distance)).
- OnFullyClosed
- !activator = !caller = this entity
Fired when the brush reaches the starting position.