feat: re-register cl_yawspeed
This commit is contained in:
parent
c808ead05c
commit
79c392d079
@ -11,6 +11,7 @@ namespace patches
|
||||
namespace
|
||||
{
|
||||
const game::dvar_t* lobby_min_players;
|
||||
const game::dvar_t* cl_yaw_speed;
|
||||
|
||||
void script_errors_stub([[maybe_unused]] const char* file, [[maybe_unused]] int line,
|
||||
[[maybe_unused]] unsigned int code, const char* fmt, ...)
|
||||
@ -78,6 +79,9 @@ namespace patches
|
||||
|
||||
lobby_min_players = game::register_dvar_int("lobby_min_players", 0, 0, 8, game::DVAR_NONE, "");
|
||||
utils::hook::jump(game::select(0x141A7BCF0, 0x1402CB900), scr_get_num_expected_players, true);
|
||||
|
||||
cl_yaw_speed = game::register_dvar_float("cl_yawspeed", 140.0f, std::numeric_limits<float>::min(), std::numeric_limits<float>::max(),
|
||||
game::DVAR_NONE, "Max yaw speed in degrees for game pad and keyboard");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ namespace game
|
||||
};
|
||||
WEAK symbol<dvar_t*(dvarStrHash_t hash, const char* dvarName, float value, float min, float max, unsigned int flags,
|
||||
const char* description)> Dvar_RegisterFloat{
|
||||
0x0, 0x14057B6B0
|
||||
0x1422D0A60, 0x14057B6B0
|
||||
};
|
||||
WEAK symbol<dvar_t*(dvarStrHash_t hash, const char* dvarName, bool value, int flags,
|
||||
const char* description)> Dvar_SessionModeRegisterBool{
|
||||
|
@ -64,26 +64,30 @@
|
||||
#undef min
|
||||
#endif
|
||||
|
||||
#include <map>
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <cctype>
|
||||
|
||||
#include <array>
|
||||
#include <atomic>
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
#include <queue>
|
||||
#include <regex>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <functional>
|
||||
#include <random>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
#include <queue>
|
||||
#include <random>
|
||||
#include <regex>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <variant>
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
#include <udis86.h>
|
||||
#include <MinHook.h>
|
||||
|
Loading…
Reference in New Issue
Block a user