share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/backstab.lua
changeset 7512 cc3f036121fe
parent 7466 5cb1b21b3176
child 7518 70babd9073a2
equal deleted inserted replaced
7510:a7601ce08b5d 7512:cc3f036121fe
   880   PlaceGirder(316, 468, 1)
   880   PlaceGirder(316, 468, 1)
   881   PlaceGirder(1319, 168, 0)
   881   PlaceGirder(1319, 168, 0)
   882   startNativesNum = nativesNum
   882   startNativesNum = nativesNum
   883 end
   883 end
   884 
   884 
   885 function SetupEvents()
       
   886 end
       
   887 
       
   888 function SetupAmmo()
   885 function SetupAmmo()
   889   AddAmmo(natives[girlNum], amSwitch, 0)
   886   AddAmmo(natives[girlNum], amSwitch, 0)
   890 end
   887 end
   891 
   888 
   892 function AddHogs()
   889 function AddHogs()
   961 function onGameStart()
   958 function onGameStart()
   962   GetVariables()
   959   GetVariables()
   963   SetupAmmo()
   960   SetupAmmo()
   964   SetupPlace()
   961   SetupPlace()
   965   AnimationSetup()
   962   AnimationSetup()
   966   SetupEvents()
       
   967   AddAnim(startAnim)
   963   AddAnim(startAnim)
   968   AddFunction({func = AfterStartAnim, args = {}})
   964   AddFunction({func = AfterStartAnim, args = {}})
   969 end
   965 end
   970 
   966 
   971 function onGameTick()
   967 function onGameTick()
  1001   end
   997   end
  1002 
   998 
  1003   if gear == deployedHog then
   999   if gear == deployedHog then
  1004     deployedDead = true
  1000     deployedDead = true
  1005   end
  1001   end
  1006 end
       
  1007 
       
  1008 function onGearAdd(gear)
       
  1009 end
  1002 end
  1010 
  1003 
  1011 function onAmmoStoreInit()
  1004 function onAmmoStoreInit()
  1012   SetAmmo(amDEagle, 9, 0, 0, 0)
  1005   SetAmmo(amDEagle, 9, 0, 0, 0)
  1013   SetAmmo(amSniperRifle, 4, 0, 0, 0)
  1006   SetAmmo(amSniperRifle, 4, 0, 0, 0)
  1087     end
  1080     end
  1088     needToAct = 0
  1081     needToAct = 0
  1089   end
  1082   end
  1090 end
  1083 end
  1091 
  1084 
  1092 function onGearDamage(gear, damage)
       
  1093 end
       
  1094 
       
  1095 function onPrecise()
  1085 function onPrecise()
  1096   if GameTime > 2500 and AnimInProgress() then
  1086   if GameTime > 2500 and AnimInProgress() then
  1097     SetAnimSkip(true)
  1087     SetAnimSkip(true)
  1098     return
  1088     return
  1099   end
  1089   end