Xonotic
|
Go to the source code of this file.
Macros | |
#define | CAMPAIGN_MAX_ENTRIES 2 |
Functions | |
int | Campaign_GetLevelNum () |
string | Campaign_GetMessage () |
void | CampaignLevelWarp (float n) |
void | CampaignPostInit () |
void | CampaignPostIntermission () |
void | CampaignPreInit () |
void | CampaignPreIntermission () |
Variables | |
int | autocvar__campaign_index |
string | autocvar__campaign_name |
bool | autocvar__campaign_testrun |
bool | autocvar_g_campaign |
float | autocvar_g_campaign_forceteam |
int | autocvar_g_campaign_skill |
bool | campaign_bots_may_start |
campaign mode: bots shall spawn but wait for the player to spawn before they do anything in other game modes, this is ignored More... | |
bool | campaign_forcewin |
#define CAMPAIGN_MAX_ENTRIES 2 |
Definition at line 11 of file campaign.qh.
int Campaign_GetLevelNum | ( | ) |
Definition at line 44 of file campaign.qc.
References campaign_level.
Referenced by PrintWelcomeMessage().
string Campaign_GetMessage | ( | ) |
Definition at line 49 of file campaign.qc.
References campaign_longdesc, campaign_shortdesc, and strcat().
Referenced by PrintWelcomeMessage().
Definition at line 266 of file campaign.qc.
References campaign_entries, campaign_level, CampaignFile_Load(), CampaignFile_Unload(), CampaignSetup(), and error().
Referenced by GameCommand_warp().
void CampaignPostInit | ( | ) |
Definition at line 105 of file campaign.qc.
References argv(), autocvar__campaign_testrun, campaign_fraglimit, Campaign_Invalid(), campaign_timelimit, cvar_set(), and tokenizebyseparator.
Referenced by spawnfunc().
void CampaignPostIntermission | ( | ) |
Definition at line 244 of file campaign.qc.
References campaign_entries, campaign_index_var, campaign_name, campaign_won, CampaignFile_Unload(), CampaignSetup(), localcmd, LOG_DEBUG, and strunzone().
Referenced by DoNextMapOverride().
void CampaignPreInit | ( | ) |
Definition at line 54 of file campaign.qc.
References _MapInfo_Parse_Settemp(), argv(), autocvar__campaign_index, autocvar__campaign_name, autocvar_g_campaign_skill, autocvar_sv_cheats, campaign_bots, campaign_botskill, campaign_entries, campaign_forcewin, campaign_gametype, campaign_index_var, Campaign_Invalid(), campaign_level, campaign_mutators, campaign_name, CampaignBailout(), CampaignFile_Load(), CampaignFile_Unload(), cvar_set(), cvar_settemp(), ftos(), MAPINFO_SETTEMP_ACL_USER, MapInfo_SwitchGameType(), MapInfo_Type_FromString(), mapname, max(), strcat(), strzone(), and tokenizebyseparator.
Referenced by spawnfunc().
void CampaignPreIntermission | ( | ) |
Definition at line 172 of file campaign.qc.
References autocvar__campaign_testrun, bprint(), campaign_entries, campaign_forcewin, campaign_index_var, campaign_level, campaign_name, campaign_won, CampaignSaveCvar(), cheatcount_total, checkrules_equality, cvar(), FOREACH_CLIENT, IS_PLAYER, IS_REAL_CLIENT, strcat(), and time.
Referenced by NextLevel().
int autocvar__campaign_index |
Definition at line 4 of file campaign.qh.
Referenced by CampaignPreInit().
string autocvar__campaign_name |
Definition at line 5 of file campaign.qh.
Referenced by CampaignPreInit().
bool autocvar__campaign_testrun |
Definition at line 3 of file campaign.qh.
Referenced by CampaignBailout(), CampaignPostInit(), CampaignPreIntermission(), and Onslaught_CheckWinner().
bool autocvar_g_campaign |
Definition at line 6 of file campaign.qh.
Referenced by bot_setnameandstuff(), bot_think(), ClientCommand_clientversion(), ClientConnect(), CommonCommand_editmob(), DoNextMapOverride(), GameCommand_warp(), GameRules_limit_lead(), GameRules_limit_score(), GameRules_limit_time(), GameRules_limit_time_qualifying(), GetWinningCode(), InitiateSuddenDeath(), Join(), Monster_Move(), Monster_Move_2D(), MUTATOR_HOOKFUNCTION(), NextLevel(), Onslaught_CheckWinner(), Player_DetermineForcedTeam(), Player_SetTeamIndexChecked(), PlayerPreThink(), PrintWelcomeMessage(), rc_SetLimits(), round_handler_Think(), ShowTeamSelection(), spawnfunc(), TeamBalance_GetTeamCounts(), WinningCondition_Assault(), and WinningCondition_LMS().
float autocvar_g_campaign_forceteam |
Definition at line 7 of file campaign.qh.
Referenced by Player_DetermineForcedTeam(), and TeamBalance_GetTeamCounts().
int autocvar_g_campaign_skill |
Definition at line 8 of file campaign.qh.
Referenced by CampaignPreInit().
bool campaign_bots_may_start |
campaign mode: bots shall spawn but wait for the player to spawn before they do anything in other game modes, this is ignored
Definition at line 27 of file campaign.qh.
Referenced by bot_think(), Join(), Monster_Move(), Monster_Move_2D(), MUTATOR_HOOKFUNCTION(), PlayerPreThink(), round_handler_Think(), and WinningCondition_LMS().
bool campaign_forcewin |
Definition at line 29 of file campaign.qh.
Referenced by CampaignPreInit(), and CampaignPreIntermission().