|
Xonotic
|
#include "campaign.qh"#include <common/campaign_common.qh>#include <common/mapinfo.qh>#include <common/stats.qh>#include <common/weapons/_all.qh>#include <server/cheats.qh>#include <server/intermission.qh>#include <server/world.qh>
Include dependency graph for campaign.qc:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| int | Campaign_GetLevelNum () |
| string | Campaign_GetMessage () |
| float | Campaign_Invalid () |
| float | CampaignBailout (string s) |
| void | CampaignLevelWarp (float n) |
| void | CampaignPostInit () |
| void | CampaignPostIntermission () |
| void | CampaignPreInit () |
| void | CampaignPreIntermission () |
| void | CampaignSaveCvar (string cvarname, float value) |
Variables | |
| string | campaign_index_var |
| float | campaign_level |
| float | campaign_won |
| int Campaign_GetLevelNum | ( | ) |
Definition at line 44 of file campaign.qc.
References campaign_level.
Referenced by PrintWelcomeMessage().
Here is the caller graph for this function:| string Campaign_GetMessage | ( | ) |
Definition at line 49 of file campaign.qc.
References campaign_longdesc, campaign_shortdesc, and strcat().
Referenced by PrintWelcomeMessage().
Here is the call graph for this function:
Here is the caller graph for this function:| float Campaign_Invalid | ( | ) |
Definition at line 31 of file campaign.qc.
References campaign_gametype, campaign_mapname, CampaignBailout(), GetMapname(), MapInfo_CurrentGametype(), MapInfo_Type_FromString(), and strcat().
Referenced by CampaignPostInit(), and CampaignPreInit().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 22 of file campaign.qc.
References autocvar__campaign_testrun, cvar_set(), error(), and LOG_INFO.
Referenced by Campaign_Invalid(), and CampaignPreInit().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 266 of file campaign.qc.
References campaign_entries, campaign_level, CampaignFile_Load(), CampaignFile_Unload(), CampaignSetup(), and error().
Referenced by GameCommand_warp().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 132 of file campaign.qc.
References argv(), cvar_set(), error(), fclose(), fgets(), FILE_READ, FILE_WRITE, fopen(), fputs(), ftos(), registercvar(), strcat(), and tokenize_console.
Referenced by CampaignPreIntermission().
Here is the call graph for this function:
Here is the caller graph for this function:| string campaign_index_var |
Definition at line 19 of file campaign.qc.
Referenced by CampaignPostIntermission(), CampaignPreInit(), and CampaignPreIntermission().
| float campaign_level |
Definition at line 17 of file campaign.qc.
Referenced by Campaign_GetLevelNum(), CampaignLevelWarp(), CampaignPreInit(), and CampaignPreIntermission().
| float campaign_won |
Definition at line 18 of file campaign.qc.
Referenced by CampaignPostIntermission(), and CampaignPreIntermission().