Fix some things
This commit is contained in:
parent
2531216969
commit
f3a2d6f406
@ -918,10 +918,10 @@ namespace Components
|
|||||||
Dvar::Register<bool>("sv_wwwDownload", false, Game::dvar_flag::DVAR_ARCHIVE, "Set to true to enable downloading maps/mods from an external server.");
|
Dvar::Register<bool>("sv_wwwDownload", false, Game::dvar_flag::DVAR_ARCHIVE, "Set to true to enable downloading maps/mods from an external server.");
|
||||||
Dvar::Register<const char*>("sv_wwwBaseUrl", "", Game::dvar_flag::DVAR_ARCHIVE, "Set to the base url for the external map download.");
|
Dvar::Register<const char*>("sv_wwwBaseUrl", "", Game::dvar_flag::DVAR_ARCHIVE, "Set to the base url for the external map download.");
|
||||||
|
|
||||||
// Force users to enable this because we don't want to accidentally turn everyone's pc into a http server into all their files again
|
// Force users to enable this because we don't want to accidentally turn everyone's pc into a http server into all their files again
|
||||||
// not saying we are but ya know... accidents happen
|
// not saying we are but ya know... accidents happen
|
||||||
// by having it saved we force the user to enable it in config_mp because it only checks the dvar on startup to see if we should init download or not
|
// by having it saved we force the user to enable it in config_mp because it only checks the dvar on startup to see if we should init download or not
|
||||||
Dvar::Register<bool>("mod_force_download_server", false, Game::dvar_flag::DVAR_ARCHIVE, "Set to true to force the client to run the download server for mods (for mods in private matches).");
|
Dvar::Register<bool>("mod_force_download_server", false, Game::dvar_flag::DVAR_ARCHIVE, "Set to true to force the client to run the download server for mods (for mods in private matches).");
|
||||||
});
|
});
|
||||||
|
|
||||||
Scheduler::OnFrame([]()
|
Scheduler::OnFrame([]()
|
||||||
|
@ -21,7 +21,7 @@ namespace Components
|
|||||||
|
|
||||||
Dvar::Var("xblive_privateserver").set(false);
|
Dvar::Var("xblive_privateserver").set(false);
|
||||||
|
|
||||||
std::string playlistFilename = Dvar::Var("playlistFilename").get<const char*>();
|
auto playlistFilename = Dvar::Var("playlistFilename").get<std::string>();
|
||||||
FileSystem::File playlist(playlistFilename);
|
FileSystem::File playlist(playlistFilename);
|
||||||
|
|
||||||
if (playlist.exists())
|
if (playlist.exists())
|
||||||
|
@ -374,7 +374,7 @@ namespace Components
|
|||||||
Utils::Hook(0x4F66A3, CL_KeyEvent_ConsoleEscape_Stub, HOOK_JUMP).install()->quick();
|
Utils::Hook(0x4F66A3, CL_KeyEvent_ConsoleEscape_Stub, HOOK_JUMP).install()->quick();
|
||||||
|
|
||||||
// Intermission time dvar
|
// Intermission time dvar
|
||||||
Game::Dvar_RegisterFloat("scr_intermissionTime", 10, 0, 120, Game::dvar_flag::DVAR_EXTERNAL, "Time in seconds before match server loads the next map");
|
Game::Dvar_RegisterFloat("scr_intermissionTime", 10, 0, 120, Game::dvar_flag::DVAR_NONE, "Time in seconds before match server loads the next map");
|
||||||
|
|
||||||
g_antilag = Game::Dvar_RegisterBool("g_antilag", true, Game::DVAR_CODINFO, "Perform antilag");
|
g_antilag = Game::Dvar_RegisterBool("g_antilag", true, Game::DVAR_CODINFO, "Perform antilag");
|
||||||
Utils::Hook(0x5D6D56, QuickPatch::ClientEventsFireWeaponStub, HOOK_JUMP).install()->quick();
|
Utils::Hook(0x5D6D56, QuickPatch::ClientEventsFireWeaponStub, HOOK_JUMP).install()->quick();
|
||||||
|
@ -85,12 +85,12 @@ namespace Game
|
|||||||
DVAR_SCRIPTINFO = 0x10,
|
DVAR_SCRIPTINFO = 0x10,
|
||||||
DVAR_UNKNOWN20 = 0x20,
|
DVAR_UNKNOWN20 = 0x20,
|
||||||
DVAR_CHANGEABLE_RESET = 0x40,
|
DVAR_CHANGEABLE_RESET = 0x40,
|
||||||
DVAR_ROM = 0x80, // Display only, cannot be set by user at all
|
DVAR_UNKNOWN80 = 0x80,
|
||||||
DVAR_EXTERNAL = 0x100, // Created by a set command
|
DVAR_EXTERNAL = 0x100, // Created by a set command
|
||||||
DVAR_USERINFO = 0x200, // Sent to server on connect or change
|
DVAR_USERINFO = 0x200, // Sent to server on connect or change
|
||||||
DVAR_SERVERINFO = 0x400, // Sent in response to front end requests
|
DVAR_SERVERINFO = 0x400, // Sent in response to front end requests
|
||||||
DVAR_WRITEPROTECTED = 0x800,
|
DVAR_WRITEPROTECTED = 0x800,
|
||||||
DVAR_SYSTEMINFO = 0x1000, // These dvars will be duplicated on all clients
|
DVAR_SYSTEMINFO = 0x1000, // Will be duplicated on all clients
|
||||||
DVAR_READONLY = 0x2000, // Read only (same as DVAR_WRITEPROTECTED?)
|
DVAR_READONLY = 0x2000, // Read only (same as DVAR_WRITEPROTECTED?)
|
||||||
DVAR_SAVED = 0x4000,
|
DVAR_SAVED = 0x4000,
|
||||||
DVAR_AUTOEXEC = 0x8000,
|
DVAR_AUTOEXEC = 0x8000,
|
||||||
@ -3361,7 +3361,7 @@ namespace Game
|
|||||||
{
|
{
|
||||||
const char* name;
|
const char* name;
|
||||||
const char* description;
|
const char* description;
|
||||||
unsigned __int16 flags;
|
unsigned int flags;
|
||||||
dvar_type type;
|
dvar_type type;
|
||||||
bool modified;
|
bool modified;
|
||||||
DvarValue current;
|
DvarValue current;
|
||||||
|
Loading…
Reference in New Issue
Block a user