equal
deleted
inserted
replaced
772 currCount = 0 -- hopefully this solves problem |
772 currCount = 0 -- hopefully this solves problem |
773 fastIndex = 0 |
773 fastIndex = 0 |
774 AddAmmo(CurrentHedgehog, amAirAttack, 0) |
774 AddAmmo(CurrentHedgehog, amAirAttack, 0) |
775 gTimer = 0 |
775 gTimer = 0 |
776 |
776 |
|
777 SetSoundMask(sndStupid, false) |
|
778 SetSoundMask(sndBugger, false) |
|
779 SetSoundMask(sndDrat, false) |
|
780 |
777 -- Remember ammo delays for later |
781 -- Remember ammo delays for later |
778 if ammoDelays == nil then |
782 if ammoDelays == nil then |
779 ammoDelays = {} |
783 ammoDelays = {} |
780 for a=0, AmmoTypeMax do |
784 for a=0, AmmoTypeMax do |
781 local _, _, delay = GetAmmo(a) |
785 local _, _, delay = GetAmmo(a) |
951 |
955 |
952 if GameTime%100 == 0 then |
956 if GameTime%100 == 0 then |
953 |
957 |
954 AddCaption(string.format(loc("Time: %.1fs"), (trackTime/1000)),GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2) |
958 AddCaption(string.format(loc("Time: %.1fs"), (trackTime/1000)),GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2) |
955 |
959 |
|
960 -- Track completed, all waypoints touched |
956 if (CheckWaypoints() == true) then |
961 if (CheckWaypoints() == true) then |
|
962 SetSoundMask(sndStupid, true) |
|
963 SetSoundMask(sndBugger, true) |
|
964 SetSoundMask(sndDrat, true) |
957 AdjustScores() |
965 AdjustScores() |
958 SetEffect(CurrentHedgehog, heInvulnerable, 1) |
966 SetEffect(CurrentHedgehog, heInvulnerable, 1) |
959 DisableTumbler() |
967 DisableTumbler() |
960 end |
968 end |
961 |
969 |