hedgewars/uAI.pas
changeset 15624 30ad3fd974f1
parent 15622 dc62f1c13bb2
child 15625 583080b0272b
--- a/hedgewars/uAI.pas	Sat Jun 06 20:21:08 2020 +0200
+++ b/hedgewars/uAI.pas	Sat Jun 06 20:22:57 2020 +0200
@@ -180,6 +180,14 @@
                     if (Ammoz[a].Ammo.Propz and ammoprop_Timerable) <> 0 then
                         AddAction(BestActions, aia_Timer, ap.Time div 1000, 400, 0, 0);
 
+                    // Set minimum mine bounciness for improved aim
+                    if (BotLevel < 5) and (a = amMine) then
+                        begin
+                        AddAction(BestActions, aia_Precise, aim_push, 10, 0, 0);
+                        AddAction(BestActions, aia_Timer, 1, 200, 0, 0);
+                        AddAction(BestActions, aia_Precise, aim_release, 10, 0, 0);
+                        end;
+
                     if (Ammoz[a].Ammo.Propz and ammoprop_NoCrosshair) = 0 then
                         begin
                         dAngle:= LongInt(Me^.Angle) - Abs(ap.Angle);