|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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>Go to the source code of this file.
Functions | |
| int | Campaign_GetLevelNum () |
| 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 SendWelcomeMessage().
| 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().
Definition at line 22 of file campaign.qc.
References autocvar__campaign_testrun, cvar_set(), error, and LOG_INFO.
Referenced by Campaign_Invalid(), and CampaignPreInit().
Definition at line 261 of file campaign.qc.
References campaign_entries, campaign_level, CampaignFile_Load(), CampaignFile_Unload(), CampaignSetup(), and error.
Referenced by GameCommand_warp(), and target_levelwarp_use().
| void CampaignPostInit | ( | ) |
Definition at line 100 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 239 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 49 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 167 of file campaign.qc.
References autocvar__campaign_testrun, autocvar_fraglimit, autocvar_timelimit, 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().
Definition at line 127 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().
| 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(), CampaignPreIntermission(), and net_handle_ServerWelcome().
| float campaign_won |
Definition at line 18 of file campaign.qc.
Referenced by CampaignPostIntermission(), and CampaignPreIntermission().