25 LOG_INFO(
"^4campaign initialization failed: ", s);
27 error(
"CAMPAIGN FAIL AHAHAHAHAHAHAHAHAH))");
33 string thismapname, wantedmapname;
39 if(wantedmapname != thismapname)
81 for(
int j = 0; j < argc; ++j)
84 if(arg ==
"")
continue;
115 if(
argv(0) !=
"default") {
118 if(
argv(1) !=
"default") {
142 while((l =
fgets(fh)))
149 if(
argv(1) == cvarname)
155 contents =
strcat(contents,
"set ", cvarname,
" ",
ftos(value),
"\n");
163 error(
"Cannot write to campaign file");
183 bprint(
"Campaign test run, advancing level.\n");
188 bprint(
"The current level has been WON.\n");
195 bprint(
"Time's up! The current level has been LOST.\n");
201 bprint(
"The current level has been WON.\n");
208 bprint(
"Time's up! The current level has been LOST.\n");
214 bprint(
"The current level has been LOST.\n");
246 LOG_DEBUG(
"^2test run: campaign looks GOOD");
270 error(
"Sorry, cheater. You are NOT WELCOME.");
string campaign_mutators[CAMPAIGN_MAX_ENTRIES]
float campaign_bots[CAMPAIGN_MAX_ENTRIES]
float campaign_botskill[CAMPAIGN_MAX_ENTRIES]
void CampaignFile_Unload()
string campaign_gametype[CAMPAIGN_MAX_ENTRIES]
string campaign_fraglimit[CAMPAIGN_MAX_ENTRIES]
string campaign_mapname[CAMPAIGN_MAX_ENTRIES]
void CampaignSetup(int n)
float CampaignFile_Load(float offset, float entries)
string campaign_timelimit[CAMPAIGN_MAX_ENTRIES]
#define autocvar_timelimit
#define autocvar_fraglimit
float cvar_settemp(string tmp_cvar, string tmp_value)
#define tokenizebyseparator
void _MapInfo_Parse_Settemp(string pFilename, string acl, float type, string s, float recurse)
Gametype MapInfo_CurrentGametype()
void MapInfo_SwitchGameType(Gametype t)
Gametype MapInfo_Type_FromString(string gtype, bool dowarn, bool is_q3compat)
#define MAPINFO_SETTEMP_ACL_USER
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
void CampaignPostIntermission()
string campaign_index_var
void CampaignSaveCvar(string cvarname, float value)
void CampaignLevelWarp(float n)
void CampaignPreIntermission()
float CampaignBailout(string s)
int Campaign_GetLevelNum()
int autocvar_g_campaign_skill
string autocvar__campaign_name
int autocvar__campaign_index
bool autocvar__campaign_testrun
#define IS_REAL_CLIENT(v)
#define FOREACH_CLIENT(cond, body)
float checkrules_equality