fix some issues before next release

This commit is contained in:
TotallyNotElite 2019-05-25 16:07:28 +02:00
parent c039ab5978
commit cc8b3296c6
5 changed files with 9 additions and 2 deletions

View File

@ -33,6 +33,7 @@ extern settings::Int print_r;
extern settings::Int print_g; extern settings::Int print_g;
extern settings::Int print_b; extern settings::Int print_b;
extern int stored_buttons; extern int stored_buttons;
extern settings::Bool null_graphics;
#if ENABLE_VISUALS #if ENABLE_VISUALS
extern bool freecam_is_toggled; extern bool freecam_is_toggled;
#endif #endif

View File

@ -26,3 +26,4 @@ settings::Bool disable_visuals{ "visual.disable", "false" };
settings::Int print_r{ "print.rgb.r", "183" }; settings::Int print_r{ "print.rgb.r", "183" };
settings::Int print_g{ "print.rgb.b", "27" }; settings::Int print_g{ "print.rgb.b", "27" };
settings::Int print_b{ "print.rgb.g", "139" }; settings::Int print_b{ "print.rgb.g", "139" };
settings::Bool null_graphics("hack.nullgraphics", "false");

View File

@ -182,12 +182,13 @@ static void ReduceRamUsage()
// g_IMaterialSystem->ReloadTextures(); // g_IMaterialSystem->ReloadTextures();
g_IBaseClient->InvalidateMdlCache(); g_IBaseClient->InvalidateMdlCache();
} }
static void UnHookFs() static void UnHookFs()
{ {
fs_hook2.Release(); fs_hook2.Release();
g_IBaseClient->InvalidateMdlCache(); g_IBaseClient->InvalidateMdlCache();
} }
static settings::Bool null_graphics("hack.nullgraphics", "false");
static void InitRandom() static void InitRandom()
{ {
int rand_seed; int rand_seed;

View File

@ -3,10 +3,14 @@
Copyright (c) 2018 nullworks. All rights reserved. Copyright (c) 2018 nullworks. All rights reserved.
*/ */
#include "HookedMethods.hpp" #include "HookedMethods.hpp"
#include "MiscTemporary.hpp"
namespace hooked_methods namespace hooked_methods
{ {
DEFINE_HOOKED_METHOD(DrawModelExecute, void, IVModelRender *this_, const DrawModelState_t &state, const ModelRenderInfo_t &info, matrix3x4_t *bone) DEFINE_HOOKED_METHOD(DrawModelExecute, void, IVModelRender *this_, const DrawModelState_t &state, const ModelRenderInfo_t &info, matrix3x4_t *bone)
{ {
if (*null_graphics)
return;
return original::DrawModelExecute(this_, state, info, bone);
} }
} // namespace hooked_methods } // namespace hooked_methods

View File

@ -13,7 +13,7 @@ static settings::Bool vote_kicky{ "votelogger.autovote.yes", "false" };
static settings::Bool vote_kickn{ "votelogger.autovote.no", "false" }; static settings::Bool vote_kickn{ "votelogger.autovote.no", "false" };
static settings::Bool vote_rage_vote{ "votelogger.autovote.no.rage", "false" }; static settings::Bool vote_rage_vote{ "votelogger.autovote.no.rage", "false" };
static settings::Bool party_say{ "votelogger.partysay", "true" }; static settings::Bool party_say{ "votelogger.partysay", "true" };
static settings::Bool party_say_casts{ "votelogger.partysay-casts", "true" }; static settings::Bool party_say_casts{ "votelogger.partysay-casts", "false" };
static settings::Bool party_say_f1_only{ "votelogger.partysay-casts.f1-only", "true" }; static settings::Bool party_say_f1_only{ "votelogger.partysay-casts.f1-only", "true" };
static settings::Bool abandon_and_crash_on_kick{ "votelogger.restart-on-kick", "false" }; static settings::Bool abandon_and_crash_on_kick{ "votelogger.restart-on-kick", "false" };