Page 1 of 1
Multiplayer Respawn Death loop
Posted: Fri Mar 11, 2016 3:04 pm
by Erelaszun
I set up a modded multiplayer server for some friends... and found out the hard way after a few hours of playing... if you die and go back to the default respawn... you are instantly killed by spitters.
I have searched and searched... and I have no idea how to do:
A: Move the spawn point
or
B: Protect the current spawn point
Any help would be great here.
Re: Multiplayer Respawn Death loop
Posted: Fri Mar 11, 2016 3:16 pm
by Klonan
Erelaszun wrote:I set up a modded multiplayer server for some friends... and found out the hard way after a few hours of playing... if you die and go back to the default respawn... you are instantly killed by spitters.
I have searched and searched... and I have no idea how to do:
A: Move the spawn point
or
B: Protect the current spawn point
Any help would be great here.
A: Setting a spawn point:
Code: Select all
/c game.local_player.force.set_spawn_position({500,500}, game.local_player.surface)
b: Defending the spawn:
Code: Select all
/c
for x = -4,4 do
for y = -4,4 do
game.local_player.surface.create_entity{name = "distractor", position = {x*3,y*3}, force = game.local_player.force}
end
end
Code: Select all
/c
for x = -4,4 do
for y = -4,4 do
local turret = game.local_player.surface.create_entity{name = "gun-turret", position = {x*6+2,y*6+2}, force = game.local_player.force}
turret.insert{name = "piercing-bullet-magazine", count = 25}
end
end
Code: Select all
/c
for x = -16,16 do
for y = -16,16 do
game.local_player.surface.create_entity{name = "land-mine", position = {x*4,y*4}, force = game.local_player.force}
end
end
Re: Multiplayer Respawn Death loop
Posted: Fri Mar 11, 2016 9:54 pm
by Erelaszun
Thank you for the quick reply Klonan.