share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
author mikade <redgrinner@gmail.com>
Thu, 27 Nov 2014 22:32:03 +0900
changeset 10554 48e9b1099ff4
child 10596 75b5b674387a
permissions -rw-r--r--
Added TechRacer (still needs a lot of love), updated changelog
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     1
------------------------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     2
-- TECH RACER
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     3
-----------------------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     4
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     5
-----------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     6
-- SCRIPT BEGINS
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     7
-----------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     8
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
     9
HedgewarsScriptLoad("/Scripts/Locale.lua")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    10
--HedgewarsScriptLoad("/Scripts/OfficialChallenges.lua")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    11
HedgewarsScriptLoad("/Scripts/Tracker.lua")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    12
HedgewarsScriptLoad("/Scripts/Params.lua")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    13
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    14
------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    15
-- Got Variables?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    16
------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    17
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    18
 local activationStage = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    19
 local jet = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    20
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    21
local fMod = 1000000 -- 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    22
local roundLimit = 3
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    23
local roundNumber = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    24
local firstClan = 10
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    25
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    26
local fastX = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    27
local fastY = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    28
local fastCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    29
local fastIndex = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    30
local fastColour
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    31
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    32
local currX = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    33
local currY = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    34
local currCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    35
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    36
local specialPointsX = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    37
local specialPointsY = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    38
local specialPointsCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    39
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    40
mapID = 22
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    41
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    42
--------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    43
-- hog and team tracking variales
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    44
--------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    45
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    46
local numhhs = 0 -- store number of hedgehogs
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    47
local hhs = {} -- store hedgehog gears
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    48
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    49
local numTeams --  store the number of teams in the game
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    50
local teamNameArr = {}  -- store the list of teams
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    51
local teamClan = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    52
local teamSize = {}     -- store how many hogs per team
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    53
local teamIndex = {} -- at what point in the hhs{} does each team begin
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    54
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    55
local teamComment = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    56
local teamScore = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    57
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    58
-------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    59
-- racer vars
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    60
--------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    61
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    62
local cGear = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    63
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    64
local bestClan = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    65
local bestTime = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    66
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    67
local gameBegun = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    68
local gameOver = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    69
local racerActive = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    70
local trackTime = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    71
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    72
local wpCirc = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    73
local wpX = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    74
local wpY = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    75
local wpCol = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    76
local wpActive = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    77
local wpRad = 450 --75
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    78
local wpCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    79
local wpLimit = 8
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    80
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    81
local usedWeapons = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    82
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    83
local roundN
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    84
local lastRound
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    85
local RoundHasChanged
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    86
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    87
-------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    88
-- general methods
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    89
-------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    90
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    91
function onPrecise()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    92
	AddCaption(mapID)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    93
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    94
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    95
function RebuildTeamInfo()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    96
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    97
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    98
        -- make a list of individual team names
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    99
        for i = 0, (TeamsCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   100
                teamNameArr[i] = " " -- = i
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   101
                teamSize[i] = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   102
                teamIndex[i] = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   103
                teamScore[i] = 100000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   104
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   105
        numTeams = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   106
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   107
        for i = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   108
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   109
                z = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   110
                unfinished = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   111
                while(unfinished == true) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   112
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   113
                        newTeam = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   114
                        tempHogTeamName = GetHogTeamName(hhs[i]) -- this is the new name
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   115
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   116
                        if tempHogTeamName == teamNameArr[z] then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   117
                                newTeam = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   118
                                unfinished = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   119
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   120
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   121
                        z = z + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   122
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   123
                        if z == TeamsCount then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   124
                                unfinished = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   125
                                if newTeam == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   126
                                        teamNameArr[numTeams] = tempHogTeamName
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   127
                                        numTeams = numTeams + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   128
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   129
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   130
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   131
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   132
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   133
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   134
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   135
        -- find out how many hogs per team, and the index of the first hog in hhs
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   136
        for i = 0, (numTeams-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   137
                for z = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   138
                        if GetHogTeamName(hhs[z]) == teamNameArr[i] then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   139
                                teamClan[i] = GetHogClan(hhs[z])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   140
                                if teamSize[i] == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   141
                                        teamIndex[i] = z -- should give starting index
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   142
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   143
                                teamSize[i] = teamSize[i] + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   144
                                --add a pointer so this hog appears at i in hhs
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   145
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   146
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   147
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   148
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   149
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   150
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   151
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   152
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   153
-----------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   154
-- RACER METHODS
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   155
-----------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   156
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   157
function CheckWaypoints()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   158
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   159
        trackFinished = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   160
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   161
        for i = 0, (wpCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   162
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   163
                g1X, g1Y = GetGearPosition(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   164
                g2X, g2Y = wpX[i], wpY[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   165
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   166
                g1X = g1X - g2X
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   167
                g1Y = g1Y - g2Y
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   168
                dist = (g1X*g1X) + (g1Y*g1Y)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   169
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   170
                --if i == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   171
                --      AddCaption(dist .. "/" .. (wpRad*wpRad) )
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   172
                --end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   173
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   174
                NR = (48/100*wpRad)/2
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   175
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   176
                if dist < (NR*NR) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   177
                --if dist < (wpRad*wpRad) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   178
                        --AddCaption("howdy")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   179
                        wpActive[i] = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   180
                        wpCol[i] = GetClanColor(GetHogClan(CurrentHedgehog)) -- new                             --GetClanColor(1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   181
                        SetVisualGearValues(wpCirc[i], wpX[i], wpY[i], 20, 100, 1, 10, 0, wpRad, 5, wpCol[i])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   182
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   183
                        wpRem = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   184
                        for k = 0, (wpCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   185
                                if wpActive[k] == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   186
                                        wpRem = wpRem + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   187
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   188
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   189
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   190
                        AddCaption(loc("Way-Points Remaining") .. ": " .. wpRem,0xffba00ff,capgrpAmmoinfo)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   191
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   192
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   193
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   194
                if wpActive[i] == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   195
                        trackFinished = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   196
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   197
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   198
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   199
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   200
        return(trackFinished)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   201
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   202
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   203
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   204
function AdjustScores()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   205
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   206
        if bestTime == nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   207
                bestTime = 100000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   208
                bestClan = 10
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   209
                bestTimeComment = "N/A"
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   210
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   211
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   212
        newScore = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   213
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   214
        -- update this clan's time if the new track is better
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   215
        for i = 0, (numTeams-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   216
                if teamClan[i] == GetHogClan(CurrentHedgehog) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   217
                        if trackTime < teamScore[i] then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   218
                                teamScore[i] = trackTime
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   219
                                newScore = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   220
                        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   221
                                newScore = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   222
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   223
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   224
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   225
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   226
        --bestTime = 100000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   227
        --bestClan = 10
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   228
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   229
        -- find the best time out of those so far
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   230
        for i = 0, (numTeams-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   231
                if teamScore[i] < bestTime then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   232
                        bestTime = teamScore[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   233
                        bestClan = teamClan[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   234
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   235
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   236
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   237
        if bestTime ~= 100000 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   238
                bestTimeComment = (bestTime/1000) ..loc("s")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   239
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   240
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   241
        if newScore == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   242
                if trackTime == bestTime then -- best time of the race
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   243
                        ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   244
                        loc("TRACK COMPLETED"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   245
                        loc("NEW RACE RECORD: ") .. (trackTime/1000) ..loc("s") .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   246
                        loc("WINNING TIME: ") .. bestTimeComment, 0, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   247
                        PlaySound(sndHomerun)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   248
                else    -- best time for the clan
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   249
                        ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   250
                        loc("TRACK COMPLETED"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   251
                        loc("NEW CLAN RECORD: ") .. (trackTime/1000) ..loc("s") .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   252
                        loc("WINNING TIME: ") .. bestTimeComment, 4, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   253
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   254
        else -- not any kind of new score
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   255
                ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   256
                loc("TRACK COMPLETED"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   257
                loc("TIME: ") .. (trackTime/1000) ..loc("s") .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   258
                loc("WINNING TIME: ") .. bestTimeComment, -amSkip, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   259
                PlaySound(sndHellish)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   260
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   261
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   262
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   263
        --------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   264
        --new
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   265
        --------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   266
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   267
        if bestTime == trackTime then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   268
                --AddCaption("wooooooooooooooooooooooooooooo")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   269
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   270
                fastColour = GetClanColor(GetHogClan(CurrentHedgehog))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   271
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   272
                for i = 0, (currCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   273
                        fastX[i] = currX[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   274
                        fastY[i] = currY[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   275
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   276
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   277
                fastCount = currCount
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   278
                fastIndex = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   279
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   280
                --currCount = 0 -- is this needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   281
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   282
        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   283
                currCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   284
                fastIndex = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   285
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   286
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   287
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   288
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   289
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   290
function onNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   291
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   292
        roundNumber = roundNumber + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   293
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   294
        totalComment = ""
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   295
        for i = 0, (TeamsCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   296
                        if teamNameArr[i] ~= " " then                           -- teamScore[teamClan[i]]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   297
                                teamComment[i] = teamNameArr[i] .. ": " .. (teamScore[i]/1000) .. loc("s|")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   298
                                totalComment = totalComment .. teamComment[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   299
                        elseif teamNameArr[i] == " " then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   300
                                teamComment[i] = "|"
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   301
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   302
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   303
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   304
        ShowMission(    loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   305
                                        loc("STATUS UPDATE"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   306
                                        loc("Rounds Complete: ") .. roundNumber .. "/" .. roundLimit .. "|" .. " " .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   307
                                        loc("Best Team Times: ") .. "|" .. totalComment, 0, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   308
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   309
        -- end game if its at round limit
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   310
        if roundNumber >= roundLimit then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   311
                for i = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   312
                        if GetHogClan(hhs[i]) ~= bestClan then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   313
                                SetEffect(hhs[i], heResurrectable, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   314
                                SetHealth(hhs[i],0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   315
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   316
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   317
                gameOver = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   318
                TurnTimeLeft = 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   319
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   320
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   321
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   322
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   323
function CheckForNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   324
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   325
        -------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   326
        ------ new
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   327
        -------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   328
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   329
        --[[turnN = turnN + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   330
        if gameBegun == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   331
                if turnN == 2 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   332
                        for i = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   333
                                if hhs[i] ~= nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   334
                                        SetEffect(hhs[i], heResurrectable, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   335
                                        SetHealth(hhs[i],0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   336
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   337
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   338
                        gameOver = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   339
                        TurnTimeLeft = 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   340
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   341
        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   342
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   343
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   344
        end]]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   345
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   346
        --[[if roundBegun == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   347
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   348
                if RoundHasChanged == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   349
                        roundN = roundN + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   350
                        RoundHasChanged = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   351
                        onNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   352
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   353
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   354
                if lastRound ~= TotalRounds then -- new round, but not really
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   355
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   356
                        if RoundHasChanged == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   357
                                RoundHasChanged = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   358
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   359
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   360
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   361
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   362
                AddCaption("RoundN:" .. roundN .. "; " .. "TR: " .. TotalRounds)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   363
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   364
                lastRound = TotalRounds
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   365
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   366
        end]]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   367
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   368
        ------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   369
        ----- old
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   370
        ------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   371
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   372
        if GetHogClan(CurrentHedgehog) == firstClan then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   373
                onNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   374
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   375
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   376
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   377
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   378
function DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   379
        currCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   380
        fastIndex = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   381
        TurnTimeLeft = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   382
        racerActive = false -- newadd
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   383
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   384
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   385
function HandleGhost()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   386
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   387
        -- get the current xy of the racer at this point
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   388
        currX[currCount] = GetX(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   389
        currY[currCount] = GetY(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   390
        currCount = currCount + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   391
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   392
        -- draw a ping of smoke where the fastest player was at this point
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   393
        if (fastCount ~= 0) and (fastIndex < fastCount) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   394
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   395
                fastIndex = fastIndex + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   396
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   397
                tempE = AddVisualGear(fastX[fastIndex], fastY[fastIndex], vgtSmoke, 0, false)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   398
                g1, g2, g3, g4, g5, g6, g7, g8, g9, g10 = GetVisualGearValues(tempE)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   399
                SetVisualGearValues(tempE, g1, g2, g3, g4, g5, g6, g7, g8, g9, fastColour )
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   400
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   401
                --AddCaption("fC: " .. fastIndex .. " / " .. fastCount)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   402
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   403
        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   404
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   405
                --AddCaption("excep fC: " .. fastIndex .. " / " .. fastCount)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   406
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   407
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   408
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   409
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   410
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   411
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   412
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   413
function BoomGirder(x,y,rot)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   414
	girTime = 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   415
	if rot < 4 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   416
				AddGear(x, y, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   417
	elseif rot == 4 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   418
				g = AddGear(x-45, y, gtGrenade, 0, 0, 0, girTime) -- needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   419
				g = AddGear(x-30, y, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   420
				g = AddGear(x, y, gtGrenade, 0, 0, 0, girTime) -- needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   421
				g = AddGear(x+30, y, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   422
				g = AddGear(x+45, y, gtGrenade, 0, 0, 0, girTime) -- needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   423
	elseif rot == 5 then ------- diag
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   424
				g = AddGear(x+45, y+45, gtGrenade, 0, 0, 0, girTime) --n
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   425
				g = AddGear(x+30, y+30, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   426
				g = AddGear(x, y, gtGrenade, 0, 0, 0, girTime) -- needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   427
				g = AddGear(x-30, y-30, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   428
				g = AddGear(x-45, y-45, gtGrenade, 0, 0, 0, girTime) --n
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   429
	elseif rot == 6 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   430
				g = AddGear(x, y-45, gtGrenade, 0, 0, 0, girTime) -- needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   431
				g = AddGear(x, y+30, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   432
				g = AddGear(x, y, gtGrenade, 0, 0, 0, girTime) -- needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   433
				g = AddGear(x, y-30, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   434
				g = AddGear(x, y+45, gtGrenade, 0, 0, 0, girTime) -- needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   435
	elseif rot == 7 then -------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   436
				g = AddGear(x+45, y-45, gtGrenade, 0, 0, 0, girTime) --n
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   437
				g = AddGear(x+30, y-30, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   438
				g = AddGear(x, y, gtGrenade, 0, 0, 0, girTime) -- needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   439
				g = AddGear(x-30, y+30, gtGrenade, 0, 0, 0, girTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   440
				g = AddGear(x-45, y+45, gtGrenade, 0, 0, 0, girTime) --n
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   441
	end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   442
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   443
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   444
function RemoveGear(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   445
	if (isATrackedGear(gear) == true) and (GetGearType(gear) ~= gtHedgehog) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   446
		DeleteGear(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   447
	end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   448
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   449
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   450
function ClearMap()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   451
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   452
	runOnGears(RemoveGear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   453
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   454
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   455
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   456
function HandleFreshMapCreation()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   457
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   458
	-- the boom stage, boom girders, reset ammo, and delete other map objects
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   459
	if activationStage == 1 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   460
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   461
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   462
		ClearMap()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   463
		activationStage = activationStage + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   464
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   465
	-- the creation stage, place girders and needed gears, grant ammo
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   466
	elseif activationStage == 2 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   467
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   468
		-- these are from onParameters()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   469
		if mapID == "0" then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   470
			--AddCaption("zero")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   471
		elseif mapID == "1" then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   472
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   473
			--testmap1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   474
			------ GIRDER LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   475
			PlaceGirder(306, 530, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   476
			PlaceGirder(451, 474, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   477
			PlaceGirder(595, 531, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   478
			PlaceGirder(245, 679, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   479
			PlaceGirder(305, 822, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   480
			PlaceGirder(449, 887, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   481
			PlaceGirder(593, 825, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   482
			PlaceGirder(657, 681, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   483
			PlaceGirder(1063, 682, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   484
			PlaceGirder(1121, 532, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   485
			PlaceGirder(1266, 476, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   486
			PlaceGirder(1411, 535, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   487
			PlaceGirder(1472, 684, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   488
			PlaceGirder(1415, 828, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   489
			PlaceGirder(1271, 892, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   490
			PlaceGirder(1126, 827, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   491
			PlaceGirder(841, 1079, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   492
			PlaceGirder(709, 1153, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   493
			PlaceGirder(975, 1154, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   494
			PlaceGirder(653, 1265, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   495
			PlaceGirder(1021, 1266, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   496
			PlaceGirder(713, 1369, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   497
			PlaceGirder(960, 1371, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   498
			PlaceGirder(835, 1454, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   499
			PlaceGirder(185, 1617, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   500
			PlaceGirder(1317, 1399, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   501
			PlaceGirder(1711, 1811, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   502
			PlaceGirder(2087, 1424, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   503
			PlaceGirder(2373, 1804, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   504
			PlaceGirder(2646, 1434, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   505
			PlaceGirder(1876, 667, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   506
			PlaceGirder(1934, 517, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   507
			PlaceGirder(2079, 461, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   508
			PlaceGirder(2224, 519, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   509
			PlaceGirder(1935, 810, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   510
			PlaceGirder(2080, 875, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   511
			PlaceGirder(2224, 811, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   512
			PlaceGirder(2370, 582, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   513
			PlaceGirder(2370, 759, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   514
			PlaceGirder(2530, 582, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   515
			PlaceGirder(2690, 582, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   516
			PlaceGirder(2530, 759, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   517
			PlaceGirder(2690, 759, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   518
			PlaceGirder(2836, 634, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   519
			PlaceGirder(2835, 822, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   520
			PlaceGirder(2951, 751, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   521
			PlaceGirder(2950, 939, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   522
			PlaceGirder(2964, 1054, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   523
			PlaceGirder(2978, 1172, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   524
			PlaceGirder(3095, 1185, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   525
			PlaceGirder(3211, 1069, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   526
			PlaceGirder(3038, 843, 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   527
			PlaceGirder(3126, 825, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   528
			PlaceGirder(3271, 768, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   529
			PlaceGirder(3357, 1014, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   530
			PlaceGirder(3416, 826, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   531
			PlaceGirder(3454, 969, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   532
			PlaceGirder(3439, 369, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   533
			PlaceGirder(3500, 220, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   534
			PlaceGirder(3502, 513, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   535
			PlaceGirder(3646, 162, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   536
			PlaceGirder(3791, 224, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   537
			PlaceGirder(3851, 374, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   538
			PlaceGirder(3792, 518, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   539
			PlaceGirder(3994, 1731, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   540
			PlaceGirder(3877, 1848, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   541
			PlaceGirder(3789, 1942, 3)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   542
			PlaceGirder(3986, 1929, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   543
			PlaceGirder(2837, 1937, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   544
			PlaceGirder(2997, 1938, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   545
			PlaceGirder(3157, 1938, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   546
			PlaceGirder(1152, 1844, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   547
			PlaceGirder(1299, 1898, 5)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   548
			PlaceGirder(1005, 1900, 7)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   549
			PlaceGirder(3578, 575, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   550
			PlaceGirder(3714, 576, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   551
			PlaceGirder(3579, 740, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   552
			PlaceGirder(3714, 741, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   553
			PlaceGirder(3580, 903, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   554
			PlaceGirder(3715, 904, 6)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   555
			PlaceGirder(3552, 452, 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   556
			PlaceGirder(3528, 370, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   557
			PlaceGirder(3568, 297, 3)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   558
			PlaceGirder(3736, 455, 3)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   559
			PlaceGirder(3757, 378, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   560
			PlaceGirder(3725, 299, 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   561
			PlaceGirder(3646, 261, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   562
			PlaceGirder(3648, 997, 4)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   563
			PlaceGirder(3649, 1275, 2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   564
			PlaceGirder(3514, 1750, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   565
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   566
			------ RUBBER BAND LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   567
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   568
			------ LAND SPRITE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   569
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   570
			------ HEALTH CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   571
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   572
			------ AMMO CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   573
			tempG = SpawnAmmoCrate(1707, 1755, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   574
			tempG = SpawnAmmoCrate(3983, 1873, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   575
			tempG = SpawnAmmoCrate(184, 1561, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   576
			tempG = SpawnAmmoCrate(2644, 1378, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   577
			tempG = SpawnAmmoCrate(2914, 865, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   578
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   579
			------ MINE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   580
			SetTimer(AddGear(2340, 580, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   581
			SetTimer(AddGear(2399, 580, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   582
			SetTimer(AddGear(2448, 580, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   583
			SetTimer(AddGear(2517, 579, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   584
			SetTimer(AddGear(2575, 581, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   585
			SetTimer(AddGear(2647, 582, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   586
			SetTimer(AddGear(2720, 582, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   587
			SetTimer(AddGear(2760, 581, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   588
			SetTimer(AddGear(2331, 757, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   589
			SetTimer(AddGear(2409, 758, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   590
			SetTimer(AddGear(2477, 758, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   591
			SetTimer(AddGear(2545, 759, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   592
			SetTimer(AddGear(2613, 760, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   593
			SetTimer(AddGear(2679, 758, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   594
			SetTimer(AddGear(2744, 757, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   595
			SetTimer(AddGear(2813, 610, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   596
			SetTimer(AddGear(2855, 650, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   597
			SetTimer(AddGear(2887, 686, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   598
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   599
		elseif mapID == "2" then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   600
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   601
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   602
		-- land flags test map
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   603
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   604
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   605
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   606
				------ GIRDER LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   607
	PlaceSprite(335, 622, sprAmGirder, 16,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   608
	PlaceSprite(474, 569, sprAmGirder, 13,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   609
	PlaceSprite(343, 748, sprAmGirder, 14,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   610
	PlaceSprite(466, 756, sprAmGirder, 16,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   611
	PlaceSprite(609, 702, sprAmGirder, 13,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   612
	PlaceSprite(635, 570, sprAmGirder, 13,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   613
	PlaceSprite(770, 702, sprAmGirder, 13,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   614
	PlaceSprite(960, 730, sprAmGirder, 18,2048)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   615
	PlaceSprite(1061, 608, sprAmGirder, 16,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   616
	PlaceSprite(1207, 552, sprAmGirder, 13,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   617
	PlaceSprite(1205, 409, sprAmGirder, 13,16384)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   618
	PlaceSprite(2312, 637, sprAmGirder, 6,0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   619
	PlaceSprite(2312, 472, sprAmGirder, 6,0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   620
	PlaceSprite(2311, 308, sprAmGirder, 6,0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   621
	PlaceSprite(2292, 155, sprAmGirder, 6,0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   622
	PlaceSprite(727, 611, sprAmGirder, 6,0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   623
	PlaceSprite(1298, 480, sprAmGirder, 6,0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   624
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   625
	------ RUBBER BAND LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   626
	PlaceSprite(1411, 625, sprAmRubber, 1, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   627
	PlaceSprite(1525, 739, sprAmRubber, 1, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   628
	PlaceSprite(1638, 852, sprAmRubber, 1, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   629
	PlaceSprite(1754, 963, sprAmRubber, 1, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   630
	PlaceSprite(1870, 1076, sprAmRubber, 1, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   631
	PlaceSprite(2013, 1131, sprAmRubber, 0, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   632
	PlaceSprite(2159, 1070, sprAmRubber, 3, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   633
	PlaceSprite(2268, 952, sprAmRubber, 3, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   634
	PlaceSprite(2315, 802, sprAmRubber, 2, lfBouncy)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   635
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   636
	------ AMMO CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   637
	tempG = SpawnAmmoCrate(472, 711, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   638
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   639
	tempG = SpawnUtilityCrate(540, 660, amParachute)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   640
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   641
	tempG = SpawnAmmoCrate(1155, 528, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   642
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   643
	------ UTILITY CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   644
	tempG = SpawnUtilityCrate(2006, 1102, amRope)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   645
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   646
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   647
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   648
		else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   649
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   650
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   651
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   652
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   653
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   654
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   655
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   656
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   657
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   658
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   659
			-- first test epic multi map
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   660
			------ GIRDER LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   661
			PlaceSprite(430, 1871, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   662
			PlaceSprite(1249, 1914, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   663
			PlaceSprite(1394, 1849, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   664
			PlaceSprite(1522, 1848, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   665
			PlaceSprite(1578, 1959, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   666
			PlaceSprite(1545, 2011, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   667
			PlaceSprite(430, 1749, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   668
			PlaceSprite(430, 1589, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   669
			PlaceSprite(358, 1499, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   670
			PlaceSprite(198, 1499, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   671
			PlaceSprite(72, 1571, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   672
			PlaceSprite(339, 1618, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   673
			PlaceSprite(520, 1499, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   674
			PlaceSprite(680, 1499, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   675
			PlaceSprite(839, 1499, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   676
			PlaceSprite(1000, 1499, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   677
			PlaceSprite(1404, 1730, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   678
			PlaceSprite(1288, 1613, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   679
			PlaceSprite(1200, 1529, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   680
			PlaceSprite(1125, 1495, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   681
			PlaceSprite(1667, 2011, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   682
			PlaceSprite(1812, 1951, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   683
			PlaceSprite(1964, 2024, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   684
			PlaceSprite(1957, 1892, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   685
			PlaceSprite(2103, 1949, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   686
			PlaceSprite(2242, 2017, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   687
			PlaceSprite(2404, 2017, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   688
			PlaceSprite(2548, 1955, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   689
			PlaceSprite(2635, 1871, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   690
			PlaceSprite(2749, 1836, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   691
			PlaceSprite(2751, 1999, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   692
			PlaceSprite(2749, 1947, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   693
			PlaceSprite(2865, 1870, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   694
			PlaceSprite(2954, 1954, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   695
			PlaceSprite(3061, 2017, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   696
			PlaceSprite(3137, 1984, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   697
			PlaceSprite(3169, 1864, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   698
			PlaceSprite(3169, 1702, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   699
			PlaceSprite(3170, 1540, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   700
			PlaceSprite(3170, 1418, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   701
			PlaceSprite(3138, 1339, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   702
			PlaceSprite(3107, 1260, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   703
			PlaceSprite(3153, 1194, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   704
			PlaceSprite(3230, 1163, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   705
			PlaceSprite(3305, 1201, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   706
			PlaceSprite(3334, 1277, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   707
			PlaceSprite(3227, 1540, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   708
			PlaceSprite(3228, 1419, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   709
			PlaceSprite(3334, 1358, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   710
			PlaceSprite(3280, 1387, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   711
			PlaceSprite(3227, 1702, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   712
			PlaceSprite(3227, 1864, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   713
			PlaceSprite(3253, 1981, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   714
			PlaceSprite(3366, 2017, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   715
			PlaceSprite(3528, 2018, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   716
			PlaceSprite(3689, 2018, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   717
			PlaceSprite(246, 1262, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   718
			PlaceSprite(407, 1262, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   719
			PlaceSprite(568, 1262, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   720
			PlaceSprite(731, 1262, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   721
			PlaceSprite(894, 1261, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   722
			PlaceSprite(1056, 1261, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   723
			PlaceSprite(1179, 1262, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   724
			PlaceSprite(1288, 1314, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   725
			PlaceSprite(1406, 1433, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   726
			PlaceSprite(1525, 1549, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   727
			PlaceSprite(1642, 1666, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   728
			PlaceSprite(1749, 1728, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   729
			PlaceSprite(1956, 1802, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   730
			PlaceSprite(1956, 1640, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   731
			PlaceSprite(1782, 1638, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   732
			PlaceSprite(1835, 1487, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   733
			PlaceSprite(1942, 1430, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   734
			PlaceSprite(2051, 1486, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   735
			PlaceSprite(2109, 1639, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   736
			PlaceSprite(2177, 1778, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   737
			PlaceSprite(2323, 1840, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   738
			PlaceSprite(49, 1029, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   739
			PlaceSprite(499, 1172, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   740
			PlaceSprite(527, 1054, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   741
			PlaceSprite(604, 1026, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   742
			PlaceSprite(680, 1056, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   743
			PlaceSprite(719, 1168, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   744
			PlaceSprite(89, 728, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   745
			PlaceSprite(251, 728, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   746
			PlaceSprite(412, 728, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   747
			PlaceSprite(572, 728, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   748
			PlaceSprite(733, 728, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   749
			PlaceSprite(894, 728, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   750
			PlaceSprite(1016, 728, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   751
			PlaceSprite(1067, 799, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   752
			PlaceSprite(1139, 891, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   753
			PlaceSprite(1067, 1171, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   754
			PlaceSprite(1067, 1049, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   755
			PlaceSprite(1136, 999, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   756
			PlaceSprite(1005, 854, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   757
			PlaceSprite(972, 803, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   758
			PlaceSprite(920, 780, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   759
			PlaceSprite(891, 1206, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   760
			PlaceSprite(887, 1150, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   761
			PlaceSprite(3018, 1311, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   762
			PlaceSprite(2871, 1369, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   763
			PlaceSprite(2809, 1523, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   764
			PlaceSprite(2809, 1647, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   765
			PlaceSprite(2469, 1777, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   766
			PlaceSprite(2612, 1715, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   767
			PlaceSprite(2809, 1702, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   768
			PlaceSprite(2727, 1694, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   769
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   770
			PlaceSprite(3334, 1481, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   771
			PlaceSprite(3334, 1643, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   772
			PlaceSprite(3334, 1804, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   773
			PlaceSprite(3403, 1940, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   774
			PlaceSprite(1120, 944, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   775
			PlaceSprite(1163, 945, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   776
			PlaceSprite(1141, 781, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   777
			PlaceSprite(81, 629, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   778
			PlaceSprite(102, 498, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   779
			PlaceSprite(81, 373, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   780
			PlaceSprite(179, 453, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   781
			PlaceSprite(100, 260, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   782
			PlaceSprite(179, 330, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   783
			PlaceSprite(249, 544, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   784
			PlaceSprite(410, 545, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   785
			PlaceSprite(571, 543, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   786
			PlaceSprite(731, 543, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   787
			PlaceSprite(891, 544, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   788
			PlaceSprite(1014, 544, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   789
			PlaceSprite(1779, 1321, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   790
			PlaceSprite(1779, 1159, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   791
			PlaceSprite(1779, 997, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   792
			PlaceSprite(1779, 836, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   793
			PlaceSprite(1722, 684, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   794
			PlaceSprite(1137, 545, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   795
			PlaceSprite(1298, 545, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   796
			PlaceSprite(1460, 546, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   797
			PlaceSprite(1608, 600, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   798
			PlaceSprite(1508, 1005, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   799
			PlaceSprite(160, 246, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   800
			PlaceSprite(1821, 1356, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   801
			PlaceSprite(1938, 1323, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   802
			PlaceSprite(2086, 1381, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   803
			PlaceSprite(4004, 2018, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   804
			PlaceSprite(3934, 1926, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   805
			PlaceSprite(3965, 1835, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   806
			PlaceSprite(4015, 1763, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   807
			PlaceSprite(4015, 1603, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   808
			PlaceSprite(4015, 1442, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   809
			PlaceSprite(4015, 1280, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   810
			PlaceSprite(4014, 1118, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   811
			PlaceSprite(4014, 956, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   812
			PlaceSprite(4014, 793, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   813
			PlaceSprite(4014, 632, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   814
			PlaceSprite(4014, 469, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   815
			PlaceSprite(3981, 351, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   816
			PlaceSprite(3985, 204, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   817
			PlaceSprite(4045, 156, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   818
			PlaceSprite(3667, 344, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   819
			PlaceSprite(4016, 1925, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   820
			PlaceSprite(3998, 1926, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   821
			PlaceSprite(3980, 1925, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   822
			PlaceSprite(3957, 1926, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   823
			PlaceSprite(3843, 1832, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   824
			PlaceSprite(3682, 1832, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   825
			PlaceSprite(3561, 1833, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   826
			PlaceSprite(3484, 1796, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   827
			PlaceSprite(3455, 1675, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   828
			PlaceSprite(3455, 1513, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   829
			PlaceSprite(3455, 1351, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   830
			PlaceSprite(1601, 476, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   831
			PlaceSprite(1706, 421, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   832
			PlaceSprite(1888, 366, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   833
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   834
			PlaceSprite(3997, 1743, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   835
			PlaceSprite(3979, 1742, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   836
			PlaceSprite(3962, 1741, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   837
			PlaceSprite(3943, 1741, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   838
			PlaceSprite(2199, 393, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   839
			PlaceSprite(2304, 337, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   840
			PlaceSprite(2409, 392, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   841
			PlaceSprite(2470, 502, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   842
			PlaceSprite(2412, 606, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   843
			PlaceSprite(2308, 673, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   844
			PlaceSprite(2202, 612, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   845
			PlaceSprite(2138, 507, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   846
			PlaceSprite(2739, 378, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   847
			PlaceSprite(2847, 322, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   848
			PlaceSprite(2953, 378, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   849
			PlaceSprite(2680, 489, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   850
			PlaceSprite(3012, 489, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   851
			PlaceSprite(2736, 594, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   852
			PlaceSprite(2841, 657, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   853
			PlaceSprite(2949, 594, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   854
			PlaceSprite(2448, 837, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   855
			PlaceSprite(2594, 779, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   856
			PlaceSprite(2739, 836, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   857
			PlaceSprite(2390, 950, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   858
			PlaceSprite(2789, 950, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   859
			PlaceSprite(2593, 904, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   860
			PlaceSprite(2727, 1056, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   861
			PlaceSprite(2452, 1058, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   862
			PlaceSprite(2510, 1215, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   863
			PlaceSprite(2663, 1208, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   864
			PlaceSprite(2510, 1378, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   865
			PlaceSprite(2664, 1369, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   866
			PlaceSprite(300, 275, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   867
			PlaceSprite(439, 274, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   868
			PlaceSprite(628, 273, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   869
			PlaceSprite(811, 271, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   870
			PlaceSprite(737, 373, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   871
			PlaceSprite(934, 440, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   872
			PlaceSprite(1075, 439, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   873
			PlaceSprite(1209, 438, sprAmGirder, 0, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   874
			PlaceSprite(1383, 439, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   875
			--PlaceSprite(2159, 1525, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   876
			PlaceSprite(3547, 344, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   877
			PlaceSprite(3584, 254, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   878
			PlaceSprite(3508, 132, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   879
			PlaceSprite(3335, 1117, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   880
			PlaceSprite(3335, 956, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   881
			PlaceSprite(3335, 795, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   882
			PlaceSprite(3335, 634, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   883
			PlaceSprite(3335, 513, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   884
			PlaceSprite(3401, 404, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   885
			PlaceSprite(3455, 1190, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   886
			PlaceSprite(3455, 1029, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   887
			PlaceSprite(3455, 868, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   888
			PlaceSprite(3455, 705, sprAmGirder, 6, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   889
			PlaceSprite(3455, 582, sprAmGirder, 2, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   890
			PlaceSprite(3485, 503, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   891
			PlaceSprite(3601, 475, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   892
			PlaceSprite(3719, 444, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   893
			PlaceSprite(3094, 828, sprAmGirder, 5, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   894
			PlaceSprite(2064, 947, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   895
			PlaceSprite(1826, 512, sprAmGirder, 7, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   896
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   897
			PlaceSprite(3420, 49, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   898
			PlaceSprite(410, 682, sprAmGirder, 3, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   899
			PlaceSprite(528, 653, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   900
			PlaceSprite(688, 653, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   901
			PlaceSprite(805, 684, sprAmGirder, 1, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   902
			PlaceSprite(528, 672, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   903
			PlaceSprite(688, 672, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   904
			PlaceSprite(500, 696, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   905
			PlaceSprite(701, 696, sprAmGirder, 4, lfNormal)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   906
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   907
			------ AMMO CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   908
			tempG = SpawnAmmoCrate(889, 1126, amBaseballBat)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   909
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   910
			tempG = SpawnAmmoCrate(1211, 975, amSineGun)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   911
			tempG = SpawnAmmoCrate(3619, 451, amFirePunch)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   912
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   913
			------ UTILITY CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   914
			tempG = SpawnUtilityCrate(304, 1594, amRope)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   915
			tempG = SpawnUtilityCrate(1538, 1987, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   916
			tempG = SpawnUtilityCrate(1958, 2000, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   917
			tempG = SpawnUtilityCrate(2744, 1923, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   918
			tempG = SpawnUtilityCrate(3283, 1363, amParachute)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   919
			tempG = SpawnUtilityCrate(2749, 1812, amRope)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   920
			tempG = SpawnUtilityCrate(970, 779, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   921
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   922
			tempG = SpawnUtilityCrate(3284, 1332, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   923
			tempG = SpawnUtilityCrate(1082, 975, amBlowTorch)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   924
			tempG = SpawnUtilityCrate(1547, 981, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   925
			tempG = SpawnUtilityCrate(1707, 397, amRope)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   926
			tempG = SpawnUtilityCrate(2309, 649, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   927
			tempG = SpawnUtilityCrate(1116, 867, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   928
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   929
			------ AMMO CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   930
			tempG = SpawnAmmoCrate(2559, 880, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   931
			tempG = SpawnAmmoCrate(2630, 880, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   932
			tempG = SpawnAmmoCrate(1951, 1406, amGrenade)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   933
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   934
			------ UTILITY CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   935
			tempG = SpawnUtilityCrate(3536, 320, amBlowTorch)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   936
			tempG = SpawnUtilityCrate(3582, 1994, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   937
			tempG = SpawnUtilityCrate(682, 349, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   938
			tempG = SpawnUtilityCrate(2842, 633, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   939
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   940
			------ BARREL LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   941
			SetHealth(AddGear(506, 1034, gtExplosives, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   942
			SetHealth(AddGear(556, 1002, gtExplosives, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   943
			SetHealth(AddGear(615, 1002, gtExplosives, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   944
			SetHealth(AddGear(676, 1010, gtExplosives, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   945
			SetHealth(AddGear(716, 1050, gtExplosives, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   946
			SetHealth(AddGear(67, 1005, gtExplosives, 0, 0, 0, 0), 50)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   947
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   948
			------ MINE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   949
			SetTimer(AddGear(1187, 1908, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   950
			SetTimer(AddGear(1235, 1908, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   951
			SetTimer(AddGear(1283, 1908, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   952
			SetTimer(AddGear(1323, 1908, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   953
			SetTimer(AddGear(1361, 1875, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   954
			SetTimer(AddGear(1399, 1837, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   955
			SetTimer(AddGear(1426, 1810, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   956
			SetTimer(AddGear(234, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   957
			SetTimer(AddGear(308, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   958
			SetTimer(AddGear(377, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   959
			SetTimer(AddGear(460, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   960
			SetTimer(AddGear(550, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   961
			SetTimer(AddGear(633, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   962
			SetTimer(AddGear(722, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   963
			SetTimer(AddGear(795, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   964
			SetTimer(AddGear(881, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   965
			SetTimer(AddGear(975, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   966
			SetTimer(AddGear(1060, 1493, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   967
			SetTimer(AddGear(1127, 1489, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   968
			SetTimer(AddGear(1207, 1526, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   969
			SetTimer(AddGear(1261, 1580, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   970
			SetTimer(AddGear(1315, 1634, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   971
			SetTimer(AddGear(1372, 1692, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   972
			SetTimer(AddGear(1416, 1736, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   973
			SetTimer(AddGear(1465, 1792, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   974
			SetTimer(AddGear(1518, 1838, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   975
			SetTimer(AddGear(1566, 1886, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   976
			SetTimer(AddGear(1623, 2005, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   977
			SetTimer(AddGear(1686, 2005, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   978
			SetTimer(AddGear(1799, 1957, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   979
			SetTimer(AddGear(1839, 1917, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   980
			SetTimer(AddGear(1902, 1886, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   981
			SetTimer(AddGear(1933, 1886, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   982
			SetTimer(AddGear(2076, 1916, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   983
			SetTimer(AddGear(2138, 1978, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   984
			SetTimer(AddGear(2221, 2011, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   985
			SetTimer(AddGear(2305, 2011, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   986
			SetTimer(AddGear(2390, 2011, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   987
			SetTimer(AddGear(2578, 1918, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   988
			SetTimer(AddGear(2494, 2002, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   989
			SetTimer(AddGear(1758, 1728, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   990
			SetTimer(AddGear(1683, 1707, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   991
			SetTimer(AddGear(1635, 1657, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   992
			SetTimer(AddGear(1572, 1596, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   993
			SetTimer(AddGear(1517, 1542, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   994
			SetTimer(AddGear(1447, 1477, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   995
			SetTimer(AddGear(1401, 1432, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   996
			SetTimer(AddGear(1338, 1365, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   997
			SetTimer(AddGear(1290, 1310, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   998
			SetTimer(AddGear(1230, 1266, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   999
			SetTimer(AddGear(1149, 1260, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1000
			SetTimer(AddGear(1054, 1257, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1001
			SetTimer(AddGear(978, 1257, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1002
			SetTimer(AddGear(895, 1258, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1003
			SetTimer(AddGear(819, 1257, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1004
			SetTimer(AddGear(753, 1258, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1005
			SetTimer(AddGear(671, 1260, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1006
			SetTimer(AddGear(599, 1260, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1007
			SetTimer(AddGear(526, 1259, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1008
			SetTimer(AddGear(466, 1259, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1009
			SetTimer(AddGear(408, 1261, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1010
			SetTimer(AddGear(336, 1260, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1011
			SetTimer(AddGear(290, 1259, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1012
			SetTimer(AddGear(218, 1260, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1013
			SetTimer(AddGear(1777, 1263, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1014
			SetTimer(AddGear(1776, 1198, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1015
			SetTimer(AddGear(1778, 1141, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1016
			SetTimer(AddGear(1781, 1078, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1017
			SetTimer(AddGear(1778, 1027, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1018
			SetTimer(AddGear(1778, 985, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1019
			SetTimer(AddGear(1779, 925, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1020
			SetTimer(AddGear(1777, 882, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1021
			SetTimer(AddGear(4052, 2010, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1022
			SetTimer(AddGear(3965, 226, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1023
			SetTimer(AddGear(3962, 326, gtMine, 0, 0, 0, 0), 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1024
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1025
				------ STICKY MINE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1026
			tempG = AddGear(3170, 1907, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1027
			tempG = AddGear(3170, 1860, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1028
			tempG = AddGear(3169, 1809, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1029
			tempG = AddGear(3170, 1761, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1030
			tempG = AddGear(3170, 1711, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1031
			tempG = AddGear(3172, 1668, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1032
			tempG = AddGear(3170, 1624, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1033
			tempG = AddGear(3169, 1579, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1034
			tempG = AddGear(3171, 1526, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1035
			tempG = AddGear(3168, 1469, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1036
			tempG = AddGear(3171, 1418, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1037
			tempG = AddGear(3227, 1416, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1038
			tempG = AddGear(3226, 1465, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1039
			tempG = AddGear(3225, 1523, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1040
			tempG = AddGear(3224, 1576, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1041
			tempG = AddGear(3225, 1624, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1042
			tempG = AddGear(3228, 1667, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1043
			tempG = AddGear(3228, 1707, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1044
			tempG = AddGear(3230, 1757, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1045
			tempG = AddGear(3228, 1803, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1046
			tempG = AddGear(3229, 1856, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1047
			tempG = AddGear(3228, 1910, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1048
			tempG = AddGear(258, 534, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1049
			tempG = AddGear(329, 534, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1050
			tempG = AddGear(410, 535, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1051
			tempG = AddGear(482, 535, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1052
			tempG = AddGear(565, 533, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1053
			tempG = AddGear(670, 533, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1054
			tempG = AddGear(763, 533, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1055
			tempG = AddGear(858, 534, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1056
			tempG = AddGear(917, 534, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1057
			tempG = AddGear(1012, 534, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1058
			tempG = AddGear(1147, 535, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1059
			tempG = AddGear(1102, 535, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1060
			tempG = AddGear(1220, 535, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1061
			tempG = AddGear(1293, 535, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1062
			tempG = AddGear(1368, 535, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1063
			tempG = AddGear(1440, 536, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1064
			tempG = AddGear(223, 534, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1065
			tempG = AddGear(814, 534, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1066
			tempG = AddGear(3909, 1822, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1067
			tempG = AddGear(3867, 1822, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1068
			tempG = AddGear(3824, 1822, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1069
			tempG = AddGear(3784, 1822, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1070
			tempG = AddGear(3732, 1822, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1071
			tempG = AddGear(3682, 1822, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1072
			tempG = AddGear(3627, 1822, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1073
			tempG = AddGear(3557, 1823, gtSMine, 0, 0, 0, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1074
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1075
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1076
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1077
		activationStage = 200
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1078
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1079
		--runOnHogs(RestoreHog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1080
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1081
	end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1082
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1083
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1084
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1085
function TryRepositionHogs()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1086
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1087
        if MapHasBorder() == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1088
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1089
                for i = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1090
                        if hhs[i] ~= nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1091
                                SetGearPosition(hhs[i],GetX(hhs[i]), TopY-10)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1092
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1093
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1094
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1095
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1096
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1097
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1098
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1099
----------------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1100
-- GAME METHODS / EVENT HANDLERS
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1101
----------------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1102
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1103
function onParameters()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1104
    parseParams()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1105
	mapID = params["m"]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1106
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1107
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1108
function onGameInit()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1109
        --EnableGameFlags(gfInfAttack, gfInvulnerable)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1110
        EnableGameFlags(gfInfAttack, gfDisableWind)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1111
		DisableGameFlags(gfSolidLand)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1112
		CaseFreq = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1113
        TurnTime = 90000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1114
        WaterRise = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1115
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1116
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1117
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1118
function onGameStart()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1119
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1120
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1121
		trackTeams()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1122
		roundN = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1123
        lastRound = TotalRounds
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1124
        RoundHasChanged = false -- true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1125
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1126
        for i = 0, (specialPointsCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1127
                PlaceWayPoint(specialPointsX[i], specialPointsY[i])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1128
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1129
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1130
        RebuildTeamInfo()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1131
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1132
        ShowMission     (
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1133
                                loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1134
                                loc("a Hedgewars mini-game"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1135
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1136
                                loc("Build a track and race.") .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1137
                                loc("Round Limit:") .. " " .. roundLimit .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1138
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1139
                                "", 4, 4000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1140
                                )
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1141
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1142
        TryRepositionHogs()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1143
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1144
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1145
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1146
function PlaceWayPoint(x,y)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1147
    if not racerActive then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1148
        if wpCount == 0 or wpX[wpCount - 1] ~= x or wpY[wpCount - 1] ~= y then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1149
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1150
            wpX[wpCount] = x
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1151
            wpY[wpCount] = y
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1152
            wpCol[wpCount] = 0xffffffff
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1153
            wpCirc[wpCount] = AddVisualGear(wpX[wpCount],wpY[wpCount],vgtCircle,0,true)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1154
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1155
            SetVisualGearValues(wpCirc[wpCount], wpX[wpCount], wpY[wpCount], 20, 100, 1, 10, 0, wpRad, 5, wpCol[wpCount])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1156
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1157
            wpCount = wpCount + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1158
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1159
            AddCaption(loc("Waypoint placed.") .. " " .. loc("Available points remaining: ") .. (wpLimit-wpCount))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1160
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1161
    end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1162
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1163
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1164
function onSpecialPoint(x,y,flag)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1165
    specialPointsX[specialPointsCount] = x
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1166
    specialPointsY[specialPointsCount] = y
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1167
    specialPointsCount = specialPointsCount + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1168
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1169
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1170
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1171
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1172
function onNewTurn()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1173
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1174
        --runOnHogs(HideHog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1175
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1176
		CheckForNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1177
        TryRepositionHogs()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1178
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1179
        racerActive = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1180
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1181
		activationStage = 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1182
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1183
		--AddAmmo(CurrentHedgehog, amBazooka, 100)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1184
		--AddAmmo(CurrentHedgehog, amJetpack, 100)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1185
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1186
		--ClearMap()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1187
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1188
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1189
        trackTime = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1190
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1191
        currCount = 0 -- hopefully this solves problem
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1192
        AddAmmo(CurrentHedgehog, amAirAttack, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1193
        gTimer = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1194
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1195
        -- Set the waypoints to unactive on new round
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1196
        for i = 0,(wpCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1197
                wpActive[i] = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1198
                wpCol[i] = 0xffffffff
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1199
                SetVisualGearValues(wpCirc[i], wpX[i], wpY[i], 20, 100, 1, 10, 0, wpRad, 5, wpCol[i])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1200
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1201
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1202
        -- Handle Starting Stage of Game
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1203
        if (gameOver == false) and (gameBegun == false) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1204
                if wpCount >= 3 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1205
                        gameBegun = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1206
						--activationStage = 200
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1207
                        roundNumber = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1208
                        firstClan = GetHogClan(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1209
                        ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1210
                        loc("GAME BEGUN!!!"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1211
                        loc("Complete the track as fast as you can!"), 2, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1212
                else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1213
                        ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1214
                        loc("NOT ENOUGH WAYPOINTS"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1215
                        loc("Place more waypoints using the 'Air Attack' weapon."), 2, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1216
                        AddAmmo(CurrentHedgehog, amAirAttack, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1217
            ParseCommand("setweap " .. string.char(amAirAttack))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1218
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1219
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1220
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1221
        if gameOver == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1222
                gameBegun = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1223
                racerActive = false -- newadd
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1224
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1225
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1226
        AddAmmo(CurrentHedgehog, amTardis, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1227
        AddAmmo(CurrentHedgehog, amDrillStrike, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1228
        AddAmmo(CurrentHedgehog, amMineStrike, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1229
        AddAmmo(CurrentHedgehog, amNapalm, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1230
        AddAmmo(CurrentHedgehog, amPiano, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1231
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1232
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1233
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1234
function onGameTick20()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1235
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1236
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1237
		if jet ~= nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1238
			--SetHealth(jet, 2000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1239
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1240
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1241
        -- airstrike detected, convert this into a potential waypoint spot
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1242
        if cGear ~= nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1243
                x,y = GetGearPosition(cGear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1244
        if x > -9000 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1245
            x,y = GetGearTarget(cGear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1246
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1247
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1248
            if TestRectForObstacle(x-20, y-20, x+20, y+20, true) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1249
                AddCaption(loc("Please place the way-point in the open, within the map boundaries."))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1250
                PlaySound(sndDenied)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1251
            elseif (y > WaterLine-50) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1252
                AddCaption(loc("Please place the way-point further from the waterline."))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1253
                PlaySound(sndDenied)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1254
            else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1255
                PlaceWayPoint(x, y)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1256
                if wpCount == wpLimit then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1257
                    AddCaption(loc("Race complexity limit reached."))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1258
                    DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1259
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1260
            end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1261
        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1262
            DeleteGear(cGear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1263
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1264
        SetGearPosition(cGear, -10000, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1265
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1266
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1267
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1268
		if activationStage < 10 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1269
				HandleFreshMapCreation()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1270
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1271
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1272
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1273
        -- start the player tumbling with a boom once their turn has actually begun
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1274
        if racerActive == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1275
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1276
                if (TurnTimeLeft > 0) and (TurnTimeLeft ~= TurnTime) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1277
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1278
                        -- if the gamehas started put the player in the middle of the first
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1279
                        --waypoint that was placed
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1280
                        --if activationStage == 200 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1281
						if gameBegun == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1282
                                AddCaption(loc("Good to go!"))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1283
                                racerActive = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1284
                                trackTime = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1285
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1286
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1287
								SetGearPosition(CurrentHedgehog, wpX[0], wpY[0])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1288
                                --AddGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), gtGrenade, 0, 0, 0, 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1289
                                --SetGearVelocity(CurrentHedgehog,1000000,1000000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1290
								SetGearMessage(CurrentHedgehog,gmLeft)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1291
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1292
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1293
								FollowGear(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1294
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1295
                                HideMission()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1296
								activationStage = 201
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1297
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1298
						else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1299
                                -- still in placement mode
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1300
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1301
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1302
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1303
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1304
        elseif (activationStage == 201) and (TurnTimeLeft > 0) and (TurnTimeLeft ~= TurnTime) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1305
			SetGearMessage(CurrentHedgehog,0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1306
			activationStage = 202
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1307
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1308
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1309
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1310
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1311
        -- has the player started his tumbling spree?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1312
        if (CurrentHedgehog ~= nil) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1313
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1314
                --airstrike conversion used to be here
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1315
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1316
                -- if the RACE has started, show tracktimes and keep tabs on waypoints
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1317
                if (racerActive == true) and (activationStage == 202) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1318
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1319
                        --ghost
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1320
                        if GameTime%40 == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1321
                                HandleGhost()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1322
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1323
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1324
                        trackTime = trackTime + 20
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1325
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1326
                        if GameTime%100 == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1327
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1328
                if trackTime%1000 == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1329
                    AddCaption((trackTime/1000)..'.0',GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1330
                else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1331
                    AddCaption(trackTime/1000,GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1332
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1333
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1334
                                if (CheckWaypoints() == true) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1335
                                        AdjustScores()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1336
                                        DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1337
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1338
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1339
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1340
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1341
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1342
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1343
                -- if the player has expended his tunbling time, stop him tumbling
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1344
                if TurnTimeLeft <= 20 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1345
                        DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1346
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1347
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1348
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1349
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1350
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1351
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1352
function onGearResurrect(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1353
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1354
        AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1355
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1356
        if gear == CurrentHedgehog then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1357
                DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1358
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1359
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1360
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1361
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1362
function isATrackedGear(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1363
	if 	(GetGearType(gear) == gtHedgehog) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1364
		(GetGearType(gear) == gtGrenade) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1365
		(GetGearType(gear) == gtTarget) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1366
		(GetGearType(gear) == gtFlame) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1367
		(GetGearType(gear) == gtExplosives) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1368
		(GetGearType(gear) == gtMine) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1369
		(GetGearType(gear) == gtSMine) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1370
		(GetGearType(gear) == gtCase)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1371
	then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1372
		return(true)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1373
	else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1374
		return(false)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1375
	end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1376
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1377
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1378
function onGearAdd(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1379
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1380
        if isATrackedGear(gear) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1381
			trackGear(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1382
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1383
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1384
		if GetGearType(gear) == gtHedgehog then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1385
                hhs[numhhs] = gear
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1386
                numhhs = numhhs + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1387
                SetEffect(gear, heResurrectable, 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1388
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1389
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1390
        if GetGearType(gear) == gtAirAttack then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1391
                cGear = gear
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1392
        elseif GetGearType(gear) == gtJetpack then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1393
			jet = gear
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1394
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1395
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1396
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1397
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1398
function onGearDelete(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1399
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1400
        if isATrackedGear(gear) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1401
			trackDeletion(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1402
		elseif GetGearType(gear) == gtAirAttack then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1403
                cGear = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1404
        elseif GetGearType(gear) == gtJetpack then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1405
			jet = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1406
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1407
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1408
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1409
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1410
function onAttack()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1411
    at = GetCurAmmoType()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1412
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1413
    usedWeapons[at] = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1414
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1415
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1416
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1417