Nuclide
Software Development Kit for id Tech
phys_constraint Class Reference
Inheritance diagram for phys_constraint:
NSPhysicsConstraint

Public Member Functions

void phys_constraint (void)
 
virtual void Respawn (void)
 Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state. More...
 
nonvirtual void AfterSpawn (void)
 

Detailed Description

QUAKED phys_constraint (.5 .3 0) (-8 -8 -8) (8 8 8) BREAKCOLL x INACTIVE MASS NOCONNECT

OVERVIEW

Creates a fixed connection between two entities.

KEYS

  • "targetname" : Name
  • "attach1" : Entity 1
  • "attach2" : Entity 2

INPUTS

  • "Break" : Forcefully break the constraint.
  • "TurnOn" : Turn
  • "TurnOff" : Disables the constraint

SPAWNFLAGS

  • BREAKCOLL (1) : No collision until the connection breaks.
  • INACTIVE (4) : Starts inactive.
  • MASS (8) : Mass Hack.
  • NOCONNECT (16) : Will not connect entities until turned on via Inputs.

TRIVIA

This entity was introduced in Half-Life 2 (2004).

Constructor & Destructor Documentation

◆ phys_constraint()

void phys_constraint::phys_constraint ( void  )

Member Function Documentation

◆ AfterSpawn()

void phys_constraint::AfterSpawn ( void  )

◆ Respawn()

void phys_constraint::Respawn ( void  )
virtual

Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state.

Reimplemented from NSEntity.


The documentation for this class was generated from the following file: