472 |
472 |
473 FillBonuses(false); |
473 FillBonuses(false); |
474 |
474 |
475 // Hog has no idea what to do. Use tardis or skip |
475 // Hog has no idea what to do. Use tardis or skip |
476 if not bonuses.activity then |
476 if not bonuses.activity then |
477 if ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(4) < 3) then |
477 if (((GameFlags and gfInfAttack) <> 0) or (not isInMultiShoot)) and ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(4) < 3) then |
478 // Tardis brings hog to a random place. Perfect for clueless AI |
478 // Tardis brings hog to a random place. Perfect for clueless AI |
479 begin |
479 begin |
480 AddAction(BestActions, aia_Weapon, Longword(amTardis), 80, 0, 0); |
480 AddAction(BestActions, aia_Weapon, Longword(amTardis), 80, 0, 0); |
481 AddAction(BestActions, aia_attack, aim_push, 10, 0, 0); |
481 AddAction(BestActions, aia_attack, aim_push, 10, 0, 0); |
482 AddAction(BestActions, aia_attack, aim_release, 10, 0, 0); |
482 AddAction(BestActions, aia_attack, aim_release, 10, 0, 0); |