Nuclide
Software Development Kit for id Tech
env_particle Class Reference
Inheritance diagram for env_particle:
NSEntity

Public Member Functions

void env_particle (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 customphysics (void)
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load. More...
 
virtual bool CanSpawn (bool)
 Returns if this entity can spawned from the map file. More...
 

Detailed Description

QUAKED env_particle (1 .5 0) (-8 -8 -8) (8 8 8)

OVERVIEW

Client-side particle effect. Active at runtime, fully client-side. Cannot be triggered. Repeats automatically.

KEYS

  • "message" : Particle material to use.
  • "wait" : Delay between emits.
  • "target" : Name of target, like an info_notnull (client-side)
  • "velocity" : Speed in units.
  • "count" : Number of particles to emit.

TRIVIA

This entity was introduced in The Wastes (2018).

Constructor & Destructor Documentation

◆ env_particle()

void env_particle::env_particle ( void  )

Member Function Documentation

◆ CanSpawn()

bool env_particle::CanSpawn ( bool  clientSide)
virtual

Returns if this entity can spawned from the map file.

Parameters
clientSideIf it's being spawned on the client-side.

Reimplemented from NSEntity.

◆ customphysics()

void env_particle::customphysics ( void  )
virtual

◆ Respawn()

void env_particle::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.

◆ SpawnKey()

void env_particle::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 NSEntity.


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