DocsMegalithLanguage

Squads and the deployment map

A mode with classes and deploy points shows its dead the deployment map in place of the class cards: the classes and the places to deploy on a panel, beside the game seen from high above, with the territories in their holders' colors, the places the player may deploy, their squad, named and in green, and every living teammate. It works on every map; an indoor map is cut away above its highest places. The map shows from the player's death. They choose a class and a place on the panel or on the map while the respawn countdown runs, and deploy as it ends: beside the place they chose, if they still may deploy there, else at the team's own spawn points, HQ. Split screen keeps the class cards.

The deployment map: the battle seen from above, with territories and deploy points marked
Conquest's deployment map.
set_squad(n), get_squad()
A player's squad in their team, 1 to 16; 0 for none. The map shows a player their squad, and a squad's own deploy points.
object.set_deploy_point(team)
The team's players may deploy beside the object, on clear ground just past it. no_team takes it away. At most 64 at once. One goes with its object, and a body only counts while its player lives.
object.set_deploy_point(team, squad)
Only that squad of the team's; 0 for every one.
object.get_territory_owner()
The team holding a territory of Halo 3's Territories, by its marker object, else no_team.
object.get_capture_progress(), get_capturing_team()
A Territories game's territory marker: the capture furthest along, 0 to 100, and the team making it; 0 and no_team while none stands.
object.set_deploy_point_name("name" or none), set_deploy_point_icon("X" or none), set_deploy_point_color(r, g, b)
How the map shows a deploy point: its name, 48 bytes at most, in the list and beside its mark; one character in its mark; and the mark's color.
object.set_marker_position(x, y, z), clear_marker_position()
Where the map shows the deploy point, instead of where the object is.
object.set_deploy_destination(other or no_object)
A player who chooses this deploy point deploys beside the other object instead.
object.set_deploy_player(player, 0 or 1)
Whether that player may deploy at this point. A point they may not use isn't on their map.
object.class_can_deploy(all or class, 0 or 1)
Whether players of a class, by its number, may deploy at this point; all sets every class and forgets the classes named before. Buying a class the chosen point is closed to buys nothing.
get_selected_deploy_point()
The place a player chose on the map, as on deployment selected heard it.

The map shows the places a player may use, named for what they are: a territory by its number, a player's body by the player's name, anything else as a deploy point. In a Territories game, the objects with a zone of their own are the territories' markers:

Part of a script
for each object do
    if current_object.shape_contains(current_object) then
        global.team[0] = current_object.get_territory_owner()
        current_object.set_deploy_point(global.team[0])
    end
end
-- Squad mates out of combat for five seconds.
for each player do
    global.number[0] = current_player.get_squad()
    global.number[1] = current_player.get_time_out_of_combat()
    if current_player.is_not_respawning() and global.number[1] >= 5 then
        current_player.biped.set_deploy_point(current_player.team, global.number[0])
    alt
        current_player.biped.set_deploy_point(no_team)
    end
end