X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcampaign.qh;h=1aca24492069678a7d4f59a0030227a349d96be3;hb=c0add59c57c00b31e0db86871ad776ffacc9165e;hp=f5228c269338cd146e6c4656a45044185e59c56b;hpb=cd109cf922bc405155c680582745d645bd057ded;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/campaign.qh b/qcsrc/server/campaign.qh index f5228c269..1aca24492 100644 --- a/qcsrc/server/campaign.qh +++ b/qcsrc/server/campaign.qh @@ -1,10 +1,17 @@ -#ifndef CAMPAIGN_H -#define CAMPAIGN_H +#pragma once + +bool autocvar__campaign_testrun; +int autocvar__campaign_index; +string autocvar__campaign_name; +bool autocvar_g_campaign; +float autocvar_g_campaign_forceteam; +int autocvar_g_campaign_skill; // this must be included BEFORE campaign_common.h to make this a memory saving #define CAMPAIGN_MAX_ENTRIES 2 -string campaign_message; +int Campaign_GetLevelNum(); +string Campaign_GetMessage(); void CampaignPreInit(); void CampaignPostInit(); @@ -13,7 +20,10 @@ void CampaignPostIntermission(); // must change map void CampaignLevelWarp(float n); -float 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 -#endif +/** + * campaign mode: bots shall spawn but wait for the player to spawn before they do anything + * in other game modes, this is ignored + */ +bool campaign_bots_may_start; + +bool campaign_forcewin;