share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
changeset 12261 69217c8c91fe
parent 12226 3ec0261e01f0
child 12262 2c11b8f5fa4d
equal deleted inserted replaced
12260:0641da8c22ee 12261:69217c8c91fe
   467     end
   467     end
   468   end
   468   end
   469   HideHedge(cyborg)
   469   HideHedge(cyborg)
   470   jetCrate = SpawnUtilityCrate(3915, 1723, amJetpack)
   470   jetCrate = SpawnUtilityCrate(3915, 1723, amJetpack)
   471 
   471 
   472   SetTimer(AddGear(1071, 1913, gtMine, 0, 0, 0, 0), 5000)
   472   AddGear(1071, 1913, gtMine, 0, 0, 0, 0)
   473   SetTimer(AddGear(1098, 1919, gtMine, 0, 0, 0, 0), 5000)
   473   AddGear(1098, 1919, gtMine, 0, 0, 0, 0)
   474   SetTimer(AddGear(1136, 1923, gtMine, 0, 0, 0, 0), 5000)
   474   AddGear(1136, 1923, gtMine, 0, 0, 0, 0)
   475   SetTimer(AddGear(1170, 1930, gtMine, 0, 0, 0, 0), 5000)
   475   AddGear(1170, 1930, gtMine, 0, 0, 0, 0)
   476   SetTimer(AddGear(1203, 1924, gtMine, 0, 0, 0, 0), 5000)
   476   AddGear(1203, 1924, gtMine, 0, 0, 0, 0)
   477   SetTimer(AddGear(1228, 1939, gtMine, 0, 0, 0, 0), 5000)
   477   AddGear(1228, 1939, gtMine, 0, 0, 0, 0)
   478   SetTimer(AddGear(1264, 1931, gtMine, 0, 0, 0, 0), 5000)
   478   AddGear(1264, 1931, gtMine, 0, 0, 0, 0)
   479   SetTimer(AddGear(1309, 1938, gtMine, 0, 0, 0, 0), 5000)
   479   AddGear(1309, 1938, gtMine, 0, 0, 0, 0)
   480   SetTimer(AddGear(1352, 1936, gtMine, 0, 0, 0, 0), 5000)
   480   AddGear(1352, 1936, gtMine, 0, 0, 0, 0)
   481   SetTimer(AddGear(1386, 1939, gtMine, 0, 0, 0, 0), 5000)
   481   AddGear(1386, 1939, gtMine, 0, 0, 0, 0)
   482   SetTimer(AddGear(1432, 1942, gtMine, 0, 0, 0, 0), 5000)
   482   AddGear(1432, 1942, gtMine, 0, 0, 0, 0)
   483   SetTimer(AddGear(1483, 1950, gtMine, 0, 0, 0, 0), 5000)
   483   AddGear(1483, 1950, gtMine, 0, 0, 0, 0)
   484   SetTimer(AddGear(1530, 1954, gtMine, 0, 0, 0, 0), 5000)
   484   AddGear(1530, 1954, gtMine, 0, 0, 0, 0)
   485   SetTimer(AddGear(1579, 1959, gtMine, 0, 0, 0, 0), 5000)
   485   AddGear(1579, 1959, gtMine, 0, 0, 0, 0)
   486   SetTimer(AddGear(1000, 1903, gtMine, 0, 0, 0, 0), 5000)
   486   AddGear(1000, 1903, gtMine, 0, 0, 0, 0)
   487   SetTimer(AddGear(957, 1903, gtMine, 0, 0, 0, 0), 5000)
   487   AddGear(957, 1903, gtMine, 0, 0, 0, 0)
   488   SetTimer(AddGear(909, 1910, gtMine, 0, 0, 0, 0), 5000)
   488   AddGear(909, 1910, gtMine, 0, 0, 0, 0)
   489   SetTimer(AddGear(889, 1917, gtMine, 0, 0, 0, 0), 5000)
   489   AddGear(889, 1917, gtMine, 0, 0, 0, 0)
   490   ------ STICKY MINE LIST ------
   490   ------ STICKY MINE LIST ------
   491   tempG = AddGear(1199, 733, gtSMine, 0, 0, 0, 0)
   491   tempG = AddGear(1199, 733, gtSMine, 0, 0, 0, 0)
   492   tempG = AddGear(1195, 793, gtSMine, 0, 0, 0, 0)
   492   tempG = AddGear(1195, 793, gtSMine, 0, 0, 0, 0)
   493   tempG = AddGear(1201, 861, gtSMine, 0, 0, 0, 0)
   493   tempG = AddGear(1201, 861, gtSMine, 0, 0, 0, 0)
   494   tempG = AddGear(682, 878, gtSMine, 0, 0, 0, 0)
   494   tempG = AddGear(682, 878, gtSMine, 0, 0, 0, 0)
   501   AddNewEvent(CheckFreshDead, {}, CyborgDeadReact, {}, 1)
   501   AddNewEvent(CheckFreshDead, {}, CyborgDeadReact, {}, 1)
   502 end
   502 end
   503 
   503 
   504 function SetupAmmo()
   504 function SetupAmmo()
   505   AddAmmo(cyborgs[1], amBazooka, 100)
   505   AddAmmo(cyborgs[1], amBazooka, 100)
   506 --  AddAmmo(cyborgs[1], amSniperRifle, 100)
       
   507   AddAmmo(cyborgs[1], amShotgun, 100)
   506   AddAmmo(cyborgs[1], amShotgun, 100)
   508   AddAmmo(cyborgs[1], amSwitch, 100)
   507   AddAmmo(cyborgs[1], amSwitch, 100)
   509 end
   508 end
   510 
   509 
   511 function AddHogs()
   510 function AddHogs()
   551 end
   550 end
   552 
   551 
   553 -----------------------------Main Functions----------------------------
   552 -----------------------------Main Functions----------------------------
   554 
   553 
   555 function onGameInit()
   554 function onGameInit()
   556 	Seed = 0
   555   Seed = 0
   557 	GameFlags = gfSolidLand + gfDisableLandObjects + gfDisableWind + gfDisableGirders
   556   GameFlags = gfSolidLand + gfDisableLandObjects + gfDisableWind + gfDisableGirders
   558 	TurnTime = 60000 
   557   TurnTime = 60000 
   559 	CaseFreq = 0
   558   CaseFreq = 0
   560 	MinesNum = 20
   559   MinesNum = 0
   561 	MinesTime = 3000
   560   MinesTime = 5000
   562 	Explosives = 6
   561   Explosives = 0
   563 	Delay = 10 
   562   Delay = 10 
   564   MapGen = mgDrawn
   563   MapGen = mgDrawn
   565 	Theme = "City"
   564   Theme = "City"
   566   SuddenDeathTurns = 25
   565   SuddenDeathTurns = 25
   567 
   566 
   568 	for i = 1, #map do
   567   for i = 1, #map do
   569 		ParseCommand('draw ' .. map[i])
   568      ParseCommand('draw ' .. map[i])
   570 	end
   569   end
   571 
   570 
   572   AddHogs()
   571   AddHogs()
   573   AnimInit()
   572   AnimInit()
   574 end
   573 end
   575 
   574 
   645     SetAnimSkip(true)
   644     SetAnimSkip(true)
   646   end
   645   end
   647   if AnimInProgress() == false then
   646   if AnimInProgress() == false then
   648   end
   647   end
   649 end
   648 end
   650 
       
   651 function onPreciseUp()
       
   652 end