Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_invasion.qh File Reference
Include dependency graph for sv_invasion.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define autocvar_g_invasion_point_limit   cvar("g_invasion_point_limit")

Functions

void invasion_Initialize ()
 REGISTER_MUTATOR (inv, false)

Variables

int autocvar_g_invasion_type
bool g_invasion
IntrusiveList g_invasion_roundends
IntrusiveList g_invasion_spawns
IntrusiveList g_invasion_waves
float inv_lastcheck
int inv_maxcurrent
int inv_maxrounds
int inv_maxspawned
float inv_monsterskill
int inv_numkilled
int inv_numspawned
int inv_roundcnt
const int INV_TYPE_HUNT = 1
const int INV_TYPE_ROUND = 0
const int INV_TYPE_STAGE = 2

Macro Definition Documentation

◆ autocvar_g_invasion_point_limit

#define autocvar_g_invasion_point_limit   cvar("g_invasion_point_limit")

Definition at line 4 of file sv_invasion.qh.

Referenced by REGISTER_MUTATOR().

Function Documentation

◆ invasion_Initialize()

void invasion_Initialize ( )

Definition at line 503 of file sv_invasion.qc.

504{
506}
const int INITPRIO_GAMETYPE
Definition constants.qh:94
#define NULL
Definition post.qh:14
void invasion_DelayedInit(entity this)
void InitializeEntity(entity e, void(entity this) func, int order)
Definition world.qc:2209

References InitializeEntity(), INITPRIO_GAMETYPE, invasion_DelayedInit(), and NULL.

Referenced by REGISTER_MUTATOR().

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( inv ,
false  )

Definition at line 12 of file sv_invasion.qh.

13{
16 {
21
22 g_invasion = true;
23 cvar_settemp("g_monsters", "1");
25 }
26 return 0;
27}
#define MUTATOR_ONADD
Definition base.qh:309
#define MUTATOR_STATIC()
Definition base.qh:313
float cvar_settemp(string tmp_cvar, string tmp_value)
Definition util.qc:811
#define IL_NEW()
bool g_invasion
Definition sv_invasion.qh:6
void invasion_Initialize()
IntrusiveList g_invasion_roundends
Definition sv_invasion.qh:7
IntrusiveList g_invasion_waves
Definition sv_invasion.qh:8
#define autocvar_g_invasion_point_limit
Definition sv_invasion.qh:4
IntrusiveList g_invasion_spawns
Definition sv_invasion.qh:9
void GameRules_limit_score(int limit)
Definition sv_rules.qc:23

References autocvar_g_invasion_point_limit, cvar_settemp(), g_invasion, g_invasion_roundends, g_invasion_spawns, g_invasion_waves, GameRules_limit_score(), IL_NEW, invasion_Initialize(), MUTATOR_ONADD, and MUTATOR_STATIC.

Variable Documentation

◆ autocvar_g_invasion_type

◆ g_invasion

bool g_invasion

Definition at line 6 of file sv_invasion.qh.

Referenced by REGISTER_MUTATOR(), spawnfunc(), spawnfunc(), and spawnfunc().

◆ g_invasion_roundends

IntrusiveList g_invasion_roundends

Definition at line 7 of file sv_invasion.qh.

Referenced by REGISTER_MUTATOR(), spawnfunc(), and WinningCondition_Invasion().

◆ g_invasion_spawns

IntrusiveList g_invasion_spawns

Definition at line 9 of file sv_invasion.qh.

Referenced by invasion_PickSpawn(), REGISTER_MUTATOR(), and spawnfunc().

◆ g_invasion_waves

IntrusiveList g_invasion_waves

Definition at line 8 of file sv_invasion.qh.

Referenced by invasion_GetWaveEntity(), REGISTER_MUTATOR(), and spawnfunc().

◆ inv_lastcheck

float inv_lastcheck

Definition at line 34 of file sv_invasion.qh.

Referenced by Invasion_CheckWinner().

◆ inv_maxcurrent

int inv_maxcurrent

◆ inv_maxrounds

int inv_maxrounds

◆ inv_maxspawned

int inv_maxspawned

Definition at line 30 of file sv_invasion.qh.

Referenced by Invasion_CheckWinner(), Invasion_RoundStart(), and MUTATOR_HOOKFUNCTION().

◆ inv_monsterskill

float inv_monsterskill

Definition at line 37 of file sv_invasion.qh.

Referenced by Invasion_RoundStart(), and MUTATOR_HOOKFUNCTION().

◆ inv_numkilled

int inv_numkilled

◆ inv_numspawned

int inv_numspawned

Definition at line 29 of file sv_invasion.qh.

Referenced by Invasion_CheckWinner(), Invasion_RoundStart(), and MUTATOR_HOOKFUNCTION().

◆ inv_roundcnt

int inv_roundcnt

◆ INV_TYPE_HUNT

const int INV_TYPE_HUNT = 1

◆ INV_TYPE_ROUND

◆ INV_TYPE_STAGE

const int INV_TYPE_STAGE = 2

Definition at line 41 of file sv_invasion.qh.

Referenced by invasion_DelayedInit(), and WinningCondition_Invasion().