some weap changes

This commit is contained in:
ineedbots 2021-06-02 10:28:59 -06:00
parent c9f5b6cf33
commit 168a2e621c

View File

@ -1333,11 +1333,11 @@ changeToWeapon(weap)
if (!self HasWeapon(weap)) if (!self HasWeapon(weap))
return false; return false;
self BotChangeToWeapon(weap);
if (self GetCurrentWeapon() == weap) if (self GetCurrentWeapon() == weap)
return true; return true;
self BotChangeToWeapon(weap);
self waittill_any_timeout(5, "weapon_change"); self waittill_any_timeout(5, "weapon_change");
return (self GetCurrentWeapon() == weap); return (self GetCurrentWeapon() == weap);
@ -2210,9 +2210,9 @@ doReloadCancel_loop()
// do the cancel // do the cancel
wait 0.1; wait 0.1;
self BotChangeToWeapon(weap); self thread ChangeToWeapon(weap);
wait 0.25; wait 0.25;
self BotChangeToWeapon(curWeap); self thread ChangeToWeapon(curWeap);
wait 2; wait 2;
} }
@ -2346,7 +2346,7 @@ bot_watch_think_mw2_loop()
if (randomInt(100) > chance) if (randomInt(100) > chance)
return; return;
self ChangeToWeapon(tube); self thread ChangeToWeapon(tube);
} }
/* /*