File tree Expand file tree Collapse file tree 6 files changed +20
-20
lines changed Expand file tree Collapse file tree 6 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -294,11 +294,11 @@ function Harvester:UpdateActivity()
294
294
295
295
if ship then
296
296
-- Set the spawn point of the ship from orbit
297
- if self .playertally == 1 then
298
- for i = 1 , # self . playerlist do
299
- if self . playerlist [ i ] == true then
297
+ if self .HumanCount == 1 then
298
+ for player = Activity . PLAYER_1 , Activity . MAXPLAYERCOUNT - 1 do
299
+ if self : PlayerActive ( player ) and self : PlayerHuman ( player ) then
300
300
local sceneChunk = SceneMan .SceneWidth / 3 ;
301
- local checkPos = self :GetPlayerBrain (i - 1 ).Pos .X + (SceneMan .SceneWidth / 2 ) + ( (sceneChunk / 2 ) - (math.random ()* sceneChunk ) );
301
+ local checkPos = self :GetPlayerBrain (player ).Pos .X + (SceneMan .SceneWidth / 2 ) + ( (sceneChunk / 2 ) - (math.random ()* sceneChunk ) );
302
302
if checkPos > SceneMan .SceneWidth then
303
303
checkPos = checkPos - SceneMan .SceneWidth ;
304
304
elseif checkPos < 0 then
Original file line number Diff line number Diff line change @@ -226,11 +226,11 @@ function KeepieUppie:UpdateActivity()
226
226
end
227
227
228
228
-- Set the spawn point of the ship from orbit
229
- if self .playertally == 1 then
230
- for i = 1 , # self . playerlist do
231
- if self . playerlist [ i ] == true then
229
+ if self .HumanCount == 1 then
230
+ for player = Activity . PLAYER_1 , Activity . MAXPLAYERCOUNT - 1 do
231
+ if self : PlayerActive ( player ) and self : PlayerHuman ( player ) then
232
232
local sceneChunk = SceneMan .SceneWidth / 3 ;
233
- local checkPos = self :GetPlayerBrain (i - 1 ).Pos .X + (SceneMan .SceneWidth / 2 ) + ( (sceneChunk / 2 ) - (math.random ()* sceneChunk ) );
233
+ local checkPos = self :GetPlayerBrain (player ).Pos .X + (SceneMan .SceneWidth / 2 ) + ( (sceneChunk / 2 ) - (math.random ()* sceneChunk ) );
234
234
if checkPos > SceneMan .SceneWidth then
235
235
checkPos = checkPos - SceneMan .SceneWidth ;
236
236
elseif checkPos < 0 then
Original file line number Diff line number Diff line change @@ -297,9 +297,9 @@ function Massacre:UpdateActivity()
297
297
298
298
if ship then
299
299
-- Set the spawn point of the ship from orbit
300
- if self .playertally == 1 then
301
- for i = 1 , # self . playerlist do
302
- if self . playerlist [ i ] == true then
300
+ if self .HumanCount == 1 then
301
+ for player = Activity . PLAYER_1 , Activity . MAXPLAYERCOUNT - 1 do
302
+ if self : PlayerActive ( player ) and self : PlayerHuman ( player ) then
303
303
local sceneChunk = SceneMan .SceneWidth / 3 ;
304
304
local checkPos = self :GetPlayerBrain (i - 1 ).Pos .X + (SceneMan .SceneWidth / 2 ) + ( (sceneChunk / 2 ) - (math.random ()* sceneChunk ) );
305
305
if checkPos > SceneMan .SceneWidth then
Original file line number Diff line number Diff line change @@ -378,9 +378,9 @@ function OneManArmy:UpdateActivity()
378
378
379
379
if ship then
380
380
-- Set the spawn point of the ship from orbit
381
- if self .playertally == 1 then
382
- for i = 1 , # self . playerlist do
383
- if self . playerlist [ i ] == true then
381
+ if self .HumanCount == 1 then
382
+ for player = Activity . PLAYER_1 , Activity . MAXPLAYERCOUNT - 1 do
383
+ if self : PlayerActive ( player ) and self : PlayerHuman ( player ) then
384
384
local sceneChunk = SceneMan .SceneWidth * 0.3 ;
385
385
local checkPos = self :GetPlayerBrain (i - 1 ).Pos .X + (SceneMan .SceneWidth * 0.5 ) + ((sceneChunk * 0.5 ) - (math.random () * sceneChunk ));
386
386
if checkPos > SceneMan .SceneWidth then
Original file line number Diff line number Diff line change @@ -321,9 +321,9 @@ function OneManArmy:UpdateActivity()
321
321
322
322
if ship then
323
323
-- Set the spawn point of the ship from orbit
324
- if self .playertally == 1 then
325
- for i = 1 , # self . playerlist do
326
- if self . playerlist [ i ] == true then
324
+ if self .HumanCount == 1 then
325
+ for player = Activity . PLAYER_1 , Activity . MAXPLAYERCOUNT - 1 do
326
+ if self : PlayerActive ( player ) and self : PlayerHuman ( player ) then
327
327
local sceneChunk = SceneMan .SceneWidth / 3 ;
328
328
local checkPos = self :GetPlayerBrain (i - 1 ).Pos .X + (SceneMan .SceneWidth / 2 ) + ( (sceneChunk / 2 ) - (math.random ()* sceneChunk ) );
329
329
if checkPos > SceneMan .SceneWidth then
Original file line number Diff line number Diff line change @@ -275,9 +275,9 @@ function Survival:UpdateActivity()
275
275
276
276
if ship then
277
277
-- Set the spawn point of the ship from orbit
278
- if self .playertally == 1 then
279
- for i = 1 , # self . playerlist do
280
- if self . playerlist [ i ] == true then
278
+ if self .HumanCount == 1 then
279
+ for player = Activity . PLAYER_1 , Activity . MAXPLAYERCOUNT - 1 do
280
+ if self : PlayerActive ( player ) and self : PlayerHuman ( player ) then
281
281
local sceneChunk = SceneMan .SceneWidth / 3 ;
282
282
local checkPos = self :GetPlayerBrain (i - 1 ).Pos .X + (SceneMan .SceneWidth / 2 ) + ( (sceneChunk / 2 ) - (math.random ()* sceneChunk ) );
283
283
if checkPos > SceneMan .SceneWidth then
You can’t perform that action at this time.
0 commit comments