From: Mario Date: Sun, 15 Sep 2019 17:45:07 +0000 (+1000) Subject: Apply default values in code to the gameplayfix cvars X-Git-Tag: xonotic-v0.8.5~1283 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e2206feb6fec163ffee9c87d50d8d9580393cd88;p=xonotic%2Fxonotic-data.pk3dir.git Apply default values in code to the gameplayfix cvars --- diff --git a/qcsrc/common/stats.qh b/qcsrc/common/stats.qh index a27e99b62..488d44220 100644 --- a/qcsrc/common/stats.qh +++ b/qcsrc/common/stats.qh @@ -187,12 +187,12 @@ REGISTER_STAT(BUGRIGS_SPEED_REF, float, g_bugrigs_speed_ref) REGISTER_STAT(BUGRIGS_STEER, float, g_bugrigs_steer) #ifdef SVQC -int autocvar_sv_gameplayfix_downtracesupportsongroundflag; -int autocvar_sv_gameplayfix_easierwaterjump; -int autocvar_sv_gameplayfix_stepdown; -int autocvar_sv_gameplayfix_stepmultipletimes; -int autocvar_sv_gameplayfix_unstickplayers; -int autocvar_sv_gameplayfix_fixedcheckwatertransition; +int autocvar_sv_gameplayfix_downtracesupportsongroundflag = 1; +int autocvar_sv_gameplayfix_easierwaterjump = 1; +int autocvar_sv_gameplayfix_stepdown = 2; +int autocvar_sv_gameplayfix_stepmultipletimes = 1; +int autocvar_sv_gameplayfix_unstickplayers = 1; +int autocvar_sv_gameplayfix_fixedcheckwatertransition = 1; #endif REGISTER_STAT(GAMEPLAYFIX_DOWNTRACEONGROUND, int, autocvar_sv_gameplayfix_downtracesupportsongroundflag) REGISTER_STAT(GAMEPLAYFIX_EASIERWATERJUMP, int, autocvar_sv_gameplayfix_easierwaterjump) @@ -329,7 +329,7 @@ REGISTER_STAT(MOVEVARS_AIRSTRAFEACCEL_QW, float) REGISTER_STAT(MOVEVARS_AIRCONTROL_POWER, float) REGISTER_STAT(MOVEVARS_AIRCONTROL_BACKWARDS, bool) REGISTER_STAT(MOVEVARS_AIRCONTROL_SIDEWARDS, bool) -noref bool autocvar_sv_gameplayfix_nogravityonground; +noref bool autocvar_sv_gameplayfix_nogravityonground = true; REGISTER_STAT(MOVEFLAGS, int, MOVEFLAG_VALID | (autocvar_sv_gameplayfix_q2airaccelerate ? MOVEFLAG_Q2AIRACCELERATE : 0) | (autocvar_sv_gameplayfix_nogravityonground ? MOVEFLAG_NOGRAVITYONGROUND : 0) diff --git a/qcsrc/server/autocvars.qh b/qcsrc/server/autocvars.qh index 7f3c0b720..274b8be90 100644 --- a/qcsrc/server/autocvars.qh +++ b/qcsrc/server/autocvars.qh @@ -300,7 +300,7 @@ string autocvar_sv_eventlog_files_namesuffix; bool autocvar_sv_eventlog_files_timestamps; float autocvar_sv_friction_on_land; var float autocvar_sv_friction_slick = 0.5; -float autocvar_sv_gameplayfix_q2airaccelerate; +float autocvar_sv_gameplayfix_q2airaccelerate = 1; int autocvar_sv_gentle; #define autocvar_sv_gravity cvar("sv_gravity") string autocvar_sv_intermission_cdtrack; @@ -374,8 +374,8 @@ float autocvar_timelimit_overtime; int autocvar_timelimit_overtimes; float autocvar_timelimit_suddendeath; #define autocvar_utf8_enable cvar("utf8_enable") -float autocvar_sv_gameplayfix_gravityunaffectedbyticrate; -bool autocvar_sv_gameplayfix_upwardvelocityclearsongroundflag; +bool autocvar_sv_gameplayfix_gravityunaffectedbyticrate = true; +bool autocvar_sv_gameplayfix_upwardvelocityclearsongroundflag = true; float autocvar_g_trueaim_minrange; float autocvar_g_grab_range; int autocvar_g_max_info_autoscreenshot; diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index a044c2a46..30ed368f3 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -2065,7 +2065,7 @@ string GotoMap(string m) return "Map switch will happen after scoreboard."; } -bool autocvar_sv_gameplayfix_multiplethinksperframe; +bool autocvar_sv_gameplayfix_multiplethinksperframe = true; void RunThink(entity this) { // don't let things stay in the past. @@ -2094,7 +2094,7 @@ void RunThink(entity this) } bool autocvar_sv_freezenonclients; -bool autocvar_sv_gameplayfix_delayprojectiles; +bool autocvar_sv_gameplayfix_delayprojectiles = false; void Physics_Frame() { if(autocvar_sv_freezenonclients)