diff --git a/include/navparser.hpp b/include/navparser.hpp index e02ef230..00dc8743 100644 --- a/include/navparser.hpp +++ b/include/navparser.hpp @@ -113,10 +113,12 @@ public: } auto &pair = inactives.at(connection); - pair.second = pair.second + - (std::chrono::duration_cast( - std::chrono::system_clock::now() - timer.last) - .count()); + unsigned int newTime = std::chrono::duration_cast( + std::chrono::system_clock::now() - timer.last) + .count(); + if (pair.first == 2 && !vischeckConnection(connection)) + newTime = (newTime > 2500 ? 2500 : newTime); + pair.second = pair.second + newTime; if (pair.second >= 5000) resetPather = true; } diff --git a/src/hacks/NavBot.cpp b/src/hacks/NavBot.cpp index d498a7aa..8079f98f 100644 --- a/src/hacks/NavBot.cpp +++ b/src/hacks/NavBot.cpp @@ -467,7 +467,7 @@ void CreateMove() fClampAngle(angles); current_user_cmd->viewangles = angles; current_user_cmd->buttons |= IN_ATTACK; - g_pLocalPlayer->bUseSilentAngles = true; + g_pLocalPlayer->bUseSilentAngles = false; return; } }