From df13f91c648257b68b0b945761b781f2b5abb43e Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Thu, 12 Apr 2018 16:06:58 +0200 Subject: [PATCH] another fix --- src/hooks/others.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index b0e74e0b..872d7cb4 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -1025,14 +1025,12 @@ void LevelInit_hook(void *_this, const char *newmap) bool load_success = LoadNamedSkys(skynum[(int) skybox_changer]); logging::Info("Skybox Loading successful: %s", load_success ? "true" : "false"); - if (halloween_mode) { - ConVar* holiday = g_ICvar->FindVar("tf_forced_holiday"); + ConVar* holiday = g_ICvar->FindVar("tf_forced_holiday"); + if (halloween_mode) holiday->SetValue(2); - } - else if (ConVar(g_ICvar->FindVar("tf_forced_holiday")).m_nValue == 2) { - ConVar* holiday = g_ICvar->FindVar("tf_forced_holiday"); + else if (holiday->m_nValue == 2) holiday->SetValue(2); - } + g_IEngine->ClientCmd_Unrestricted("exec cat_matchexec"); hacks::shared::aimbot::Reset(); chat_stack::Reset();