diff --git a/CS2_External/Utils/ConfigMenu.cpp b/CS2_External/Utils/ConfigMenu.cpp index 2955e10..2705a54 100644 --- a/CS2_External/Utils/ConfigMenu.cpp +++ b/CS2_External/Utils/ConfigMenu.cpp @@ -179,11 +179,13 @@ namespace ConfigMenu { MenuConfig::ShowHeadShootLine = true; MenuConfig::HeadShootLineColor = ImVec4(255, 255, 255, 255); MenuConfig::AimBotHotKey = 0; + AimControl::SetHotKey(MenuConfig::AimBotHotKey); MenuConfig::ShowLineToEnemy = false; MenuConfig::FovLineSize = 60.0f; TriggerBot::TriggerDelay = 90; AimControl::RCSBullet = 1; MenuConfig::TriggerHotKey = 0; + TriggerBot::SetHotKey(MenuConfig::TriggerHotKey); AimControl::RCSScale = ImVec2(1.2f, 1.4f); MenuConfig::FovLineColor = ImVec4(55, 55, 55, 220); MenuConfig::LineToEnemyColor = ImVec4(255, 255, 255, 220); diff --git a/CS2_External/Utils/ConfigSaver.cpp b/CS2_External/Utils/ConfigSaver.cpp index e58a108..4644b70 100644 --- a/CS2_External/Utils/ConfigSaver.cpp +++ b/CS2_External/Utils/ConfigSaver.cpp @@ -121,12 +121,12 @@ namespace MyConfigSaver { else if (key == "SpectateEsp") iss >> MenuConfig::SpectateEsp; else if (key == "TriggerDelay") iss >> TriggerBot::TriggerDelay; else if (key == "ShowBoxESP") iss >> MenuConfig::ShowBoxESP; - else if (key == "TriggerHotKey") iss >> MenuConfig::TriggerHotKey; + else if (key == "TriggerHotKey") { iss >> MenuConfig::TriggerHotKey; TriggerBot::SetHotKey(MenuConfig::TriggerHotKey); } else if (key == "RCSBullet") iss >> AimControl::RCSBullet; else if (key == "ShowHealthBar") iss >> MenuConfig::ShowHealthBar; else if (key == "AimFov") iss >> AimControl::AimFov; else if (key == "FovLineSize") iss >> MenuConfig::FovLineSize; - else if (key == "AimBotHotKey") iss >> MenuConfig::AimBotHotKey; + else if (key == "AimBotHotKey") { iss >> MenuConfig::AimBotHotKey; AimControl::SetHotKey(MenuConfig::AimBotHotKey); } else if (key == "ShowLineToEnemy") iss >> MenuConfig::ShowLineToEnemy; else if (key == "RCSScale.x") iss >> AimControl::RCSScale.x; else if (key == "RCSScale.y") iss >> AimControl::RCSScale.y;