UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
level_locals_s Struct Reference

this structure is cleared as each map is entered More...

#include <g_local.h>

Data Fields

int framenum
 
float time
 
char mapname [MAX_QPATH]
 
char * mapEndCommand
 
bool routed
 
bool day
 
bool hurtAliens
 
bool nextMapSwitch
 
float intermissionTime
 
int winningTeam
 
float roundstartTime
 
int numplayers
 
int activeTeam
 
int teamOfs
 
int nextEndRound
 
int actualRound
 
pathing_tpathingMap
 
int noRandomSpawn
 
int noEquipment
 
int initialAlienActorsSpawned
 
unsigned num_spawned [MAX_TEAMS]
 
unsigned num_kills [MAX_TEAMS+1][MAX_TEAMS]
 
unsigned num_stuns [MAX_TEAMS+1][MAX_TEAMS]
 
byte num_alive [MAX_TEAMS]
 
byte num_spawnpoints [MAX_TEAMS]
 
byte num_2x2spawnpoints [MAX_TEAMS]
 
Edictai_waypointList
 

Detailed Description

this structure is cleared as each map is entered

Definition at line 80 of file g_local.h.

Field Documentation

int level_locals_s::actualRound

the current running round counter

Definition at line 104 of file g_local.h.

Referenced by G_ClientEndRound(), G_GetEarnedExperience(), G_MissionThink(), G_MissionTouch(), G_SpawnEntities(), G_SpawnField(), and Think_SmokeAndFire().

Edict* level_locals_s::ai_waypointList

Definition at line 118 of file g_local.h.

Referenced by AI_CheckForMissionTargets(), AIL_waypoints(), and G_AddToWayPointList().

bool level_locals_s::day

Definition at line 88 of file g_local.h.

Referenced by G_SpawnEntities(), and Touch_NextMapTrigger().

int level_locals_s::framenum

the current frame (10fps)

Definition at line 81 of file g_local.h.

Referenced by AI_Run(), G_CheckForceEndRound(), G_ClientEndRound(), and G_RunFrame().

bool level_locals_s::hurtAliens

Definition at line 89 of file g_local.h.

Referenced by AI_SetStats(), and G_SpawnEntities().

int level_locals_s::initialAlienActorsSpawned

Definition at line 111 of file g_local.h.

Referenced by AI_CheckRespawn(), and AI_CreatePlayer().

float level_locals_s::intermissionTime

the seconds to wait until the game will be closed. This value is relative to level.time

See also
G_MatchDoEnd

Definition at line 93 of file g_local.h.

Referenced by G_MatchDoEnd(), G_MatchEndCheck(), G_MatchEndTrigger(), and G_MatchIsRunning().

char* level_locals_s::mapEndCommand

Definition at line 86 of file g_local.h.

Referenced by G_MatchDoEnd(), and Touch_NextMapTrigger().

char level_locals_s::mapname[MAX_QPATH]

the server name (base1, etc)

Definition at line 85 of file g_local.h.

Referenced by G_GetStartingTeam(), G_SpawnEntities(), and SP_trigger_nextmap().

int level_locals_s::nextEndRound

Definition at line 103 of file g_local.h.

Referenced by G_CheckForceEndRound(), and G_ClientEndRound().

bool level_locals_s::nextMapSwitch

trigger the nextmap command when ending the match

Definition at line 90 of file g_local.h.

Referenced by G_MatchDoEnd(), and Touch_NextMapTrigger().

int level_locals_s::noEquipment

can be set via worldspawn to force the players to collect their equipment in the map

Definition at line 109 of file g_local.h.

Referenced by G_ClientReadInventory(), and SP_worldspawn().

int level_locals_s::noRandomSpawn

can be set via worldspawn to force random spawn point order for each team

Definition at line 108 of file g_local.h.

Referenced by G_ClientGetFreeSpawnPoint(), and SP_worldspawn().

byte level_locals_s::num_2x2spawnpoints[MAX_TEAMS]

the number of spawn points for 2x2 units in the map per team

Definition at line 117 of file g_local.h.

Referenced by G_Actor2x2Spawn(), and GameTest::testCountSpawnpointsForMapInSingleplayerMode().

byte level_locals_s::num_alive[MAX_TEAMS]

the number of alive actors per team

Definition at line 115 of file g_local.h.

Referenced by AI_CheckRespawn(), G_ActorModifyCounters(), G_CheckVis(), G_GetNextActiveTeam(), G_MatchSendResults(), G_Morale(), and G_SendInvisible().

unsigned level_locals_s::num_kills[MAX_TEAMS+1][MAX_TEAMS]

the amount of kills per team, the first dimension contains the attacker team, the second the victim team

Definition at line 113 of file g_local.h.

Referenced by G_ActorModifyCounters(), and G_MatchSendResults().

unsigned level_locals_s::num_spawned[MAX_TEAMS]

the number of spawned actors per team

Definition at line 112 of file g_local.h.

Referenced by AI_CreatePlayer(), G_ActorModifyCounters(), G_ActorSpawnIsAllowed(), G_ClientGetFreeSpawnPointForActorSize(), G_MatchSendResults(), and G_Morale().

byte level_locals_s::num_spawnpoints[MAX_TEAMS]
unsigned level_locals_s::num_stuns[MAX_TEAMS+1][MAX_TEAMS]

the amount of stuns per team, the first dimension contains the attacker team, the second the victim team

Definition at line 114 of file g_local.h.

Referenced by G_ActorModifyCounters(), and G_MatchSendResults().

int level_locals_s::numplayers

Definition at line 100 of file g_local.h.

Referenced by G_ClientBegin(), G_ClientDisconnect(), and G_MatchEndCheck().

float level_locals_s::roundstartTime

the time the team started the turn

Definition at line 97 of file g_local.h.

Referenced by G_CheckForceEndRound(), G_ClientEndRound(), and G_RunFrame().

bool level_locals_s::routed

Definition at line 87 of file g_local.h.

Referenced by G_RunFrame().

int level_locals_s::teamOfs

Definition at line 102 of file g_local.h.

Referenced by G_ClientEndRound(), G_GetStartingTeam(), G_MissionThink(), and Think_SmokeAndFire().

float level_locals_s::time

seconds the game is running already calculated through framenum * SERVER_FRAME_SECONDS

Definition at line 82 of file g_local.h.

Referenced by G_CheckFlood(), G_CheckForceEndRound(), G_ClientEndRound(), G_EdictsThink(), G_MatchDoEnd(), G_MatchEndTrigger(), and G_RunFrame().

int level_locals_s::winningTeam

the team that won this match

Definition at line 96 of file g_local.h.

Referenced by G_MatchDoEnd(), and G_MatchEndTrigger().


The documentation for this struct was generated from the following file: