Bump protocol & hotfix sv_network_fps

This commit is contained in:
louve 2024-06-22 20:21:07 +02:00
parent 932e9b2560
commit cb3e244885
3 changed files with 2 additions and 3 deletions

View File

@ -70,7 +70,6 @@ namespace Components
Command::Execute("xblive_privateserver 0");
Command::Execute("xstartprivatematch");
//Command::Execute("xstartlobby");
Command::Execute("sv_network_fps 1000");
Command::Execute("cl_maxpackets 125");
Command::Execute("snaps 30");
Command::Execute("com_maxfps 125");

View File

@ -251,7 +251,7 @@ namespace Components
const Game::dvar_t* Dvar::Dvar_RegisterSVNetworkFps(const char* dvarName, int value, int min, int /*max*/, std::uint16_t /*flags*/, const char* description)
{
// bump limit up to 1000
return Game::Dvar_RegisterInt(dvarName, value, min, 1000, Game::DVAR_NONE, description);
return Game::Dvar_RegisterInt(dvarName, Dedicated::IsEnabled() ? 1000 : value, min, 1000, Game::DVAR_NONE, description);
}
const Game::dvar_t* Dvar::Dvar_RegisterPerkExtendedMeleeRange(const char* dvarName, float value, float min, float /*max*/, std::uint16_t flags, const char* description)

View File

@ -1,6 +1,6 @@
#pragma once
#define PROTOCOL 0x97
#define PROTOCOL 0x98
#define NUM_CUSTOM_CLASSES 15
#define FX_ELEM_FIELD_COUNT 90