share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 15418 b186e1f4c5ed
parent 15417 1c71406fc281
child 15419 09b63f9032f4
equal deleted inserted replaced
15417:1c71406fc281 15418:b186e1f4c5ed
   787                         else
   787                         else
   788                                 infoString = loc("Place 2 waypoints using the waypoint placement tool.")
   788                                 infoString = loc("Place 2 waypoints using the waypoint placement tool.")
   789                         end
   789                         end
   790                         ShowMission(loc("Racer"),
   790                         ShowMission(loc("Racer"),
   791                         loc("Waypoint placement phase"), infoString, -amAirAttack, 4000)
   791                         loc("Waypoint placement phase"), infoString, -amAirAttack, 4000)
   792                         AddAmmo(CurrentHedgehog, amAirAttack, 4000)
   792                         AddAmmo(CurrentHedgehog, amAirAttack, AMMO_INFINITE)
   793                         SetWeapon(amAirAttack)
   793                         SetWeapon(amAirAttack)
   794                         -- Bots skip waypoint placement
   794                         -- Bots skip waypoint placement
   795                         if GetHogLevel(CurrentHedgehog) ~= 0 then
   795                         if GetHogLevel(CurrentHedgehog) ~= 0 then
   796                                 SkipTurn()
   796                                 SkipTurn()
   797                         end
   797                         end
   835         AddAmmo(CurrentHedgehog, amInvulnerable, 0)
   835         AddAmmo(CurrentHedgehog, amInvulnerable, 0)
   836         AddAmmo(CurrentHedgehog, amDrillStrike, 0)
   836         AddAmmo(CurrentHedgehog, amDrillStrike, 0)
   837         AddAmmo(CurrentHedgehog, amMineStrike, 0)
   837         AddAmmo(CurrentHedgehog, amMineStrike, 0)
   838         AddAmmo(CurrentHedgehog, amNapalm, 0)
   838         AddAmmo(CurrentHedgehog, amNapalm, 0)
   839         AddAmmo(CurrentHedgehog, amPiano, 0)
   839         AddAmmo(CurrentHedgehog, amPiano, 0)
       
   840         SetAmmoDelay(amAirAttack, 0)
   840 end
   841 end
   841 
   842 
   842 function onGameTick20()
   843 function onGameTick20()
   843 
   844 
   844         -- airstrike detected, convert this into a potential waypoint spot
   845         -- airstrike detected, convert this into a potential waypoint spot