UFO: Alien Invasion
|
#include "g_local.h"
#include "g_actor.h"
#include "g_ai.h"
#include "g_client.h"
#include "g_edicts.h"
#include "g_health.h"
#include "g_match.h"
#include "g_reaction.h"
#include "g_utils.h"
#include "g_vis.h"
Go to the source code of this file.
Functions | |
void | G_CheckForceEndRound (void) |
Check whether a forced turn end should be executed. More... | |
static int | G_PlayerSoldiersCount (const Player &player) |
Counts the still living actors for a player. More... | |
static void | G_UpdateStunState (int team) |
Regenerate the "STUN" value of each (partly) stunned team member. More... | |
static void | G_UpdateCarriedWeight (int team) |
Updates the weight carried for each team member. More... | |
static void | G_RoundTouchTriggers (int team) |
static void | G_GetNextActiveTeam (void) |
Get the next active team. More... | |
void | G_ClientEndRound (Player &player) |
Check whether a forced turn end should be executed.
Definition at line 39 of file g_round.cpp.
References _, level_locals_s::activeTeam, level_locals_s::framenum, G_ClientEndRound(), G_IsSinglePlayer, G_MatchIsRunning(), G_PlayerGetNextActiveHuman(), gi, cvar_s::integer, level, level_locals_s::nextEndRound, PRINT_HUD, level_locals_s::roundstartTime, sv_roundtimelimit, and level_locals_s::time.
Referenced by G_RunFrame().
void G_ClientEndRound | ( | Player & | player | ) |
Definition at line 184 of file g_round.cpp.
References level_locals_s::activeTeam, level_locals_s::actualRound, AI_CheckRespawn(), Com_Printf(), level_locals_s::framenum, G_BleedWounds(), G_CheckVisTeamAll(), G_EdictsGetNextActor(), G_EventEnd(), G_EventEndRound(), G_EventEndRoundAnnounce(), G_GetActiveTeam(), G_GetNextActiveTeam(), G_GetPlayerForTeam(), G_GiveTimeUnits(), G_IsAI, G_IsAIPlayer, G_IsVisibleForTeam, g_lastseen, G_MatchEndTrigger(), G_MatchIsRunning(), G_MoraleBehaviour(), G_PlayerGetNextActiveAI(), G_PlayerGetNextActiveHuman(), G_PlayerSoldiersCount(), G_ReactionFireOnEndTurn(), G_ReactionFireReset(), G_RoundTouchTriggers(), G_UpdateCarriedWeight(), G_UpdateStunState(), gi, cvar_s::integer, level, MAX_TEAMS, mor_panic, level_locals_s::nextEndRound, level_locals_s::roundstartTime, sv_teamplay, TEAM_ALIEN, level_locals_s::teamOfs, level_locals_s::time, and VIS_APPEAR.
Referenced by AI_PlayerRun(), G_CheckForceEndRound(), G_ClientDisconnect(), and GetGameAPI().
Get the next active team.
Definition at line 162 of file g_round.cpp.
References level_locals_s::activeTeam, Com_DPrintf(), DEBUG_GAME, G_GetActiveTeam(), i, level, MAX_TEAMS, level_locals_s::num_alive, and TEAM_NO_ACTIVE.
Referenced by G_ClientEndRound().
|
static |
Counts the still living actors for a player.
Definition at line 96 of file g_round.cpp.
References G_EdictsGetNextLivingActor(), and Edict::getPlayerNum().
Referenced by G_ClientEndRound().
Definition at line 150 of file g_round.cpp.
References G_EdictsGetNextLivingActorOfTeam(), and G_TouchTriggers().
Referenced by G_ClientEndRound().
Updates the weight carried for each team member.
[in] | team | The index of the team to update the values for. |
Definition at line 139 of file g_round.cpp.
References chrScoreMission_s::carriedWeight, Edict::chr, G_EdictsGetNextLivingActorOfTeam(), Inventory::getWeight(), character_s::inv, and character_s::scoreMission.
Referenced by G_ClientEndRound().
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 117 of file g_round.cpp.
References Edict::addStun(), G_ActorCheckRevitalise(), G_EdictsGetNextLivingActorOfTeam(), Edict::getStun(), and Edict::setStun().
Referenced by G_ClientEndRound().