Skip to content
Permalink
Browse files

Engineer Bot fixes

  • Loading branch information
BenCat07 committed Feb 7, 2020
1 parent a2345f5 commit 005fac7afce59317b28b6d7bf4afba33886f8389
Showing with 9 additions and 1 deletion.
  1. +1 −1 data/menu/nullifiedcat/movement.xml
  2. +8 −0 src/hacks/NavBot.cpp
@@ -33,7 +33,7 @@
<AutoVariable width="fill" target="misc.pathing.draw" label="Draw Path"/>
<AutoVariable width="fill" target="misc.pathing.look-at-path" label="Look at Path"/>
<AutoVariable width="fill" target="navbot.enabled" label="Enable Navbot"/>
<AutoVariable width="fill" target="navbot.engineer-mode" label="Enable Engineer mode">
<AutoVariable width="fill" target="navbot.engineer-mode" label="Enable Engineer mode"/>
<AutoVariable width="fill" target="navbot.get-health-and-ammo" label="Get Health and Ammo"/>
<AutoVariable width="fill" target="navbot.spy-mode" label="Enable Spy Mode"/>
<AutoVariable width="fill" target="navbot.other-mode" label="General Mode"/>
@@ -156,8 +156,16 @@ static void CreateMove()

// Engineer stuff
if (engineer_mode && g_pLocalPlayer->clazz == tf_engineer)
{
if (engineerLogic())
return;
}
// Reset Engi task stzff if not engineer
else if (!engineer_mode && task::current_task == task::engineer)
{
task::current_task = task::none;
task::current_engineer_task = task::nothing;
}

if (blocking)
return;

0 comments on commit 005fac7

Please sign in to comment.
You can’t perform that action at this time.