mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add promo version cvars
Used for showing promo's like events such as tournaments.
This commit is contained in:
parent
8932a9bfec
commit
4301c3c8d6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user