diff --git a/src/client/component/renderer.cpp b/src/client/component/renderer.cpp index a20f66fe..1f6c4137 100644 --- a/src/client/component/renderer.cpp +++ b/src/client/component/renderer.cpp @@ -14,7 +14,15 @@ namespace renderer int get_fullbright_technique() { - return game::TECHNIQUE_UNLIT; + switch (dvars::r_fullbright->current.integer) + { + case 3: + return 13; + case 2: + return 25; + default: + return game::TECHNIQUE_UNLIT; + } } void gfxdrawmethod() @@ -35,7 +43,7 @@ namespace renderer { if (dvars::r_fullbright->modified) { - //game::Dvar_ClearModified(dvars::r_fullbright); + game::Dvar_ClearModified(dvars::r_fullbright); game::R_SyncRenderThread(); gfxdrawmethod(); @@ -50,7 +58,7 @@ namespace renderer public: void post_unpack() override { - if (game::environment::is_dedi() || !game::environment::is_mp()) + if (game::environment::is_dedi()) { return; } @@ -72,6 +80,4 @@ namespace renderer }; } -#ifdef DEBUG -REGISTER_COMPONENT(renderer::component) -#endif \ No newline at end of file +REGISTER_COMPONENT(renderer::component) \ No newline at end of file diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 58058533..9acc02d3 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -53,6 +53,7 @@ namespace game WEAK symbol Dvar_SetCommand{0x1403C72B0, 0x1404FD0A0}; WEAK symbol Dvar_FindVar{0x1403C5D50, 0x1404FBB00}; + WEAK symbol Dvar_ClearModified{0x1403C5C20, 0x1404FB930}; WEAK symbol Dvar_GetCombinedString{0x140354DF0, 0x14041D830}; WEAK symbol Dvar_ValueToString{0x1403C8560, 0x1404FE660}; WEAK symbol Dvar_Reset{0, 0x1404FCC40};