Nuclide
Software Development Kit for id Technology (BETA)
Loading...
Searching...
No Matches

About this class

Server-Entity: Item Supply Crate with optional Physics.

QUAKED item_item_crate (1 0 0) (-8 -8 -8) (8 8 8)

OVERVIEW

Server-side Item Supply Crate which can also have physics.

KEYS

  • "model" : Model that represents the crate entity.
  • "ItemClass" : Name of the entity class to spawn upon breaking.
  • "ItemCount" : Total number of items dropped upon breaking.

TRIVIA

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

Inheritance diagram for item_item_crate:
ncPhysicsEntity

Public Member Functions

void item_item_crate (void)
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load.
 
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.
 

Constructor & Destructor Documentation

◆ item_item_crate()

void item_item_crate::item_item_crate ( void )

Member Function Documentation

◆ Respawn()

void item_item_crate::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 ncPhysicsEntity.

◆ SpawnKey()

void item_item_crate::SpawnKey ( string keyName,
string setValue )
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 ncIO.

Reimplemented from ncPhysicsEntity.


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