agrip/hooks.mqc File Reference

Go to the source code of this file.

Functions

void agh_world_checkstringext ()
void agh_world_precaches ()
void agh_world_padclients ()
void agh_client_startdevs ()
void agh_client_padclients_connect ()
void agh_client_padclients_disconnect ()
void agh_player_footsteps ()
void agh_player_dietidy ()
void agh_weapons_impulsecommands ()


Function Documentation

void agh_client_padclients_connect (  ) 

Attempt to replace a connected bot with a connecting client if bot padding is on. If teamplay is on, set appropriate colours for connecting client.

Definition at line 281 of file hooks.mqc.

References CountPlayers(), CountPlayersTeam(), KickABotDM(), KickABotTeam(), snap_misc_bottomforteamnum(), snap_misc_numforteamname(), and snap_misc_topforteamnum().

void agh_client_padclients_disconnect (  ) 

Attempt to replace a disconnected client with a bot if bot padding is on.

Definition at line 416 of file hooks.mqc.

References CountPlayers(), create_bot(), and snap_misc_numforteamname().

void agh_client_startdevs (  ) 

Starts the appropriate helper devices when a client joins the server.

Definition at line 237 of file hooks.mqc.

References snap_aux_constructor(), snap_d5k_constructor(), snap_esr_constructor(), snap_misc_m2m(), SNAP_MISC_NORMYAW_OFFSET, and snap_nav_constructor().

void agh_player_dietidy (  ) 

Kills all of the player's helper objects when they die.

Definition at line 560 of file hooks.mqc.

References agrip_aux, snap_marker_destructor(), and snap_misc_m2m().

void agh_player_footsteps (  ) 

Determines if and how to play footsteps.

Definition at line 475 of file hooks.mqc.

References agrip_aux.

void agh_weapons_impulsecommands (  ) 

Carries out the accessibility-related impulse commands...

Definition at line 613 of file hooks.mqc.

References agrip_aux, agrip_nav, create_bot(), entity(), KickABotDM(), KickABotTeam(), snap_d5k_constructor(), snap_esr_constructor(), snap_extnav_compass(), snap_extnav_osd(), snap_marker_constructor(), snap_marker_destructor(), snap_misc_bottomforteamnum(), snap_misc_m2m(), snap_misc_numforteamname(), snap_misc_pickrndteam(), snap_misc_topforteamnum(), snap_nav_constructor(), SNAP_NAV_JMP_NRM, and SNAP_NAV_JMP_RUN.

void agh_world_checkstringext (  ) 

This makes sure we're running on a server with at least a half-sane QC VM on it :-)

Definition at line 61 of file hooks.mqc.

void agh_world_padclients (  ) 

Spawn bots (if enabled) to fill out player spots until clients connect to the game.

Works off the following serverinfo variables: + bots_padclients - number of clients to pad bots_padclients % ag_numteams should == 0 + ag_numteams - number of teams to use + ag_team[1234]name - names of teams Having numteams 0 means we want to use classic Quake TeamDM. + FIXME can we make bot padding work here? Current behaviour is to add them to team "bots". Having numteams 2-4 means we want to use AGRIP TeamDM Numteams being 1 is a mistake (why not just use DM?)

Definition at line 167 of file hooks.mqc.

References entity(), and snap_misc_botspawner().

void agh_world_precaches (  ) 

Provide all of the precaches for an accessible game.

A hook can be enabled in agrip_defs.qc to allow mods to do some precaching for themselves.

mod hook stuff!!!!

Definition at line 76 of file hooks.mqc.


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