Nuclide
Software Development Kit for id Tech
prop_physics_multiplayer Class Reference
Inheritance diagram for prop_physics_multiplayer:
NSPhysicsEntity

Public Member Functions

void prop_physics_multiplayer (void)
 
virtual void Init (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...
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load. More...
 
virtual void Touch (entity)
 Called whenever we're touching another entity. More...
 
virtual void TouchThink (void)
 

Detailed Description

QUAKED prop_physics_multiplayer (1 0 0) (-16 -16 -16) (16 16 16) PRPPHYS_ASLEEP

OVERVIEW

Physics prop that is optimised for netplay. It either pushes the player away, or gets pushed away by the player. The simulation can take place on either client or server.

KEYS

  • "targetname" : Name
  • "physicsmode" : Which type of push/simulation model to use. See notes.

NOTES

'physicsmode' can be one of three things:

  1. push player away
  2. get pushed (server-side)
  3. get pushed (client-side)

TRIVIA

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

Constructor & Destructor Documentation

◆ prop_physics_multiplayer()

void prop_physics_multiplayer::prop_physics_multiplayer ( void  )

Member Function Documentation

◆ Init()

void prop_physics_multiplayer::Init ( void  )
virtual

Reimplemented from NSIO.

◆ Respawn()

void prop_physics_multiplayer::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 NSPhysicsEntity.

◆ SpawnKey()

void prop_physics_multiplayer::SpawnKey ( string  strKey,
string  strValue 
)
virtual

This method handles entity key/value pairs on map load.

You can easily convert the strValue parameter using the ReadFloat etc. methods that are part of NSIO.

Reimplemented from NSPhysicsEntity.

◆ Touch()

void prop_physics_multiplayer::Touch ( entity  eToucher)
virtual

Called whenever we're touching another entity.

Reimplemented from NSPhysicsEntity.

◆ TouchThink()

void prop_physics_multiplayer::TouchThink ( void  )
virtual

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