From 48db79ae48d72d9a00e2bfa7f4dbe184b3d4ef82 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 15 Sep 2022 12:36:49 +0200 Subject: [PATCH] Add patch from Juhu/strafehud-fixes branch: "strafehud: set slickdetector default granularity to 1 instead of 4 for improved performance" --- _hud_common.cfg | 2 +- qcsrc/client/hud/panel/strafehud.qh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_hud_common.cfg b/_hud_common.cfg index c236229f2..d982ad6e3 100644 --- a/_hud_common.cfg +++ b/_hud_common.cfg @@ -185,7 +185,7 @@ seta hud_panel_strafehud_direction_alpha "0" "opacity of the direction caps whic seta hud_panel_strafehud_direction_width "0.25" "stroke width of the direction caps which indicate the direction the player is currently strafing towards (relative to the panel height)" seta hud_panel_strafehud_direction_length "0.02" "length of the horizontal component of the direction caps which indicate the direction the player is currently strafing towards (relative to the panel width)" seta hud_panel_strafehud_slickdetector_range "200" "range of the slick detector in qu, \"0\" to disable" -seta hud_panel_strafehud_slickdetector_granularity "4" "value from 0 to 4 which defines how exact the search for slick should be, higher values may yield better results but require more computation" +seta hud_panel_strafehud_slickdetector_granularity "1" "value from 0 to 4 which defines how exact the search for slick should be, higher values may yield better results but require more computation" seta hud_panel_strafehud_slickdetector_color "0 1 1" "color of the slick detector indicator" seta hud_panel_strafehud_slickdetector_alpha "0.5" "opacity of the slick detector indicator" seta hud_panel_strafehud_slickdetector_height "0.125" "height of the slick detector indicator (relative to the panel height)" diff --git a/qcsrc/client/hud/panel/strafehud.qh b/qcsrc/client/hud/panel/strafehud.qh index bb1d87c07..314d10a6e 100644 --- a/qcsrc/client/hud/panel/strafehud.qh +++ b/qcsrc/client/hud/panel/strafehud.qh @@ -40,7 +40,7 @@ AUTOCVAR_SAVE(hud_panel_strafehud_direction_alpha, float, 0, "opacity of the dir AUTOCVAR_SAVE(hud_panel_strafehud_direction_width, float, 0.25, "stroke width of the direction caps which indicate the direction the player is currently strafing towards (relative to the panel height)"); AUTOCVAR_SAVE(hud_panel_strafehud_direction_length, float, 0.02, "length of the horizontal component of the direction caps which indicate the direction the player is currently strafing towards (relative to the panel width)"); AUTOCVAR_SAVE(hud_panel_strafehud_slickdetector_range, float, 200, "range of the slick detector in qu, \"0\" to disable"); -AUTOCVAR_SAVE(hud_panel_strafehud_slickdetector_granularity, int, 4, "value from 0 to 4 which defines how exact the search for slick should be, higher values may yield better results but require more computation"); +AUTOCVAR_SAVE(hud_panel_strafehud_slickdetector_granularity, int, 1, "value from 0 to 4 which defines how exact the search for slick should be, higher values may yield better results but require more computation"); AUTOCVAR_SAVE(hud_panel_strafehud_slickdetector_color, vector, '0 1 1', "color of the slick detector indicator"); AUTOCVAR_SAVE(hud_panel_strafehud_slickdetector_alpha, float, 0.5, "opacity of the slick detector indicator"); AUTOCVAR_SAVE(hud_panel_strafehud_slickdetector_height, float, 0.125, "height of the slick detector indicator (relative to the panel height)"); -- 2.39.2