This commit is contained in:
Your Name 2020-08-28 01:11:47 -06:00
parent 4bc50de945
commit 350c64a9b9

View File

@ -1227,10 +1227,11 @@ bot_jav_loc_think()
for (;;) for (;;)
{ {
wait randomintRange(2, 4); //wait randomintRange(2, 4);
if (randomInt(100) < 20) // if (randomInt(100) < 20)
continue; // continue;
wait 0.05;
if (!self GetAmmoCount("javelin_mp")) if (!self GetAmmoCount("javelin_mp"))
continue; continue;
@ -1272,8 +1273,12 @@ bot_jav_loc_think()
continue; continue;
self SetBotJavelinLocation(loc); self SetBotJavelinLocation(loc);
self notify("bot_force_check_switch"); self setSpawnWeapon("javelin_mp");
self waittill_any("missile_fire", "weapon_change");
wait 0.05;
if (self GetCurrentWeapon() == "javelin_mp")
self waittill_any("missile_fire", "weapon_change");
self ClearBotJavelinLocation(loc); self ClearBotJavelinLocation(loc);
} }
} }