From 8375d1bdba6192c41f51d9414a8718db464a961f Mon Sep 17 00:00:00 2001 From: Skull <86374920+skkuull@users.noreply.github.com> Date: Tue, 28 Jun 2022 21:45:59 +0300 Subject: [PATCH] remove fullbright 2 Removed due to smoke exploit --- src/client/component/renderer.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client/component/renderer.cpp b/src/client/component/renderer.cpp index 36fb142a..e8c85bb9 100644 --- a/src/client/component/renderer.cpp +++ b/src/client/component/renderer.cpp @@ -49,12 +49,10 @@ namespace renderer { switch (dvars::r_fullbright->current.integer) { - case 4: - return 3; case 3: - return 13; + return 3; case 2: - return 25; + return 13; default: return game::TECHNIQUE_UNLIT; } @@ -148,7 +146,7 @@ namespace renderer return; } - dvars::r_fullbright = dvars::register_int("r_fullbright", 0, 0, 4, game::DVAR_FLAG_SAVED, "Toggles rendering without lighting"); + dvars::r_fullbright = dvars::register_int("r_fullbright", 0, 0, 3, game::DVAR_FLAG_SAVED, "Toggles rendering without lighting"); r_init_draw_method_hook.create(SELECT_VALUE(0x5467E0_b, 0x669580_b), &r_init_draw_method_stub); r_update_front_end_dvar_options_hook.create(SELECT_VALUE(0x583560_b, 0x6A78C0_b), &r_update_front_end_dvar_options_stub);