Add promo version cvars

Used for showing promo's like events such as tournaments.
This commit is contained in:
Kawe Mazidjatari 2023-11-10 01:27:19 +01:00
parent 8932a9bfec
commit 4301c3c8d6
2 changed files with 7 additions and 0 deletions

View File

@ -87,6 +87,8 @@ ConVar* modsystem_debug = nullptr;
ConVar* eula_version = nullptr;
ConVar* eula_version_accepted = nullptr;
ConVar* promo_version_accepted = nullptr;
//-----------------------------------------------------------------------------
// SERVER |
#ifndef CLIENT_DLL
@ -344,6 +346,9 @@ void ConVar_StaticInit(void)
modsystem_enable = ConVar::StaticCreate("modsystem_enable", "1", FCVAR_RELEASE, "Enable the modsystem.", false, 0.f, false, 0.f, nullptr, nullptr);
modsystem_debug = ConVar::StaticCreate("modsystem_debug" , "0", FCVAR_RELEASE, "Debug the modsystem." , false, 0.f, false, 0.f, nullptr, nullptr);
// TODO: Make this release|playerprofile (show promo only once until version change) or leave as release (show promo everytime user restarted the game)?
promo_version_accepted = ConVar::StaticCreate("promo_version_accepted", "0", FCVAR_RELEASE /*| FCVAR_ARCHIVE_PLAYERPROFILE*/, "", false, 0.f, false, 0.f, nullptr, nullptr);
//-------------------------------------------------------------------------
// SERVER |
#ifndef CLIENT_DLL

View File

@ -78,6 +78,8 @@ extern ConVar* modsystem_debug;
extern ConVar* eula_version;
extern ConVar* eula_version_accepted;
extern ConVar* promo_version_accepted;
//-------------------------------------------------------------------------
// SERVER |
#ifndef CLIENT_DLL