#include "g_local.h"
Go to the source code of this file.
Functions | |
void | G_CheckForceEndRound (void) |
Check whether a forced round end should be executed. | |
static int | G_PlayerSoldiersCount (const player_t *player) |
Counts the still living actors for a player. | |
static void | G_UpdateStunState (int team) |
Regenerate the "STUN" value of each (partly) stunned team member. | |
static void | G_GetNextActiveTeam (void) |
Get the next active team. | |
void | G_ClientEndRound (player_t *player) |
Definition in file g_round.c.
void G_CheckForceEndRound | ( | void | ) |
Check whether a forced round end should be executed.
Definition at line 30 of file g_round.c.
References _, level_locals_t::activeTeam, level_locals_t::framenum, G_ClientEndRound(), game, gi, i, cvar_s::integer, player_s::inuse, level, level_locals_t::nextEndRound, player_s::pers, game_locals_t::players, PRINT_HUD, level_locals_t::roundstartTime, sv_maxclients, game_locals_t::sv_maxplayersperteam, sv_roundtimelimit, client_persistant_t::team, and level_locals_t::time.
Referenced by G_RunFrame().
void G_ClientEndRound | ( | player_t * | player | ) |
Definition at line 145 of file g_round.c.
References level_locals_t::activeTeam, level_locals_t::actualRound, EV_ENDROUNDANNOUNCE, EVENT_INSTANTLY, level_locals_t::framenum, G_CheckVisTeamAll(), G_EventEndRound(), G_GetNextActiveTeam(), G_GetPlayerForTeam(), G_GiveTimeUnits(), G_IsAIPlayer, G_MatchIsRunning(), G_MoraleBehaviour(), G_PlayerSoldiersCount(), G_ReactionFireEndTurn(), G_ReactionFireReset(), G_UpdateStunState(), game, gi, i, cvar_s::integer, player_s::inuse, level, mor_panic, level_locals_t::nextEndRound, player_s::num, player_s::pers, game_locals_t::players, PM_ALL, qfalse, qtrue, player_s::roundDone, level_locals_t::roundstartTime, game_locals_t::sv_maxplayersperteam, sv_teamplay, client_persistant_t::team, and level_locals_t::time.
Referenced by AI_Run(), G_CheckForceEndRound(), G_ClientDisconnect(), and GetGameAPI().
static void G_GetNextActiveTeam | ( | void | ) | [static] |
Get the next active team.
Definition at line 124 of file g_round.c.
References level_locals_t::activeTeam, G_GetActiveTeam(), i, level, MAX_TEAMS, level_locals_t::num_alive, and TEAM_NO_ACTIVE.
Referenced by G_ClientEndRound().
static int G_PlayerSoldiersCount | ( | const player_t * | player | ) | [static] |
Counts the still living actors for a player.
Definition at line 83 of file g_round.c.
References G_EdictsGetNextLivingActor(), player_s::num, and edict_s::pnum.
Referenced by G_ClientEndRound().
static void G_UpdateStunState | ( | int | team | ) | [static] |
Regenerate the "STUN" value of each (partly) stunned team member.
G_GiveTimeUnits
. It has to be called afterwards. [in] | team | The index of the team to update the values for. |
Definition at line 104 of file g_round.c.
References G_ActorCheckRevitalise(), G_EdictsGetNextLivingActorOfTeam(), and edict_s::STUN.
Referenced by G_ClientEndRound().