Skip to content

Commit

Permalink
Bump protocol & hotfix sv_network_fps
Browse files Browse the repository at this point in the history
  • Loading branch information
louve committed Jun 22, 2024
1 parent 932e9b2 commit cb3e244
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Components/Modules/Dedicated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Modules/Dvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Game/Structs.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define PROTOCOL 0x97
#define PROTOCOL 0x98
#define NUM_CUSTOM_CLASSES 15
#define FX_ELEM_FIELD_COUNT 90

Expand Down

0 comments on commit cb3e244

Please sign in to comment.