Spawning and reviving
set_primary_respawn_object(object)- The dead player spawns beside the object while it's there: on clear ground just past its bounds, each player their own way around, else on top of it. A teammate's body, a beacon, a vehicle or a body that fell all work, for joiners too.
no_objectspawns them where Halo 3 does. set_respawn_time(seconds)- A dead player's respawn countdown, 0 to 3,600; 0 respawns them at once. A class mode still waits for their class (
deploy_class).
To revive a fallen player where they fell, keep their body from the object death event and respawn them beside it at once:
A medic's revive
alias fallen = global.player[0]
on object death: do
current_player.object[0] = killed_object
end
-- With fallen the dead teammate:
global.number[0] = fallen.get_last_deployment_class()
global.number[1] = fallen.deploy_class(global.number[0])
fallen.set_primary_respawn_object(fallen.object[0])
fallen.set_respawn_time(0)
-- Once they are back (is_not_respawning), the old body can go:
-- current_player.object[0].delete()
Pick spots with room around them. For Conquest-style rules, check who holds a point before you send a player there, and send them elsewhere, or no_object, once the enemy takes it.
