Nuclide
Software Development Kit for id Technology
target_speaker Class Reference

About this class

Server-Entity: Redundant Sound Emitter #1.

QUAKED target_speaker (1 0 0) (-8 -8 -8) (8 8 8)

OVERVIEW

This entity plays a background sound.

KEYS

  • "targetname" : Name
  • "target" : Target when triggered
  • "killtarget" : Target to kill when triggered
  • "noise" : Path to the sound file
  • "volume" : Volume to play the sound as (normalized, 0.0 - 1.0)
  • "attenuation" : Attenuation. -1 = everywhere, 1 = normal, 2 = ATTN_IDLE, 3 = ATTN_STATIC

SPAWNFLAGS

  • LOOP (1) : Loop sound, always.

TRIVIA

It was introduced in Quake II (1997).

Inheritance diagram for target_speaker:
NSSound

Public Member Functions

void target_speaker (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...
 

Constructor & Destructor Documentation

◆ target_speaker()

void target_speaker::target_speaker ( void  )

Member Function Documentation

◆ Respawn()

void target_speaker::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 NSSound.

◆ SpawnKey()

void target_speaker::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 NSPointTrigger.


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