diff --git a/TODO b/TODO index faca2c14..2bdb40ed 100755 --- a/TODO +++ b/TODO @@ -75,8 +75,7 @@ FLAG ESP? // // // // ESP Icons // // ESP Distance sort // // -Show sapped buildings in ESP // // -halloween medkits // // +Show sapped buildings in ESP // // // // carrying esp // // Tracers/Spy Cam // // // // diff --git a/src/hacks/Misc.cpp b/src/hacks/Misc.cpp index 954b2b71..6f3795fe 100755 --- a/src/hacks/Misc.cpp +++ b/src/hacks/Misc.cpp @@ -214,7 +214,6 @@ void CreateMove() } } } - // AntiAfk That after a certian time without movement keys depressed, causes // random keys to be spammed for 1 second if (anti_afk) diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 036b8718..d9853f11 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -1011,6 +1011,7 @@ CatEnum skys({ "sky_tf2_04", static CatVar skybox_changer(skys, "skybox_changer", "0", "Change Skybox to this skybox", "Change Skybox to this skybox, only changes on map load"); +static CatVar halloween_mode(CV_SWITCH, "halloween_mode", "Forced Halloween mode", "forced tf_forced_holiday 2"); void LevelInit_hook(void *_this, const char *newmap) { static const LevelInit_t original = @@ -1024,6 +1025,14 @@ 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->FindCommand("tf_forced_holiday"); + holiday->SetValue(2); + } + else if (ConVar(g_ICvar->FindCommand("tf_forced_holiday")).m_nValue == 2) { + ConVar* holiday = g_ICvar->FindCommand("tf_forced_holiday"); + holiday->SetValue(2); + } g_IEngine->ClientCmd_Unrestricted("exec cat_matchexec"); hacks::shared::aimbot::Reset(); chat_stack::Reset(); diff --git a/src/menu/ncc/Menu.cpp b/src/menu/ncc/Menu.cpp index 682b35ff..22319074 100644 --- a/src/menu/ncc/Menu.cpp +++ b/src/menu/ncc/Menu.cpp @@ -655,6 +655,7 @@ static const std::string list_tf2 = R"( ] "Misc" [ "Misc Menu" + "halloween_mode" "name" "disconnect_reason" "pure_bypass"