I dont understand what you mean by Map 1 and map 2
if you mean different locations on the same mission, then yes it can be done
the basic rundown on how it works
1) use your normal respawn_west, respawn_east markers
2) Add a killed event handler to each Player
3) Have the killed event script, change a boolean from true to false and back to true again after each death
4) Depending on whether that boolean is true or false on respawn would then determine if the unit was to be immediately setpossed to the additional starting point or not.
Something like the following
MISSION EDITOR1) Create your normal respawn markers and place them at East respawn location No1 and West respawn location No1
2) Create a gamelogic, 1 for east and 1 for west, name then "Elogic" and "Wlogic"
Place these in the alternative spawn locations
INIT.SQStx_setpos = false
player addEventHandler ["killed", {_this exec "playerkilled.sqs"}]
PLAYERKILLED.SQSPlayer removealleventhandlers "Killed"
if(tx_setpos)then{tx_setpos = false}else{tx_setpos = true}
@ alive Player
player addEventHandler ["killed", {_this exec "playerkilled.sqs"}]
if(tx_setpos)&&(side Player == west)then{Player setpos (getpos Wlogic)}
if(tx_setpos)&&(side Player == east)then{Player setpos (getpos Elogic)}
exit
you can add to this script, eg by giving the player the same loadout that he stareted with on each respawn, tthis would be done in the following way
INIT.SQS would contain the additional code
tx_Weps = weapons player
tx_mags = magazines player
tx_Primary = primaryweapon player
and the Playerkilled.sqs would look like this
PLAYERKILLED.SQSPlayer removealleventhandlers "Killed"
if(tx_setpos)then{tx_setpos = false}else{tx_setpos = true}
@ alive Player
player addEventHandler ["killed", {_this exec "playerkilled.sqs"}]
Removeallweapons Player
{player addMagazine _x} forEach tx_mags
{player addWeapon _x} forEach tx_weps
?(tx_Primary == "M16GrenadeLauncher"): tx_Primary = "M16Muzzle"
?(tx_Primary == "Ak74GrenadeLauncher"): tx_Primary = "AK74Muzzle"
?(tx_Primary == "Ak47GrenadeLauncher"): tx_Primary = "AK47Muzzle"
if(tx_setpos)&&(side Player == west)then{Player setpos (getpos Wlogic)}
if(tx_setpos)&&(side Player == east)then{Player setpos (getpos Elogic)}
exit
NB, the very first thread in this p[articular forum, has tons of posts about MP respawn