[PlayerMovement]: Remove cheat protections from harmless dvars (#1018)

This commit is contained in:
Edo 2023-05-07 22:45:19 +01:00 committed by GitHub
parent c87e6971e7
commit 9632d789d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,7 +267,7 @@ namespace Components
float min, float max, unsigned __int16 /*flags*/, const char* description) float min, float max, unsigned __int16 /*flags*/, const char* description)
{ {
PlayerSpectateSpeedScale = Game::Dvar_RegisterFloat(dvarName, value, PlayerSpectateSpeedScale = Game::Dvar_RegisterFloat(dvarName, value,
min, max, Game::DVAR_CHEAT | Game::DVAR_CODINFO, description); min, max, Game::DVAR_CODINFO, description);
return PlayerSpectateSpeedScale; return PlayerSpectateSpeedScale;
} }
@ -275,20 +275,20 @@ namespace Components
void PlayerMovement::RegisterMovementDvars() void PlayerMovement::RegisterMovementDvars()
{ {
PlayerDuckedSpeedScale = Game::Dvar_RegisterFloat("player_duckedSpeedScale", PlayerDuckedSpeedScale = Game::Dvar_RegisterFloat("player_duckedSpeedScale",
0.65f, 0.0f, 5.0f, Game::DVAR_CHEAT | Game::DVAR_CODINFO, 0.65f, 0.0f, 5.0f, Game::DVAR_CODINFO,
"The scale applied to the player speed when ducking"); "The scale applied to the player speed when ducking");
PlayerProneSpeedScale = Game::Dvar_RegisterFloat("player_proneSpeedScale", PlayerProneSpeedScale = Game::Dvar_RegisterFloat("player_proneSpeedScale",
0.15f, 0.0f, 5.0f, Game::DVAR_CHEAT | Game::DVAR_CODINFO, 0.15f, 0.0f, 5.0f, Game::DVAR_CODINFO,
"The scale applied to the player speed when crawling"); "The scale applied to the player speed when crawling");
// 3arc naming convention // 3arc naming convention
CGUfoScaler = Game::Dvar_RegisterFloat("cg_ufo_scaler", CGUfoScaler = Game::Dvar_RegisterFloat("cg_ufo_scaler",
6.0f, 0.001f, 1000.0f, Game::DVAR_CHEAT | Game::DVAR_CODINFO, 6.0f, 0.001f, 1000.0f, Game::DVAR_CODINFO,
"The speed at which ufo camera moves"); "The speed at which ufo camera moves");
CGNoclipScaler = Game::Dvar_RegisterFloat("cg_noclip_scaler", CGNoclipScaler = Game::Dvar_RegisterFloat("cg_noclip_scaler",
3.0f, 0.001f, 1000.0f, Game::DVAR_CHEAT | Game::DVAR_CODINFO, 3.0f, 0.001f, 1000.0f, Game::DVAR_CODINFO,
"The speed at which noclip camera moves"); "The speed at which noclip camera moves");
BGDisableLandingSlowdown = Game::Dvar_RegisterBool("bg_disableLandingSlowdown", BGDisableLandingSlowdown = Game::Dvar_RegisterBool("bg_disableLandingSlowdown",