share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
author nemo
Wed, 08 Apr 2015 15:04:48 -0400
changeset 10897 8ea636ce120a
parent 10630 08d0cacf2aec
child 10914 69a0ad28ae8e
permissions -rw-r--r--
Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
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
------------------------------------------
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
     2
-- TECH RACER v0.2
10554
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
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
     5
--------------
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
     6
--0.2
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
     7
--------------
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
     8
-- should work better "out the box"
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
     9
-- changed map generation
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    10
-- put a hog limiter in place
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    11
-- removed parsecommand
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    12
-- fix one of the test maps
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    13
-- hopefully added some support for future official challenges etc
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    14
-- changed theme
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    15
-- minor cleanups?
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    16
10554
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
-- SCRIPT BEGINS
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    19
-----------------------------
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
HedgewarsScriptLoad("/Scripts/Locale.lua")
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    22
HedgewarsScriptLoad("/Scripts/OfficialChallenges.lua")
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    23
HedgewarsScriptLoad("/Scripts/Tracker.lua")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    24
HedgewarsScriptLoad("/Scripts/Params.lua")
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
------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    27
-- Got Variables?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    28
------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    29
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    30
local activationStage = 0
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
    31
local jet = nil
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    32
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    33
local fMod = 1000000 -- 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    34
local roundLimit = 3
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    35
local roundNumber = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    36
local firstClan = 10
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    37
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    38
local fastX = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    39
local fastY = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    40
local fastCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    41
local fastIndex = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    42
local fastColour
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    43
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    44
local currX = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    45
local currY = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    46
local currCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    47
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    48
local specialPointsX = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    49
local specialPointsY = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    50
local specialPointsCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    51
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    52
mapID = 22
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    53
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
-- hog and team tracking variales
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    56
--------------------------
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
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
    59
local hhs = {} -- store hedgehog gears
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
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
    62
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
    63
local teamClan = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    64
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
    65
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
    66
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    67
local teamComment = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    68
local teamScore = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    69
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    70
-------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    71
-- racer vars
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    72
--------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    73
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    74
local cGear = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    75
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    76
local bestClan = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    77
local bestTime = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    78
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    79
local gameBegun = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    80
local gameOver = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    81
local racerActive = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    82
local trackTime = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    83
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    84
local wpCirc = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    85
local wpX = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    86
local wpY = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    87
local wpCol = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    88
local wpActive = {}
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    89
local wpRad = 450 --75
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    90
local wpCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    91
local wpLimit = 8
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    92
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    93
local usedWeapons = {}
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
local roundN
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    96
local lastRound
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    97
local RoundHasChanged
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    98
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
    99
