agrip/d5k.mqc File Reference

Go to the source code of this file.

Functions

void snap_d5k_constructor ()
void snap_d5k_starter ()
void snap_d5k_main ()


Function Documentation

void snap_d5k_constructor (  ) 

This function sets up the detector object.

As with the other constructors, this function is run from the perspective of the player.

Definition at line 39 of file d5k.mqc.

References entity(), and snap_d5k_main().

Referenced by agh_client_startdevs(), and agh_weapons_impulsecommands().

void snap_d5k_main (  ) 

Detect nearby objects and make sounds to identify them based on object type and distance from player.

The function snap_d5k_starter() is called when the entity chain is empty, to repopulate it. This is done by changing the ``.think'' enity of the D5k to snap_d5k_starter().

The entities are processed one after the other, as they are all chained together. The volume of the sound is calculated, then a sound is made at the appropriate position, with the appropriate sound to signify the type of entity found.

Definition at line 102 of file d5k.mqc.

References snap_d5k_starter(), snap_misc_ownervisible(), and vector().

Referenced by snap_d5k_constructor(), and snap_d5k_starter().

void snap_d5k_starter (  ) 

This function acquires the entity chain and sets going one scan of the d5k.

When the entity chain has been created, the D5k's ``.think'' function is set to snap_d5k_main() so that it can sound out the appropriate entities found.

Definition at line 78 of file d5k.mqc.

References snap_d5k_main().

Referenced by snap_d5k_main().


Generated on Tue Jan 1 17:55:54 2008 for AudioQuake QuakeC by  doxygen 1.5.4