This commit is contained in:
INeedBots 2020-12-27 14:35:55 -06:00
parent 13955c2f2b
commit 67b3d9ea08

View File

@ -2049,6 +2049,10 @@ bot_use_equipment_think()
loc = undefined; loc = undefined;
curWeap = self GetCurrentWeapon();
if (curWeap == "none" || !isWeaponDroppable(curWeap))
curWeap = self.lastDroppableWeapon;
if (!self nearAnyOfWaypoints(128, level.waypointsClay)) if (!self nearAnyOfWaypoints(128, level.waypointsClay))
{ {
clayWps = []; clayWps = [];
@ -2106,6 +2110,7 @@ bot_use_equipment_think()
self notify("stop_firing_weapon"); self notify("stop_firing_weapon");
} }
self thread changeToWeapon(curWeap);
self ClearScriptAimPos(); self ClearScriptAimPos();
self BotStopMoving(false); self BotStopMoving(false);
} }
@ -2462,7 +2467,7 @@ bot_killstreak_think()
continue; continue;
curWeap = self GetCurrentWeapon(); curWeap = self GetCurrentWeapon();
if (curWeap == "none") if (curWeap == "none" || !isWeaponDroppable(curWeap))
curWeap = self.lastDroppableWeapon; curWeap = self.lastDroppableWeapon;
targetPos = undefined; targetPos = undefined;