-------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   100
-- general methods
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   101
-------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   102
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   103
--function onPrecise()
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   104
--end
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   105
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   106
function RebuildTeamInfo()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   107
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
        -- 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
   110
        for i = 0, (TeamsCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   111
                teamNameArr[i] = " " -- = i
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   112
                teamSize[i] = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   113
                teamIndex[i] = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   114
                teamScore[i] = 100000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   115
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   116
        numTeams = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   117
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   118
        for i = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   119
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   120
                z = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   121
                unfinished = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   122
                while(unfinished == true) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   123
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   124
                        newTeam = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   125
                        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
   126
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   127
                        if tempHogTeamName == teamNameArr[z] then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   128
                                newTeam = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   129
                                unfinished = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   130
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   131
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   132
                        z = z + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   133
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   134
                        if z == TeamsCount then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   135
                                unfinished = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   136
                                if newTeam == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   137
                                        teamNameArr[numTeams] = tempHogTeamName
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   138
                                        numTeams = numTeams + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   139
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   140
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   141
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
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   144
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   145
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   146
        -- 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
   147
        for i = 0, (numTeams-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   148
                for z = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   149
                        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
   150
                                teamClan[i] = GetHogClan(hhs[z])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   151
                                if teamSize[i] == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   152
                                        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
   153
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   154
                                teamSize[i] = teamSize[i] + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   155
                                --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
   156
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   157
                end
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
        end
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
end
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
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   164
-----------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   165
-- RACER METHODS
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   166
-----------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   167
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   168
function CheckWaypoints()
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
        trackFinished = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   171
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   172
        for i = 0, (wpCount-1) do
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
                g1X, g1Y = GetGearPosition(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   175
                g2X, g2Y = wpX[i], wpY[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   176
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   177
                g1X = g1X - g2X
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   178
                g1Y = g1Y - g2Y
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   179
                dist = (g1X*g1X) + (g1Y*g1Y)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   180
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   181
                --if i == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   182
                --      AddCaption(dist .. "/" .. (wpRad*wpRad) )
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   183
                --end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   184
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   185
                NR = (48/100*wpRad)/2
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   186
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   187
                if dist < (NR*NR) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   188
                --if dist < (wpRad*wpRad) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   189
                        --AddCaption("howdy")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   190
                        wpActive[i] = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   191
                        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
   192
                        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
   193
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   194
                        wpRem = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   195
                        for k = 0, (wpCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   196
                                if wpActive[k] == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   197
                                        wpRem = wpRem + 1
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
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   200
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   201
                        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
   202
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   203
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   204
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   205
                if wpActive[i] == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   206
                        trackFinished = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   207
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   208
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   209
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   210
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   211
        return(trackFinished)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   212
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   213
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   214
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   215
function AdjustScores()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   216
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   217
        if bestTime == nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   218
                bestTime = 100000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   219
                bestClan = 10
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   220
                bestTimeComment = "N/A"
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   221
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   222
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   223
        newScore = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   224
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   225
        -- 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
   226
        for i = 0, (numTeams-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   227
                if teamClan[i] == GetHogClan(CurrentHedgehog) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   228
                        if trackTime < teamScore[i] then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   229
                                teamScore[i] = trackTime
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   230
                                newScore = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   231
                        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   232
                                newScore = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   233
                        end
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
        --bestTime = 100000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   238
        --bestClan = 10
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   239
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   240
        -- 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
   241
        for i = 0, (numTeams-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   242
                if teamScore[i] < bestTime then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   243
                        bestTime = teamScore[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   244
                        bestClan = teamClan[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   245
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   246
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   247
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   248
        if bestTime ~= 100000 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   249
                bestTimeComment = (bestTime/1000) ..loc("s")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   250
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   251
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   252
        if newScore == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   253
                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
   254
                        ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   255
                        loc("TRACK COMPLETED"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   256
                        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
   257
                        loc("WINNING TIME: ") .. bestTimeComment, 0, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   258
                        PlaySound(sndHomerun)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   259
                else    -- best time for the clan
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   260
                        ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   261
                        loc("TRACK COMPLETED"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   262
                        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
   263
                        loc("WINNING TIME: ") .. bestTimeComment, 4, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   264
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   265
        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
   266
                ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   267
                loc("TRACK COMPLETED"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   268
                loc("TIME: ") .. (trackTime/1000) ..loc("s") .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   269
                loc("WINNING TIME: ") .. bestTimeComment, -amSkip, 4000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   270
                PlaySound(sndHellish)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   271
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   272
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   273
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   274
        --------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   275
        --new
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
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   278
        if bestTime == trackTime then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   279
                --AddCaption("wooooooooooooooooooooooooooooo")
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   280
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   281
                fastColour = GetClanColor(GetHogClan(CurrentHedgehog))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   282
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   283
                for i = 0, (currCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   284
                        fastX[i] = currX[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   285
                        fastY[i] = currY[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   286
                end
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
                fastCount = currCount
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   289
                fastIndex = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   290
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   291
                --currCount = 0 -- is this needed?
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   292
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   293
        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   294
                currCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   295
                fastIndex = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   296
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   297
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   298
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   299
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   300
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   301
function onNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   302
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   303
        roundNumber = roundNumber + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   304
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   305
        totalComment = ""
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   306
        for i = 0, (TeamsCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   307
                        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
   308
                                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
   309
                                totalComment = totalComment .. teamComment[i]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   310
                        elseif teamNameArr[i] == " " then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   311
                                teamComment[i] = "|"
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   312
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   313
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   314
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   315
        ShowMission(    loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   316
                                        loc("STATUS UPDATE"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   317
                                        loc("Rounds Complete: ") .. roundNumber .. "/" .. roundLimit .. "|" .. " " .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   318
                                        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
   319
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   320
        -- 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
   321
        if roundNumber >= roundLimit then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   322
                for i = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   323
                        if GetHogClan(hhs[i]) ~= bestClan then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   324
                                SetEffect(hhs[i], heResurrectable, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   325
                                SetHealth(hhs[i],0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   326
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   327
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   328
                gameOver = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   329
                TurnTimeLeft = 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   330
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   331
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   332
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   333
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   334
function CheckForNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   335
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   336
        -------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   337
        ------ new
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   338
        -------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   339
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   340
        --[[turnN = turnN + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   341
        if gameBegun == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   342
                if turnN == 2 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   343
                        for i = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   344
                                if hhs[i] ~= nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   345
                                        SetEffect(hhs[i], heResurrectable, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   346
                                        SetHealth(hhs[i],0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   347
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   348
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   349
                        gameOver = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   350
                        TurnTimeLeft = 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   351
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   352
        else
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
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   355
        end]]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   356
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   357
        --[[if roundBegun == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   358
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   359
                if RoundHasChanged == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   360
                        roundN = roundN + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   361
                        RoundHasChanged = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   362
                        onNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   363
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   364
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   365
                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
   366
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   367
                        if RoundHasChanged == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   368
                                RoundHasChanged = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   369
                        end
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
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   372
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   373
                AddCaption("RoundN:" .. roundN .. "; " .. "TR: " .. TotalRounds)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   374
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   375
                lastRound = TotalRounds
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   376
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   377
        end]]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   378
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   379
        ------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   380
        ----- old
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   381
        ------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   382
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   383
        if GetHogClan(CurrentHedgehog) == firstClan then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   384
                onNewRound()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   385
        end
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
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   388
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   389
function DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   390
        currCount = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   391
        fastIndex = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   392
        TurnTimeLeft = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   393
        racerActive = false -- newadd
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   394
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   395
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   396
function HandleGhost()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   397
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   398
        -- 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
   399
        currX[currCount] = GetX(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   400
        currY[currCount] = GetY(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   401
        currCount = currCount + 1
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
        -- 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
   404
        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
   405
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   406
                fastIndex = fastIndex + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   407
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   408
                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
   409
                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
   410
                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
   411
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   412
                --AddCaption("fC: " .. fastIndex .. " / " .. fastCount)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   413
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   414
        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   415
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   416
                --AddCaption("excep fC: " .. fastIndex .. " / " .. fastCount)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   417
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   418
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   419
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   420
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   421
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   422
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   423
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   424
function BoomGirder(x,y,rot)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   425
	girTime = 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   426
	if rot < 4 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   427
				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
   428
	elseif rot == 4 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   429
				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
   430
				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
   431
				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
   432
				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
   433
				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
   434
	elseif rot == 5 then ------- diag
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   435
				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
   436
				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
   437
				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
   438
				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
   439
				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
   440
	elseif rot == 6 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   441
				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
   442
				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
   443
				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
   444
				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
   445
				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
   446
	elseif rot == 7 then -------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   447
				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
   448
				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
   449
				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
   450
				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
   451
				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
   452
	end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   453
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   454
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   455
function RemoveGear(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   456
	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
   457
		DeleteGear(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   458
	end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   459
end
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
function ClearMap()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   462
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   463
	runOnGears(RemoveGear)
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
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   466
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   467
function HandleFreshMapCreation()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   468
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   469
	-- 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
   470
	if activationStage == 1 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   471
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
		ClearMap()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   474
		activationStage = activationStage + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   475
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   476
	-- 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
   477
	elseif activationStage == 2 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   478
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   479
		-- these are from onParameters()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   480
		if mapID == "0" then
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   481
			--AddCaption("don't load any map")
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   482
		elseif mapID == "1" then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   483
10630
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   484
			--simple testmap
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   485
			------ GIRDER LIST ------
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   486
			PlaceSprite(306, 530, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   487
			PlaceSprite(451, 474, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   488
			PlaceSprite(595, 531, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   489
			PlaceSprite(245, 679, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   490
			PlaceSprite(305, 822, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   491
			PlaceSprite(449, 887, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   492
			PlaceSprite(593, 825, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   493
			PlaceSprite(657, 681, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   494
			PlaceSprite(1063, 682, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   495
			PlaceSprite(1121, 532, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   496
			PlaceSprite(1266, 476, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   497
			PlaceSprite(1411, 535, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   498
			PlaceSprite(1472, 684, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   499
			PlaceSprite(1415, 828, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   500
			PlaceSprite(1271, 892, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   501
			PlaceSprite(1126, 827, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   502
			PlaceSprite(841, 1079, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   503
			PlaceSprite(709, 1153, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   504
			PlaceSprite(975, 1154, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   505
			PlaceSprite(653, 1265, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   506
			PlaceSprite(1021, 1266, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   507
			PlaceSprite(713, 1369, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   508
			PlaceSprite(960, 1371, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   509
			PlaceSprite(835, 1454, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   510
			PlaceSprite(185, 1617, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   511
			PlaceSprite(1317, 1399, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   512
			PlaceSprite(1711, 1811, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   513
			PlaceSprite(2087, 1424, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   514
			PlaceSprite(2373, 1804, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   515
			PlaceSprite(2646, 1434, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   516
			PlaceSprite(1876, 667, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   517
			PlaceSprite(1934, 517, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   518
			PlaceSprite(2079, 461, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   519
			PlaceSprite(2224, 519, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   520
			PlaceSprite(1935, 810, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   521
			PlaceSprite(2080, 875, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   522
			PlaceSprite(2224, 811, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   523
			PlaceSprite(2370, 582, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   524
			PlaceSprite(2370, 759, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   525
			PlaceSprite(2530, 582, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   526
			PlaceSprite(2690, 582, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   527
			PlaceSprite(2530, 759, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   528
			PlaceSprite(2690, 759, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   529
			PlaceSprite(2836, 634, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   530
			PlaceSprite(2835, 822, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   531
			PlaceSprite(2951, 751, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   532
			PlaceSprite(2950, 939, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   533
			PlaceSprite(2964, 1054, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   534
			PlaceSprite(2978, 1172, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   535
			PlaceSprite(3095, 1185, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   536
			PlaceSprite(3211, 1069, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   537
			PlaceSprite(3038, 843, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   538
			PlaceSprite(3126, 825, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   539
			PlaceSprite(3271, 768, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   540
			PlaceSprite(3357, 1014, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   541
			PlaceSprite(3416, 826, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   542
			PlaceSprite(3454, 969, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   543
			PlaceSprite(3439, 369, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   544
			PlaceSprite(3500, 220, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   545
			PlaceSprite(3502, 513, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   546
			PlaceSprite(3646, 162, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   547
			PlaceSprite(3791, 224, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   548
			PlaceSprite(3851, 374, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   549
			PlaceSprite(3792, 518, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   550
			PlaceSprite(3994, 1731, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   551
			PlaceSprite(3877, 1848, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   552
			PlaceSprite(3789, 1942, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   553
			PlaceSprite(3986, 1929, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   554
			PlaceSprite(2837, 1937, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   555
			PlaceSprite(2997, 1938, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   556
			PlaceSprite(3157, 1938, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   557
			PlaceSprite(1152, 1844, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   558
			PlaceSprite(1299, 1898, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   559
			PlaceSprite(1005, 1900, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   560
			PlaceSprite(3578, 575, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   561
			PlaceSprite(3714, 576, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   562
			PlaceSprite(3579, 740, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   563
			PlaceSprite(3714, 741, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   564
			PlaceSprite(3580, 903, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   565
			PlaceSprite(3715, 904, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   566
			PlaceSprite(3552, 452, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   567
			PlaceSprite(3528, 370, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   568
			PlaceSprite(3568, 297, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   569
			PlaceSprite(3736, 455, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   570
			PlaceSprite(3757, 378, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   571
			PlaceSprite(3725, 299, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   572
			PlaceSprite(3646, 261, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   573
			PlaceSprite(3648, 997, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   574
			PlaceSprite(3649, 1275, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   575
			PlaceSprite(3514, 1750, sprAmGirder, 0)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   576
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   577
			------ AMMO CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   578
			tempG = SpawnAmmoCrate(1707, 1755, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   579
			tempG = SpawnAmmoCrate(3983, 1873, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   580
			tempG = SpawnAmmoCrate(184, 1561, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   581
			tempG = SpawnAmmoCrate(2644, 1378, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   582
			tempG = SpawnAmmoCrate(2914, 865, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   583
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   584
			------ MINE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   585
			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
   586
			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
   587
			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
   588
			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
   589
			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
   590
			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
   591
			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
   592
			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
   593
			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
   594
			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
   595
			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
   596
			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
   597
			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
   598
			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
   599
			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
   600
			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
   601
			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
   602
			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
   603
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   604
		elseif mapID == "2" then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   605
10630
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   606
			-- simple land flags test map
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   607
			------ GIRDER LIST ------
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   608
			PlaceSprite(335, 622, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   609
			PlaceSprite(474, 569, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   610
			PlaceSprite(343, 748, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   611
			PlaceSprite(466, 756, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   612
			PlaceSprite(609, 702, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   613
			PlaceSprite(635, 570, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   614
			PlaceSprite(770, 702, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   615
			PlaceSprite(960, 730, sprAmGirder, 18, nil, nil, nil, nil, 2048)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   616
			PlaceSprite(1061, 608, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   617
			PlaceSprite(1207, 552, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   618
			PlaceSprite(1205, 409, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   619
			PlaceSprite(2312, 637, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   620
			PlaceSprite(2312, 472, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   621
			PlaceSprite(2311, 308, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   622
			PlaceSprite(2292, 155, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   623
			PlaceSprite(727, 611, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   624
			PlaceSprite(1298, 480, sprAmGirder, 6)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   625
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   626
			------ RUBBER BAND LIST ------
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   627
			PlaceSprite(1411, 625, sprAmRubber, 1, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   628
			PlaceSprite(1525, 739, sprAmRubber, 1, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   629
			PlaceSprite(1638, 852, sprAmRubber, 1, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   630
			PlaceSprite(1754, 963, sprAmRubber, 1, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   631
			PlaceSprite(1870, 1076, sprAmRubber, 1, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   632
			PlaceSprite(2013, 1131, sprAmRubber, 0, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   633
			PlaceSprite(2159, 1070, sprAmRubber, 3, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   634
			PlaceSprite(2268, 952, sprAmRubber, 3, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   635
			PlaceSprite(2315, 802, sprAmRubber, 2, nil, nil, nil, nil, lfBouncy)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   636
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   637
			------ AMMO CRATE LIST ------
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   638
			tempG = SpawnAmmoCrate(472, 711, amBazooka)
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   639
			tempG = SpawnUtilityCrate(540, 660, amParachute)
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   640
			tempG = SpawnAmmoCrate(1155, 528, amBazooka)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   641
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   642
			------ UTILITY CRATE LIST ------
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
   643
			tempG = SpawnUtilityCrate(2006, 1102, amRope)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   644
10630
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   645
		elseif mapID == "3" then
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   646
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   647
			-- more detailed landflag test map
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   648
			------ GIRDER LIST ------
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   649
			PlaceSprite(396, 665, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   650
			PlaceSprite(619, 665, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   651
			PlaceSprite(696, 635, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   652
			PlaceSprite(319, 637, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   653
			PlaceSprite(268, 604, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   654
			PlaceSprite(746, 603, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   655
			PlaceSprite(325, 495, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   656
			PlaceSprite(689, 493, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   657
			PlaceSprite(504, 422, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   658
			PlaceSprite(595, 422, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   659
			PlaceSprite(412, 422, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   660
			PlaceSprite(320, 696, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   661
			PlaceSprite(249, 786, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   662
			PlaceSprite(249, 948, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   663
			PlaceSprite(191, 785, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   664
			PlaceSprite(191, 946, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   665
			PlaceSprite(191, 1107, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   666
			PlaceSprite(249, 1109, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   667
			PlaceSprite(130, 1251, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   668
			PlaceSprite(306, 1251, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   669
			PlaceSprite(72, 1360, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   670
			PlaceSprite(364, 1360, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   671
			PlaceSprite(132, 1462, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   672
			PlaceSprite(304, 1463, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   673
			PlaceSprite(182, 1616, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   674
			PlaceSprite(255, 1613, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   675
			PlaceSprite(217, 1796, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   676
			PlaceSprite(221, 1381, sprAmGirder, 0)--
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   677
			PlaceSprite(154, 669, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   678
			PlaceSprite(124, 553, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   679
			PlaceSprite(326, 467, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   680
			PlaceSprite(223, 592, sprAmGirder, 3)
10630
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   681
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   682
			PlaceSprite(638, 791, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   683
			PlaceSprite(752, 907, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   684
			PlaceSprite(866, 1022, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   685
			PlaceSprite(402, 1863, sprAmGirder, 18, nil, nil, nil, nil, 2048)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   686
			PlaceSprite(442, 1863, sprAmGirder, 22, nil, nil, nil, nil, 2048)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   687
			PlaceSprite(2067, 1945, sprAmGirder, 15, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   688
			PlaceSprite(2005, 1797, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   689
			PlaceSprite(1943, 1653, sprAmGirder, 15, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   690
			PlaceSprite(1999, 1504, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   691
			PlaceSprite(2143, 1445, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   692
			PlaceSprite(2288, 1503, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   693
			PlaceSprite(2432, 1565, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   694
			PlaceSprite(2593, 1565, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   695
			PlaceSprite(2752, 1565, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   696
			PlaceSprite(2206, 1949, sprAmGirder, 15, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   697
			PlaceSprite(2262, 1800, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   698
			PlaceSprite(2407, 1745, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   699
			PlaceSprite(2569, 1745, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   700
			PlaceSprite(2715, 1802, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   701
			PlaceSprite(2898, 1624, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   702
			PlaceSprite(3014, 1740, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   703
			PlaceSprite(2830, 1919, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   704
			PlaceSprite(3131, 1856, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   705
			PlaceSprite(3191, 1968, sprAmGirder, 11, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   706
			PlaceSprite(3264, 2021, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   707
			PlaceSprite(2840, 2006, sprAmGirder, 12, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   708
			PlaceSprite(1505, 395, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   709
			PlaceSprite(1445, 544, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   710
			PlaceSprite(1506, 686, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   711
			PlaceSprite(1650, 339, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   712
			PlaceSprite(1797, 397, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   713
			PlaceSprite(1857, 547, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   714
			PlaceSprite(1797, 688, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   715
			PlaceSprite(1652, 754, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   716
			PlaceSprite(3326, 863, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   717
			PlaceSprite(3474, 921, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   718
			PlaceSprite(3180, 921, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   719
			PlaceSprite(3120, 1071, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   720
			PlaceSprite(3183, 1214, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   721
			PlaceSprite(3536, 1071, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   722
			PlaceSprite(3480, 1214, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   723
			PlaceSprite(3330, 1279, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   724
			PlaceSprite(2502, 556, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   725
			PlaceSprite(2601, 634, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   726
			PlaceSprite(2616, 441, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   727
			PlaceSprite(2716, 519, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   728
			PlaceSprite(2756, 379, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   729
			PlaceSprite(2862, 466, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   730
			PlaceSprite(2918, 379, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   731
			PlaceSprite(3023, 467, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   732
			PlaceSprite(3080, 378, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   733
			PlaceSprite(3172, 527, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   734
			PlaceSprite(3232, 428, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   735
			PlaceSprite(3289, 647, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   736
			PlaceSprite(3350, 545, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   737
			PlaceSprite(3406, 764, sprAmGirder, 14, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   738
			PlaceSprite(3469, 556, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   739
			PlaceSprite(3616, 503, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   740
			PlaceSprite(3552, 828, sprAmGirder, 13, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   741
			PlaceSprite(3696, 763, sprAmGirder, 16, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   742
			PlaceSprite(3708, 575, sprAmGirder, 15, nil, nil, nil, nil, 16384)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   743
			PlaceSprite(3705, 680, sprAmGirder, 10, nil, nil, nil, nil, 16384)
10630
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   744
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   745
			PlaceSprite(1481, 1133, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   746
			PlaceSprite(1626, 1078, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   747
			PlaceSprite(1772, 1135, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   748
			PlaceSprite(1422, 1280, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   749
			PlaceSprite(1831, 1286, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   750
			PlaceSprite(1773, 1429, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   751
			PlaceSprite(1627, 1492, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   752
			PlaceSprite(1482, 1427, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   753
			PlaceSprite(587, 855, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   754
			PlaceSprite(425, 855, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   755
			PlaceSprite(302, 822, sprAmGirder, 1)
10630
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   756
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   757
			------ RUBBER BAND LIST ------
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   758
			PlaceSprite(505, 708, sprAmRubber, 0, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   759
			PlaceSprite(175, 451, sprAmRubber, 0, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   760
			PlaceSprite(822, 1693, sprAmRubber, 0, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   761
			PlaceSprite(982, 1691, sprAmRubber, 0, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   762
			PlaceSprite(1142, 1688, sprAmRubber, 0, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   763
			PlaceSprite(1302, 1684, sprAmRubber, 0, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   764
			PlaceSprite(1450, 1750, sprAmRubber, 1, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   765
			PlaceSprite(1566, 1860, sprAmRubber, 1, nil, nil, nil, nil, lfBouncy)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   766
			PlaceSprite(1680, 1973, sprAmRubber, 1, nil, nil, nil, nil, lfBouncy)
10630
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   767
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   768
			------ AMMO CRATE LIST ------
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   769
			tempG = SpawnAmmoCrate(324, 613, amFirePunch)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   770
			tempG = SpawnAmmoCrate(2361, 1721, amBazooka)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   771
			tempG = SpawnAmmoCrate(2430, 1721, amBazooka)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   772
			tempG = SpawnAmmoCrate(2510, 1721, amBazooka)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   773
			tempG = SpawnAmmoCrate(2581, 1721, amBazooka)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   774
			tempG = SpawnAmmoCrate(405, 1839, amSineGun)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   775
			tempG = SpawnAmmoCrate(481, 1839, amSineGun)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   776
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   777
			------ UTILITY CRATE LIST ------
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   778
			tempG = SpawnUtilityCrate(696, 611, amParachute)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   779
			tempG = SpawnUtilityCrate(825, 1664, amJetpack)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   780
			tempG = SpawnUtilityCrate(919, 1657, amJetpack)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   781
			tempG = SpawnUtilityCrate(1015, 1662, amJetpack)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   782
			tempG = SpawnUtilityCrate(1095, 1654, amJetpack)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   783
			tempG = SpawnUtilityCrate(1166, 1659, amJetpack)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   784
			tempG = SpawnUtilityCrate(1250, 1650, amJetpack)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   785
			tempG = SpawnUtilityCrate(1335, 1655, amJetpack)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   786
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   787
			------ MINE LIST ------
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   788
			SetTimer(AddGear(221, 1373, gtMine, 0, 0, 0, 0), 1)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   789
			SetTimer(AddGear(609, 661, gtMine, 0, 0, 0, 0), 3000)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   790
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   791
			------ STICKY MINE LIST ------
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   792
			tempG = AddGear(190, 756, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   793
			tempG = AddGear(191, 810, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   794
			tempG = AddGear(189, 868, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   795
			tempG = AddGear(190, 923, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   796
			tempG = AddGear(192, 984, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   797
			tempG = AddGear(192, 1045, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   798
			tempG = AddGear(189, 1097, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   799
			tempG = AddGear(192, 1159, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   800
			tempG = AddGear(248, 753, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   801
			tempG = AddGear(248, 808, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   802
			tempG = AddGear(249, 868, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   803
			tempG = AddGear(250, 921, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   804
			tempG = AddGear(246, 982, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   805
			tempG = AddGear(247, 1041, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   806
			tempG = AddGear(249, 1094, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   807
			tempG = AddGear(249, 1156, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   808
			tempG = AddGear(2571, 665, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   809
			tempG = AddGear(2614, 623, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   810
			tempG = AddGear(2658, 580, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   811
			tempG = AddGear(2704, 533, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   812
			tempG = AddGear(2751, 484, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   813
			tempG = AddGear(2830, 466, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   814
			tempG = AddGear(2912, 465, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   815
			tempG = AddGear(2992, 465, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   816
			tempG = AddGear(3072, 468, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   817
			tempG = AddGear(2465, 592, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   818
			tempG = AddGear(2518, 540, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   819
			tempG = AddGear(2580, 477, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   820
			tempG = AddGear(2635, 425, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   821
			tempG = AddGear(2713, 381, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   822
			tempG = AddGear(2796, 378, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   823
			tempG = AddGear(2892, 379, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   824
			tempG = AddGear(2988, 379, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   825
			tempG = AddGear(3061, 377, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   826
			tempG = AddGear(3136, 377, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   827
			tempG = AddGear(627, 770, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   828
			tempG = AddGear(661, 804, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   829
			tempG = AddGear(705, 850, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   830
			tempG = AddGear(754, 899, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   831
			tempG = AddGear(805, 950, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   832
			tempG = AddGear(850, 996, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   833
			tempG = AddGear(902, 1048, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   834
			tempG = AddGear(888, 1034, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   835
			tempG = AddGear(788, 933, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   836
			tempG = AddGear(839, 985, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   837
			tempG = AddGear(736, 881, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   838
			tempG = AddGear(686, 829, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   839
			tempG = AddGear(649, 792, gtSMine, 0, 0, 0, 0)
08d0cacf2aec Add another (test) map
mikade <redgrinner@gmail.com>
parents: 10611
diff changeset
   840
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   841
		else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   842
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   843
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   844
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   845
			-- first test epic multi map
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   846
			------ GIRDER LIST ------
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   847
			PlaceSprite(430, 1871, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   848
			PlaceSprite(1249, 1914, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   849
			PlaceSprite(1394, 1849, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   850
			PlaceSprite(1522, 1848, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   851
			PlaceSprite(1578, 1959, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   852
			PlaceSprite(1545, 2011, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   853
			PlaceSprite(430, 1749, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   854
			PlaceSprite(430, 1589, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   855
			PlaceSprite(358, 1499, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   856
			PlaceSprite(198, 1499, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   857
			PlaceSprite(72, 1571, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   858
			PlaceSprite(339, 1618, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   859
			PlaceSprite(520, 1499, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   860
			PlaceSprite(680, 1499, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   861
			PlaceSprite(839, 1499, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   862
			PlaceSprite(1000, 1499, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   863
			PlaceSprite(1404, 1730, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   864
			PlaceSprite(1288, 1613, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   865
			PlaceSprite(1200, 1529, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   866
			PlaceSprite(1125, 1495, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   867
			PlaceSprite(1667, 2011, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   868
			PlaceSprite(1812, 1951, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   869
			PlaceSprite(1964, 2024, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   870
			PlaceSprite(1957, 1892, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   871
			PlaceSprite(2103, 1949, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   872
			PlaceSprite(2242, 2017, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   873
			PlaceSprite(2404, 2017, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   874
			PlaceSprite(2548, 1955, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   875
			PlaceSprite(2635, 1871, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   876
			PlaceSprite(2749, 1836, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   877
			PlaceSprite(2751, 1999, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   878
			PlaceSprite(2749, 1947, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   879
			PlaceSprite(2865, 1870, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   880
			PlaceSprite(2954, 1954, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   881
			PlaceSprite(3061, 2017, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   882
			PlaceSprite(3137, 1984, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   883
			PlaceSprite(3169, 1864, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   884
			PlaceSprite(3169, 1702, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   885
			PlaceSprite(3170, 1540, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   886
			PlaceSprite(3170, 1418, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   887
			PlaceSprite(3138, 1339, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   888
			PlaceSprite(3107, 1260, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   889
			PlaceSprite(3153, 1194, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   890
			PlaceSprite(3230, 1163, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   891
			PlaceSprite(3305, 1201, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   892
			PlaceSprite(3334, 1277, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   893
			PlaceSprite(3227, 1540, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   894
			PlaceSprite(3228, 1419, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   895
			PlaceSprite(3334, 1358, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   896
			PlaceSprite(3280, 1387, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   897
			PlaceSprite(3227, 1702, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   898
			PlaceSprite(3227, 1864, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   899
			PlaceSprite(3253, 1981, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   900
			PlaceSprite(3366, 2017, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   901
			PlaceSprite(3528, 2018, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   902
			PlaceSprite(3689, 2018, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   903
			PlaceSprite(246, 1262, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   904
			PlaceSprite(407, 1262, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   905
			PlaceSprite(568, 1262, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   906
			PlaceSprite(731, 1262, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   907
			PlaceSprite(894, 1261, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   908
			PlaceSprite(1056, 1261, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   909
			PlaceSprite(1179, 1262, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   910
			PlaceSprite(1288, 1314, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   911
			PlaceSprite(1406, 1433, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   912
			PlaceSprite(1525, 1549, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   913
			PlaceSprite(1642, 1666, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   914
			PlaceSprite(1749, 1728, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   915
			PlaceSprite(1956, 1802, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   916
			PlaceSprite(1956, 1640, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   917
			PlaceSprite(1782, 1638, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   918
			PlaceSprite(1835, 1487, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   919
			PlaceSprite(1942, 1430, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   920
			PlaceSprite(2051, 1486, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   921
			PlaceSprite(2109, 1639, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   922
			PlaceSprite(2177, 1778, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   923
			PlaceSprite(2323, 1840, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   924
			PlaceSprite(49, 1029, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   925
			PlaceSprite(499, 1172, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   926
			PlaceSprite(527, 1054, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   927
			PlaceSprite(604, 1026, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   928
			PlaceSprite(680, 1056, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   929
			PlaceSprite(719, 1168, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   930
			PlaceSprite(89, 728, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   931
			PlaceSprite(251, 728, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   932
			PlaceSprite(412, 728, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   933
			PlaceSprite(572, 728, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   934
			PlaceSprite(733, 728, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   935
			PlaceSprite(894, 728, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   936
			PlaceSprite(1016, 728, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   937
			PlaceSprite(1067, 799, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   938
			PlaceSprite(1139, 891, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   939
			PlaceSprite(1067, 1171, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   940
			PlaceSprite(1067, 1049, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   941
			PlaceSprite(1136, 999, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   942
			PlaceSprite(1005, 854, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   943
			PlaceSprite(972, 803, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   944
			PlaceSprite(920, 780, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   945
			PlaceSprite(891, 1206, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   946
			PlaceSprite(887, 1150, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   947
			PlaceSprite(3018, 1311, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   948
			PlaceSprite(2871, 1369, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   949
			PlaceSprite(2809, 1523, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   950
			PlaceSprite(2809, 1647, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   951
			PlaceSprite(2469, 1777, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   952
			PlaceSprite(2612, 1715, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   953
			PlaceSprite(2809, 1702, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   954
			PlaceSprite(2727, 1694, sprAmGirder, 0)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
   955
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   956
			PlaceSprite(3334, 1481, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   957
			PlaceSprite(3334, 1643, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   958
			PlaceSprite(3334, 1804, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   959
			PlaceSprite(3403, 1940, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   960
			PlaceSprite(1120, 944, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   961
			PlaceSprite(1163, 945, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   962
			PlaceSprite(1141, 781, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   963
			PlaceSprite(81, 629, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   964
			PlaceSprite(102, 498, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   965
			PlaceSprite(81, 373, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   966
			PlaceSprite(179, 453, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   967
			PlaceSprite(100, 260, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   968
			PlaceSprite(179, 330, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   969
			PlaceSprite(249, 544, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   970
			PlaceSprite(410, 545, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   971
			PlaceSprite(571, 543, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   972
			PlaceSprite(731, 543, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   973
			PlaceSprite(891, 544, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   974
			PlaceSprite(1014, 544, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   975
			PlaceSprite(1779, 1321, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   976
			PlaceSprite(1779, 1159, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   977
			PlaceSprite(1779, 997, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   978
			PlaceSprite(1779, 836, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   979
			PlaceSprite(1722, 684, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   980
			PlaceSprite(1137, 545, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   981
			PlaceSprite(1298, 545, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   982
			PlaceSprite(1460, 546, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   983
			PlaceSprite(1608, 600, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   984
			PlaceSprite(1508, 1005, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   985
			PlaceSprite(160, 246, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   986
			PlaceSprite(1821, 1356, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   987
			PlaceSprite(1938, 1323, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   988
			PlaceSprite(2086, 1381, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   989
			PlaceSprite(4004, 2018, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   990
			PlaceSprite(3934, 1926, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   991
			PlaceSprite(3965, 1835, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   992
			PlaceSprite(4015, 1763, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   993
			PlaceSprite(4015, 1603, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   994
			PlaceSprite(4015, 1442, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   995
			PlaceSprite(4015, 1280, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   996
			PlaceSprite(4014, 1118, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   997
			PlaceSprite(4014, 956, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   998
			PlaceSprite(4014, 793, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
   999
			PlaceSprite(4014, 632, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1000
			PlaceSprite(4014, 469, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1001
			PlaceSprite(3981, 351, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1002
			PlaceSprite(3985, 204, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1003
			PlaceSprite(4045, 156, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1004
			PlaceSprite(3667, 344, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1005
			PlaceSprite(4016, 1925, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1006
			PlaceSprite(3998, 1926, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1007
			PlaceSprite(3980, 1925, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1008
			PlaceSprite(3957, 1926, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1009
			PlaceSprite(3843, 1832, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1010
			PlaceSprite(3682, 1832, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1011
			PlaceSprite(3561, 1833, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1012
			PlaceSprite(3484, 1796, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1013
			PlaceSprite(3455, 1675, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1014
			PlaceSprite(3455, 1513, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1015
			PlaceSprite(3455, 1351, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1016
			PlaceSprite(1601, 476, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1017
			PlaceSprite(1706, 421, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1018
			PlaceSprite(1888, 366, sprAmGirder, 6)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1019
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1020
			PlaceSprite(3997, 1743, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1021
			PlaceSprite(3979, 1742, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1022
			PlaceSprite(3962, 1741, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1023
			PlaceSprite(3943, 1741, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1024
			PlaceSprite(2199, 393, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1025
			PlaceSprite(2304, 337, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1026
			PlaceSprite(2409, 392, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1027
			PlaceSprite(2470, 502, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1028
			PlaceSprite(2412, 606, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1029
			PlaceSprite(2308, 673, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1030
			PlaceSprite(2202, 612, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1031
			PlaceSprite(2138, 507, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1032
			PlaceSprite(2739, 378, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1033
			PlaceSprite(2847, 322, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1034
			PlaceSprite(2953, 378, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1035
			PlaceSprite(2680, 489, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1036
			PlaceSprite(3012, 489, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1037
			PlaceSprite(2736, 594, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1038
			PlaceSprite(2841, 657, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1039
			PlaceSprite(2949, 594, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1040
			PlaceSprite(2448, 837, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1041
			PlaceSprite(2594, 779, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1042
			PlaceSprite(2739, 836, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1043
			PlaceSprite(2390, 950, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1044
			PlaceSprite(2789, 950, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1045
			PlaceSprite(2593, 904, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1046
			PlaceSprite(2727, 1056, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1047
			PlaceSprite(2452, 1058, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1048
			PlaceSprite(2510, 1215, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1049
			PlaceSprite(2663, 1208, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1050
			PlaceSprite(2510, 1378, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1051
			PlaceSprite(2664, 1369, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1052
			PlaceSprite(300, 275, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1053
			PlaceSprite(439, 274, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1054
			PlaceSprite(628, 273, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1055
			PlaceSprite(811, 271, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1056
			PlaceSprite(737, 373, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1057
			PlaceSprite(934, 440, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1058
			PlaceSprite(1075, 439, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1059
			PlaceSprite(1209, 438, sprAmGirder, 0)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1060
			PlaceSprite(1383, 439, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1061
			--PlaceSprite(2159, 1525, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1062
			PlaceSprite(3547, 344, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1063
			PlaceSprite(3584, 254, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1064
			PlaceSprite(3508, 132, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1065
			PlaceSprite(3335, 1117, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1066
			PlaceSprite(3335, 956, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1067
			PlaceSprite(3335, 795, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1068
			PlaceSprite(3335, 634, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1069
			PlaceSprite(3335, 513, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1070
			PlaceSprite(3401, 404, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1071
			PlaceSprite(3455, 1190, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1072
			PlaceSprite(3455, 1029, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1073
			PlaceSprite(3455, 868, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1074
			PlaceSprite(3455, 705, sprAmGirder, 6)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1075
			PlaceSprite(3455, 582, sprAmGirder, 2)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1076
			PlaceSprite(3485, 503, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1077
			PlaceSprite(3601, 475, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1078
			PlaceSprite(3719, 444, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1079
			PlaceSprite(3094, 828, sprAmGirder, 5)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1080
			PlaceSprite(2064, 947, sprAmGirder, 7)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1081
			PlaceSprite(1826, 512, sprAmGirder, 7)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1082
10897
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1083
			PlaceSprite(3420, 49, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1084
			PlaceSprite(410, 682, sprAmGirder, 3)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1085
			PlaceSprite(528, 653, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1086
			PlaceSprite(688, 653, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1087
			PlaceSprite(805, 684, sprAmGirder, 1)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1088
			PlaceSprite(528, 672, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1089
			PlaceSprite(688, 672, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1090
			PlaceSprite(500, 696, sprAmGirder, 4)
8ea636ce120a Add options to set colouring, behind existing land, and horizontal/vertical flipping to PlaceSprite
nemo
parents: 10630
diff changeset
  1091
			PlaceSprite(701, 696, sprAmGirder, 4)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1092
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1093
			------ AMMO CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1094
			tempG = SpawnAmmoCrate(889, 1126, amBaseballBat)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1095
			tempG = SpawnAmmoCrate(1211, 975, amSineGun)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1096
			tempG = SpawnAmmoCrate(3619, 451, amFirePunch)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1097
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1098
			------ UTILITY CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1099
			tempG = SpawnUtilityCrate(304, 1594, amRope)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1100
			tempG = SpawnUtilityCrate(1538, 1987, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1101
			tempG = SpawnUtilityCrate(1958, 2000, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1102
			tempG = SpawnUtilityCrate(2744, 1923, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1103
			tempG = SpawnUtilityCrate(3283, 1363, amParachute)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1104
			tempG = SpawnUtilityCrate(2749, 1812, amRope)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1105
			tempG = SpawnUtilityCrate(970, 779, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1106
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1107
			tempG = SpawnUtilityCrate(3284, 1332, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1108
			tempG = SpawnUtilityCrate(1082, 975, amBlowTorch)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1109
			tempG = SpawnUtilityCrate(1547, 981, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1110
			tempG = SpawnUtilityCrate(1707, 397, amRope)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1111
			tempG = SpawnUtilityCrate(2309, 649, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1112
			tempG = SpawnUtilityCrate(1116, 867, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1113
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1114
			------ AMMO CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1115
			tempG = SpawnAmmoCrate(2559, 880, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1116
			tempG = SpawnAmmoCrate(2630, 880, amBazooka)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1117
			tempG = SpawnAmmoCrate(1951, 1406, amGrenade)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1118
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1119
			------ UTILITY CRATE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1120
			tempG = SpawnUtilityCrate(3536, 320, amBlowTorch)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1121
			tempG = SpawnUtilityCrate(3582, 1994, amJetpack)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1122
			tempG = SpawnUtilityCrate(682, 349, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1123
			tempG = SpawnUtilityCrate(2842, 633, amExtraTime)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1124
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1125
			------ BARREL LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1126
			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
  1127
			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
  1128
			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
  1129
			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
  1130
			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
  1131
			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
  1132
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1133
			------ MINE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1134
			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
  1135
			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
  1136
			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
  1137
			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
  1138
			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
  1139
			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
  1140
			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
  1141
			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
  1142
			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
  1143
			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
  1144
			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
  1145
			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
  1146
			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
  1147
			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
  1148
			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
  1149
			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
  1150
			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
  1151
			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
  1152
			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
  1153
			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
  1154
			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
  1155
			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
  1156
			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
  1157
			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
  1158
			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
  1159
			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
  1160
			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
  1161
			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
  1162
			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
  1163
			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
  1164
			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
  1165
			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
  1166
			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
  1167
			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
  1168
			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
  1169
			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
  1170
			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
  1171
			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
  1172
			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
  1173
			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
  1174
			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
  1175
			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
  1176
			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
  1177
			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
  1178
			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
  1179
			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
  1180
			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
  1181
			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
  1182
			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
  1183
			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
  1184
			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
  1185
			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
  1186
			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
  1187
			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
  1188
			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
  1189
			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
  1190
			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
  1191
			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
  1192
			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
  1193
			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
  1194
			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
  1195
			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
  1196
			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
  1197
			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
  1198
			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
  1199
			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
  1200
			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
  1201
			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
  1202
			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
  1203
			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
  1204
			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
  1205
			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
  1206
			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
  1207
			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
  1208
			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
  1209
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1210
				------ STICKY MINE LIST ------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1211
			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
  1212
			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
  1213
			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
  1214
			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
  1215
			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
  1216
			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
  1217
			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
  1218
			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
  1219
			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
  1220
			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
  1221
			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
  1222
			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
  1223
			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
  1224
			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
  1225
			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
  1226
			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
  1227
			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
  1228
			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
  1229
			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
  1230
			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
  1231
			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
  1232
			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
  1233
			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
  1234
			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
  1235
			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
  1236
			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
  1237
			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
  1238
			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
  1239
			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
  1240
			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
  1241
			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
  1242
			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
  1243
			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
  1244
			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
  1245
			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
  1246
			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
  1247
			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
  1248
			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
  1249
			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
  1250
			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
  1251
			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
  1252
			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
  1253
			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
  1254
			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
  1255
			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
  1256
			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
  1257
			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
  1258
			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
  1259
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1260
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1261
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1262
		activationStage = 200
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1263
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1264
		--runOnHogs(RestoreHog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1265
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1266
	end
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
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1269
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1270
function TryRepositionHogs()
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
        if MapHasBorder() == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1273
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1274
                for i = 0, (numhhs-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1275
                        if hhs[i] ~= nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1276
                                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
  1277
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1278
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1279
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1280
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1281
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1282
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1283
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1284
----------------------------------
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1285
-- GAME METHODS / EVENT HANDLERS
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
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1288
function onParameters()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1289
    parseParams()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1290
	mapID = params["m"]
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1291
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1292
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1293
function onPreviewInit()
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1294
	onGameInit()
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1295
end
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1296
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1297
function onGameInit()
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1298
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1299
		Theme = "Cave"
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1300
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1301
		MapGen = mgDrawn
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1302
		TemplateFilter = 0
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1303
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1304
		EnableGameFlags(gfInfAttack, gfDisableWind)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1305
		DisableGameFlags(gfSolidLand)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1306
		CaseFreq = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1307
        TurnTime = 90000
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1308
        WaterRise = 0
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1309
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1310
		for x = 1, 16 do
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1311
			AddPoint(x*100,100,5)
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1312
		end
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1313
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1314
		FlushPoints()
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1315
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1316
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1317
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1318
function limitHogs(gear)
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1319
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1320
	cnthhs = cnthhs + 1
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1321
	if cnthhs > 1 then
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1322
		DeleteGear(gear)
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1323
    end
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1324
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1325
end
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1326
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1327
function onGameStart()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1328
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1329
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1330
		trackTeams()
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1331
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1332
		roundN = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1333
        lastRound = TotalRounds
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1334
        RoundHasChanged = false -- true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1335
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1336
        for i = 0, (specialPointsCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1337
                PlaceWayPoint(specialPointsX[i], specialPointsY[i])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1338
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1339
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1340
        RebuildTeamInfo()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1341
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1342
		for i=0 , TeamsCount - 1 do
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1343
			cnthhs = 0
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1344
			runOnHogsInTeam(limitHogs, teamNameArr[i])
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1345
		end
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1346
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1347
        ShowMission     (
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1348
                                loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1349
                                loc("a Hedgewars mini-game"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1350
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1351
                                loc("Build a track and race.") .. "|" ..
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1352
                                loc("Round Limit:") .. " " .. roundLimit .. "|" ..
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
                                "", 4, 4000
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
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1357
        TryRepositionHogs()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1358
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1359
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1360
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1361
function PlaceWayPoint(x,y)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1362
    if not racerActive then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1363
        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
  1364
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1365
            wpX[wpCount] = x
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1366
            wpY[wpCount] = y
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1367
            wpCol[wpCount] = 0xffffffff
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1368
            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
  1369
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1370
            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
  1371
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1372
            wpCount = wpCount + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1373
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1374
            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
  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
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1378
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1379
function onSpecialPoint(x,y,flag)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1380
    specialPointsX[specialPointsCount] = x
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1381
    specialPointsY[specialPointsCount] = y
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1382
    specialPointsCount = specialPointsCount + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1383
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1384
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1385
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1386
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1387
function onNewTurn()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1388
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1389
        CheckForNewRound()
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1390
        TryRepositionHogs()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1391
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1392
        racerActive = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1393
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1394
		activationStage = 1
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
		--AddAmmo(CurrentHedgehog, amBazooka, 100)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1397
		--AddAmmo(CurrentHedgehog, amJetpack, 100)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1398
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1399
		--ClearMap()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1400
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1401
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1402
        trackTime = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1403
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1404
        currCount = 0 -- hopefully this solves problem
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1405
        AddAmmo(CurrentHedgehog, amAirAttack, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1406
        gTimer = 0
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
        -- 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
  1409
        for i = 0,(wpCount-1) do
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1410
                wpActive[i] = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1411
                wpCol[i] = 0xffffffff
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1412
                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
  1413
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1414
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1415
        -- Handle Starting Stage of Game
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1416
        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
  1417
                if wpCount >= 3 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1418
                        gameBegun = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1419
						--activationStage = 200
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1420
                        roundNumber = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1421
                        firstClan = GetHogClan(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1422
                        ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1423
                        loc("GAME BEGUN!!!"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1424
                        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
  1425
                else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1426
                        ShowMission(loc("RACER"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1427
                        loc("NOT ENOUGH WAYPOINTS"),
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1428
                        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
  1429
                        AddAmmo(CurrentHedgehog, amAirAttack, 4000)
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1430
						SetWeapon(amAirAttack)
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1431
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1432
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1433
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1434
        if gameOver == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1435
                gameBegun = false
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1436
                racerActive = false -- newadd
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1437
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1438
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1439
        AddAmmo(CurrentHedgehog, amTardis, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1440
        AddAmmo(CurrentHedgehog, amDrillStrike, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1441
        AddAmmo(CurrentHedgehog, amMineStrike, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1442
        AddAmmo(CurrentHedgehog, amNapalm, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1443
        AddAmmo(CurrentHedgehog, amPiano, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1444
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1445
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1446
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1447
function onGameTick20()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1448
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1449
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1450
		if jet ~= nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1451
			--SetHealth(jet, 2000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1452
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1453
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1454
        -- 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
  1455
        if cGear ~= nil then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1456
                x,y = GetGearPosition(cGear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1457
        if x > -9000 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1458
            x,y = GetGearTarget(cGear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1459
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1460
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1461
            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
  1462
                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
  1463
                PlaySound(sndDenied)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1464
            elseif (y > WaterLine-50) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1465
                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
  1466
                PlaySound(sndDenied)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1467
            else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1468
                PlaceWayPoint(x, y)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1469
                if wpCount == wpLimit then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1470
                    AddCaption(loc("Race complexity limit reached."))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1471
                    DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1472
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1473
            end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1474
        else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1475
            DeleteGear(cGear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1476
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1477
        SetGearPosition(cGear, -10000, 0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1478
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1479
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1480
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1481
		if activationStage < 10 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1482
				HandleFreshMapCreation()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1483
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1484
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1485
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1486
        -- 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
  1487
        if racerActive == false then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1488
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1489
                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
  1490
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1491
                        -- 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
  1492
                        --waypoint that was placed
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1493
                        --if activationStage == 200 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1494
						if gameBegun == true then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1495
                                AddCaption(loc("Good to go!"))
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1496
                                racerActive = true
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1497
                                trackTime = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1498
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1499
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1500
								SetGearPosition(CurrentHedgehog, wpX[0], wpY[0])
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1501
                                --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
  1502
                                --SetGearVelocity(CurrentHedgehog,1000000,1000000)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1503
								SetGearMessage(CurrentHedgehog,gmLeft)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1504
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1505
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1506
								FollowGear(CurrentHedgehog)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1507
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1508
                                HideMission()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1509
								activationStage = 201
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1510
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1511
						else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1512
                                -- still in placement mode
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1513
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1514
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1515
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1516
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1517
        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
  1518
			SetGearMessage(CurrentHedgehog,0)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1519
			activationStage = 202
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1520
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1521
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1522
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1523
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1524
        -- 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
  1525
        if (CurrentHedgehog ~= nil) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1526
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1527
                --airstrike conversion used to be here
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1528
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1529
                -- 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
  1530
                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
  1531
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1532
                        --ghost
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1533
                        if GameTime%40 == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1534
                                HandleGhost()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1535
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1536
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1537
                        trackTime = trackTime + 20
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1538
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1539
                        if GameTime%100 == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1540
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1541
                if trackTime%1000 == 0 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1542
                    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
  1543
                else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1544
                    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
  1545
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1546
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1547
                                if (CheckWaypoints() == true) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1548
                                        AdjustScores()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1549
                                        DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1550
                                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1551
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1552
                        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1553
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1554
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1555
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1556
                -- 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
  1557
                if TurnTimeLeft <= 20 then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1558
                        DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1559
                end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1560
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1561
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1562
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1563
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1564
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1565
function onGearResurrect(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1566
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1567
        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
  1568
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1569
        if gear == CurrentHedgehog then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1570
                DisableTumbler()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1571
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1572
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1573
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1574
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1575
function isATrackedGear(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1576
	if 	(GetGearType(gear) == gtHedgehog) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1577
		(GetGearType(gear) == gtGrenade) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1578
		(GetGearType(gear) == gtTarget) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1579
		(GetGearType(gear) == gtFlame) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1580
		(GetGearType(gear) == gtExplosives) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1581
		(GetGearType(gear) == gtMine) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1582
		(GetGearType(gear) == gtSMine) or
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1583
		(GetGearType(gear) == gtCase)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1584
	then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1585
		return(true)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1586
	else
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1587
		return(false)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1588
	end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1589
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1590
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1591
function onGearAdd(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1592
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1593
        if isATrackedGear(gear) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1594
			trackGear(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1595
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1596
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1597
		if GetGearType(gear) == gtHedgehog then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1598
                hhs[numhhs] = gear
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1599
                numhhs = numhhs + 1
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1600
                SetEffect(gear, heResurrectable, 1)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1601
        end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1602
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1603
        if GetGearType(gear) == gtAirAttack then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1604
                cGear = gear
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1605
        elseif GetGearType(gear) == gtJetpack then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1606
			jet = gear
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1607
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1608
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1609
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1610
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1611
function onGearDelete(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1612
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1613
        if isATrackedGear(gear) then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1614
			trackDeletion(gear)
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1615
		elseif GetGearType(gear) == gtAirAttack then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1616
                cGear = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1617
        elseif GetGearType(gear) == gtJetpack then
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1618
			jet = nil
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1619
		end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1620
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1621
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1622
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1623
function onAttack()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1624
    at = GetCurAmmoType()
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1625
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1626
    usedWeapons[at] = 0
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1627
end
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1628
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1629
function onAchievementsDeclaration()
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1630
    usedWeapons[amSkip] = nil
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1631
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1632
    usedRope = usedWeapons[amRope] ~= nil
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1633
    usedPortal = usedWeapons[amPortalGun] ~= nil
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1634
    usedSaucer = usedWeapons[amJetpack] ~= nil
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1635
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1636
    usedWeapons[amRope] = nil
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1637
    usedWeapons[amPortalGun] = nil
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1638
    usedWeapons[amJetpack] = nil
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1639
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1640
    usedOther = next(usedWeapons) ~= nil
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1641
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1642
    if usedOther then -- smth besides skip, rope, portal or saucer used
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1643
        raceType = "unknown race"
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1644
    elseif usedRope and not usedPortal and not usedSaucer then
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1645
        raceType = "rope race"
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1646
    elseif not usedRope and usedPortal and not usedSaucer then
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1647
        raceType = "portal race"
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1648
    elseif not usedRope and not usedPortal and usedSaucer then
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1649
        raceType = "saucer race"
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1650
    elseif (usedRope or usedPortal or usedSaucer or usedOther) == false then -- no weapons used at all?
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1651
        raceType = "no tools race"
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1652
    else -- at least two of rope, portal and saucer used
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1653
        raceType = "mixed race"
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1654
    end
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1655
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1656
    map = detectMap()
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1657
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1658
    for i = 0, (numTeams-1) do
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1659
        if teamScore[i] < 100000 then
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1660
            DeclareAchievement(raceType, teamNameArr[i], map, teamScore[i])
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1661
        end
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1662
    end
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1663
end
10554
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1664
48e9b1099ff4 Added TechRacer (still needs a lot of love), updated changelog
mikade <redgrinner@gmail.com>
parents:
diff changeset
  1665
10596
75b5b674387a some friendly updates to TechRacer
mikade <redgrinner@gmail.com>
parents: 10554
diff changeset
  1666