From 0d5a8ee2bf6107b59a7bd1e82afde8853d8a7453 Mon Sep 17 00:00:00 2001 From: s1lent Date: Wed, 21 Feb 2018 15:57:53 +0700 Subject: [PATCH] Set default values sv_rollspeed, sv_rollangle for the default behavior --- rehlds/engine/sv_user.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rehlds/engine/sv_user.cpp b/rehlds/engine/sv_user.cpp index 3e036ad..1336c8c 100644 --- a/rehlds/engine/sv_user.cpp +++ b/rehlds/engine/sv_user.cpp @@ -56,8 +56,15 @@ cvar_t sv_edgefriction = { "edgefriction", "2", FCVAR_SERVER, 0.0f, NULL }; cvar_t sv_maxspeed = { "sv_maxspeed", "320", FCVAR_SERVER, 0.0f, NULL }; cvar_t sv_accelerate = { "sv_accelerate", "10", FCVAR_SERVER, 0.0f, NULL }; cvar_t sv_footsteps = { "mp_footsteps", "1", FCVAR_SERVER, 0.0f, NULL }; + +#ifdef REHLDS_FIXES +cvar_t sv_rollspeed = { "sv_rollspeed", "0", 0, 0.0f, NULL }; +cvar_t sv_rollangle = { "sv_rollangle", "0", 0, 0.0f, NULL }; +#else cvar_t sv_rollspeed = { "sv_rollspeed", "200", 0, 0.0f, NULL }; cvar_t sv_rollangle = { "sv_rollangle", "2.0", 0, 0.0f, NULL }; +#endif + cvar_t sv_unlag = { "sv_unlag", "1", 0, 0.0f, NULL }; cvar_t sv_maxunlag = { "sv_maxunlag", "0.5", 0, 0.0f, NULL }; cvar_t sv_unlagpush = { "sv_unlagpush", "0.0", 0, 0.0f, NULL };