agrip/extnav.mqc File Reference

Go to the source code of this file.

Functions

void snap_extnav_osd ()
float snap_extnav_osd_check (vector v_start, vector v_off)
void snap_extnav_osd_sound ()
void snap_extnav_compass ()


Function Documentation

void snap_extnav_compass (  ) 

This works out which way the player is pointing and tells them! It uses the snap_misc_normalyaw() function.

The global variable ``SNAP_MISC_NORMYAW_OFFSET'' set in the function ``PutClientInServer'' in client.qc is used as an offset. This is because the player could spawn at any angle in a map -- we need to make sure that ``North'' is always considered to be the way they are facing when they spawn.

Definition at line 203 of file extnav.mqc.

References snap_misc_m2m(), and snap_misc_normalyaw().

Referenced by agh_weapons_impulsecommands().

void snap_extnav_osd (  ) 

Show the player where big open spaces are

This function is executed as the player.groundentity object. The function must pause at each detected open space. It does this by returning with a nextthink in the future. The entry point on return is governed by the self.frags property. self.health should be set by the caller (in hooks.qc) and is the detection range.

Definition at line 49 of file extnav.mqc.

References snap_extnav_osd_check(), snap_extnav_osd_sound(), and vector().

Referenced by agh_weapons_impulsecommands().

float snap_extnav_osd_check ( vector  v_start,
vector  v_off 
)

Check for free space in a given direction...

Parameters:
v_start the start position
v_off the left/right/fwd offset
Returns:
either true or false

Definition at line 160 of file extnav.mqc.

Referenced by snap_extnav_osd().

void snap_extnav_osd_sound (  ) 

Sound out the free space that has been found...

Definition at line 176 of file extnav.mqc.

Referenced by snap_extnav_osd().


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