This is not much of a PvP Mod though I assume could be used just as a PvP Mod.
I would like it so when I host I'm on team1 and if my friend joins he is on team2 pretty much. So we have our own you know team.. I have no clue if there is a way to switch off turret damage to other team members as well. As we are playing separate teams but coop as in building a train network etc to each other.
It has been created Thanks to akhiros!
This will make it so you have your own research, map, radars, etc. Also makes it so Turrets don't shoot each other!
Code: Select all
/c local pforces = {}; for _, player in ipairs(game.players) do local fname = "player_" .. player.name; local force = game.forces[fname] or game.create_force(fname); player.force = force; for _, pforce in ipairs(pforces) do pforce.set_cease_fire(force.name, true); force.set_cease_fire(pforce.name, true) end; pforces[#pforces+1] = force end