equal
deleted
inserted
replaced
144 local wpCirc = {} |
144 local wpCirc = {} |
145 local wpX = {} |
145 local wpX = {} |
146 local wpY = {} |
146 local wpY = {} |
147 local wpCol = {} |
147 local wpCol = {} |
148 local wpActive = {} |
148 local wpActive = {} |
149 local wpRad = 450 --75 |
149 local wpRad = 450 |
150 local wpCount = 0 |
150 local wpCount = 0 |
151 local wpLimit = 8 |
151 local wpLimit = 8 |
152 |
152 |
153 local usedWeapons = {} |
153 local usedWeapons = {} |
154 |
154 |
161 local boostValue = 1 |
161 local boostValue = 1 |
162 |
162 |
163 ------------------- |
163 ------------------- |
164 -- general methods |
164 -- general methods |
165 ------------------- |
165 ------------------- |
|
166 |
|
167 --[[ |
|
168 Parameters syntax: |
|
169 |
|
170 teamrope=true |
|
171 --> The team will be colored in the color of the team. |
|
172 |
|
173 rounds=N |
|
174 --> The game will be played with N rounds (default: 3) |
|
175 |
|
176 waypointradius=N |
|
177 --> The waypoints have a radius of N pixels (default: 450) |
|
178 |
|
179 ]] |
166 |
180 |
167 function onParameters() |
181 function onParameters() |
168 parseParams() |
182 parseParams() |
169 if params["teamrope"] ~= nil then |
183 if params["teamrope"] ~= nil then |
170 TeamRope = true |
184 TeamRope = true |
171 end |
185 end |
172 if params["rounds"] ~= nil then |
186 if params["rounds"] ~= nil then |
173 roundLimit = math.max(1, math.floor(tonumber(params["rounds"]))) |
187 roundLimit = math.max(1, math.floor(tonumber(params["rounds"]))) |
174 if type(roundLimit) ~= "number" then |
188 if type(roundLimit) ~= "number" then |
175 roundLimit = 3 |
189 roundLimit = 3 |
|
190 end |
|
191 end |
|
192 if params["waypointradius"] ~= nil then |
|
193 wpRad = math.max(40, math.floor(tonumber(params["waypointradius"]))) |
|
194 if type(roundLimit) ~= "number" then |
|
195 wpRad = 450 |
176 end |
196 end |
177 end |
197 end |
178 end |
198 end |
179 |
199 |
180 function RebuildTeamInfo() |
200 function RebuildTeamInfo() |