Fix flag for scr_dvar
This commit is contained in:
parent
21f0fe8c5e
commit
43fa4cd736
@ -374,7 +374,7 @@ namespace Components
|
||||
Utils::Hook(0x4F66A3, CL_KeyEvent_ConsoleEscape_Stub, HOOK_JUMP).install()->quick();
|
||||
|
||||
// Intermission time dvar
|
||||
Game::Dvar_RegisterFloat("scr_intermissionTime", 10, 0, 120, Game::dvar_flag::DVAR_SCRIPTINFO, "Time in seconds before match server loads the next map");
|
||||
Game::Dvar_RegisterFloat("scr_intermissionTime", 10, 0, 120, Game::dvar_flag::DVAR_EXTERNAL, "Time in seconds before match server loads the next map");
|
||||
|
||||
g_antilag = Game::Dvar_RegisterBool("g_antilag", true, Game::DVAR_CODINFO, "Perform antilag");
|
||||
Utils::Hook(0x5D6D56, QuickPatch::ClientEventsFireWeaponStub, HOOK_JUMP).install()->quick();
|
||||
|
@ -737,8 +737,8 @@ namespace Components
|
||||
Dvar::Register<bool>("ui_serverSelected", false, Game::dvar_flag::DVAR_NONE, "Whether a server has been selected in the serverlist");
|
||||
Dvar::Register<const char*>("ui_serverSelectedMap", "mp_afghan", Game::dvar_flag::DVAR_NONE, "Map of the selected server");
|
||||
|
||||
Dvar::Register<int>("net_serverQueryLimit", 1, 1, 10, Dedicated::IsEnabled() ? 0 : Game::dvar_flag::DVAR_ARCHIVE, "Amount of server queries per frame");
|
||||
Dvar::Register<int>("net_serverFrames", 30, 1, 60, Dedicated::IsEnabled() ? 0 : Game::dvar_flag::DVAR_ARCHIVE, "Amount of server query frames per second");
|
||||
Dvar::Register<int>("net_serverQueryLimit", 1, 1, 10, Dedicated::IsEnabled() ? Game::dvar_flag::DVAR_NONE : Game::dvar_flag::DVAR_ARCHIVE, "Amount of server queries per frame");
|
||||
Dvar::Register<int>("net_serverFrames", 30, 1, 60, Dedicated::IsEnabled() ? Game::dvar_flag::DVAR_NONE : Game::dvar_flag::DVAR_ARCHIVE, "Amount of server query frames per second");
|
||||
});
|
||||
|
||||
// Fix ui_netsource dvar
|
||||
|
@ -76,18 +76,18 @@ namespace Game
|
||||
|
||||
enum dvar_flag : unsigned __int16
|
||||
{
|
||||
DVAR_NONE = 0x0, // No flags
|
||||
DVAR_ARCHIVE = 0x1, // Set to cause it to be saved to config_mp.cfg of the client
|
||||
DVAR_LATCH = 0x2, // Will only change when C code next does a Dvar_Get(), so it can't be changed
|
||||
// without proper initialization. Modified will be set, even though the value hasn't changed yet
|
||||
DVAR_CHEAT = 0x4, // Can not be changed if cheats are disabled
|
||||
DVAR_CODINFO = 0x8, // On change, this is sent to all clients (if you are host)
|
||||
DVAR_NONE = 0x0, // No flags
|
||||
DVAR_ARCHIVE = 0x1, // Set to cause it to be saved to config_mp.cfg of the client
|
||||
DVAR_LATCH = 0x2, // Will only change when C code next does a Dvar_Get(), so it can't be changed
|
||||
// without proper initialization. Modified will be set, even though the value hasn't changed yet
|
||||
DVAR_CHEAT = 0x4, // Can not be changed if cheats are disabled
|
||||
DVAR_CODINFO = 0x8, // On change, this is sent to all clients (if you are host)
|
||||
DVAR_SCRIPTINFO = 0x10,
|
||||
DVAR_UNKNOWN20 = 0x20,
|
||||
DVAR_CHANGEABLE_RESET = 0x40,
|
||||
DVAR_UNKNOWN80 = 0x80,
|
||||
DVAR_EXTERNAL = 0x100, // Created by a set command
|
||||
DVAR_USERINFO = 0x200, // Sent to server on connect or change
|
||||
DVAR_EXTERNAL = 0x100, // Created by a set command
|
||||
DVAR_USERINFO = 0x200, // Sent to server on connect or change
|
||||
DVAR_SERVERINFO = 0x400, // Sent in response to front end requests
|
||||
DVAR_WRITEPROTECTED = 0x800,
|
||||
DVAR_SYSTEMINFO = 0x1000, // These dvars will be duplicated on all clients
|
||||
|
Loading…
Reference in New Issue
Block a user