-- UNSC vs Covenant vs Flood. The deployment service (the header's -- logic.deployment) owns class purchases and native respawns; this script -- owns rewards, victory conditions and every piece of its UI: the -- reinforcement bars, the status lines and the class picker, built from -- script widgets. Teams 0/1/2 are UNSC/Covenant/Flood; a faction with no -- players sits the battle out, and any two start it. -- -- Widgets draw in order, so the picker's backdrop comes before what is on -- it. 0/1/26 UNSC/Covenant/Flood reinforcements, 2 battle time or result; -- picker: 3 backdrop, 4 title, 5 points, 6 status, 7 hint, 8-24 class -- cards, 27 the page switch; 25 points while deployed. The picker's first -- page holds Halo 3's and ODST's characters (UNSC classes 0-16, Covenant -- 17-33, Flood 34-40), its second the other games' (UNSC 41-47: Reach's, -- CE's and Halo 2's; Covenant 48-63; Flood 64-69). A class whose -- character this map cannot have reads as no class (its cost and team -- -1), and its card stays hidden. -- -- The Flood's abilities are their bodies' own: a combat form's melee is -- its tentacle, a carrier's melee bursts it into infection forms that -- fight for its player (their kills are the player's), the ranged form -- fires spines, and the Brute Jumper flies on its jump pack while jump is -- held in the air. --[=[ mode name = "UNSC vs Covenant vs Flood" mode = "Slayer" [rules] score_to_win = 0 kill_points = 1 death_points = 0 suicide_points = 0 betrayal_points = -1 [options] "player.grenades" = 2 "player.primary_weapon" = 1 "player.secondary_weapon" = -1 "respawn.seconds" = 5 "rounds.limit" = 1 "rounds.minutes" = 0 "rounds.teams" = 1 [logic] seed = 0 [logic.deployment] title = "UNSC vs Covenant vs Flood" teams = ["UNSC", "Covenant", "Flood"] script_menu = true [[logic.deployment.classes]] name = "Marine Rifleman" description = "Standard infantry." team = 0 cost = 0 biped = "marine" camera = "third_person" model_variant = "ma1" primary = "assault_rifle" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Naval Crewman" description = "Ship's crew pressed into the fight. Cheap and quick to field." team = 0 cost = 0 biped = "crewman" camera = "third_person" primary = "smg" grenades = [1, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Marine Scout" description = "Cheap, mobile quality infantry." team = 0 cost = 50 biped = "marine" camera = "third_person" model_variant = "ma1" primary = "smg" secondary = "magnum" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Marine Marksman" description = "Mid-range precision infantry." team = 0 cost = 150 biped = "marine" camera = "third_person" model_variant = "ma4" primary = "battle_rifle" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Marine Breacher" description = "Close-quarters specialist." team = 0 cost = 150 biped = "marine" camera = "third_person" model_variant = "ma2" primary = "shotgun" secondary = "magnum" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "ODST" description = "Advanced general-purpose infantry." team = 0 cost = 250 biped = "odst" camera = "third_person" primary = "battle_rifle" secondary = "smg" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 6 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Marine Heavy" description = "Heavy weapons and anti-vehicle support." team = 0 cost = 250 biped = "marine" camera = "third_person" model_variant = "ma5" primary = "rocket_launcher" secondary = "assault_rifle" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Marine Sniper" description = "Dedicated long-range specialist." team = 0 cost = 250 biped = "marine" camera = "third_person" model_variant = "ma4" primary = "sniper_rifle" secondary = "automag" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "ODST Recon" description = "Versatile combat support." team = 0 cost = 250 biped = "odst" camera = "third_person" primary = "smg_silenced" secondary = "automag" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 6 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "ODST Heavy" description = "Heavy assault specialist." team = 0 cost = 300 biped = "odst" camera = "third_person" primary = "shotgun" secondary = "rocket_launcher" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 6 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Sentinel" description = "A Forerunner Sentinel: it flies and fires its own beam. No vehicles or turrets." team = 0 cost = 300 biped = "sentinel" camera = "third_person" grenades = [0, 0, 0, 0] max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 6 shields = 2 speed = 5 vehicles = 1 [[logic.deployment.classes]] name = "Sergeant Johnson" description = "The Sergeant Major himself: hard to kill and deadly at any range." team = 0 cost = 400 biped = "johnson" camera = "third_person" primary = "battle_rifle" secondary = "shotgun" grenades = [2, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 7 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Spartan" description = "Elite frontline infantry." team = 0 cost = 500 biped = "master_chief" camera = "third_person" primary = "assault_rifle" secondary = "battle_rifle" grenades = [2, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Spartan Breacher" description = "Elite close-range infantry." team = 0 cost = 500 biped = "master_chief" camera = "third_person" primary = "assault_rifle" secondary = "shotgun" grenades = [2, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Spartan Recon" description = "Elite precision infantry." team = 0 cost = 550 biped = "master_chief" camera = "third_person" primary = "battle_rifle" secondary = "sniper_rifle" grenades = [2, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Spartan Heavy" description = "Elite anti-vehicle specialist." team = 0 cost = 550 biped = "master_chief" camera = "third_person" primary = "rocket_launcher" secondary = "assault_rifle" grenades = [2, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Spartan Laser Specialist" description = "Elite anti-vehicle specialist." team = 0 cost = 600 biped = "master_chief" camera = "third_person" primary = "spartan_laser" secondary = "battle_rifle" grenades = [2, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Grunt Minor" description = "Standard infantry." team = 1 cost = 0 biped = "grunt" camera = "third_person" model_variant = "minor" primary = "needler" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 7 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Grunt Heavy" description = "Fragile but dangerous heavy weapons infantry." team = 1 cost = 100 biped = "grunt" camera = "third_person" model_variant = "heavy" primary = "fuel_rod_gun" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 7 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Jackal Shieldbearer" description = "Defensive infantry." team = 1 cost = 0 biped = "jackal" camera = "third_person" model_variant = "minor" primary = "plasma_pistol" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 7 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Jackal Carbine Specialist" description = "Early-game precision infantry and a counter to the UNSC Battle Rifle." team = 1 cost = 0 biped = "jackal" camera = "third_person" model_variant = "sniper" primary = "carbine" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 7 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Jackal Sniper" description = "Long-range specialist." team = 1 cost = 150 biped = "jackal" camera = "third_person" model_variant = "sniper" primary = "beam_rifle" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 7 shields = 1 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Drone" description = "A flying Yanme'e skirmisher: fragile, fast and hard to pin down. No vehicles or turrets." team = 1 cost = 50 biped = "drone" camera = "third_person" primary = "plasma_pistol" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 6 shields = 1 speed = 5 vehicles = 1 [[logic.deployment.classes]] name = "Brute Minor" description = "Aggressive frontline infantry." team = 1 cost = 100 biped = "brute" camera = "third_person" model_variant = "minor" primary = "spiker" grenades = [0, 0, 2, 0] health = 2.5 max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Elite Minor" description = "Standard Elite infantry with energy shielding." team = 1 cost = 150 biped = "elite_warrior" camera = "third_person" model_variant = "minor_scl" primary = "plasma_rifle" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Brute Jumper" description = "A Brute with a jump pack: hold jump in the air to fly." team = 1 cost = 250 biped = "brute_jumppack" camera = "third_person" primary = "spiker" secondary = "mauler" grenades = [0, 0, 2, 0] health = 2.5 max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Brute Captain" description = "Explosive-support infantry." team = 1 cost = 300 biped = "brute" camera = "third_person" model_variant = "captain" primary = "brute_shot" secondary = "carbine" grenades = [0, 0, 2, 0] health = 2.5 max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Elite Spec Ops" description = "Advanced infiltration and close-range combat." team = 1 cost = 300 biped = "elite_warrior" camera = "third_person" model_variant = "spec_ops_scl" primary = "carbine" secondary = "energy_sword" grenades = [0, 0, 0, 0] max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Elite Spec Ops Dualist" description = "Aggressive close-range combat." team = 1 cost = 300 biped = "elite_warrior" camera = "third_person" model_variant = "spec_ops_scl" primary = "plasma_rifle" secondary = "plasma_rifle" dual_wield = true grenades = [0, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 2 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Elite Major" description = "More experienced Elite with stronger shielding." team = 1 cost = 350 biped = "elite_warrior" camera = "third_person" model_variant = "major_scl" primary = "plasma_rifle" grenades = [0, 2, 0, 0] max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 3 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Brute Chieftain" description = "Heavy melee specialist and battlefield leader." team = 1 cost = 450 biped = "brute_chieftain" camera = "third_person" primary = "gravity_hammer" secondary = "spiker" grenades = [0, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 3 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "War Chieftain Heavy" description = "Premier Brute heavy weapons unit." team = 1 cost = 450 biped = "brute_chieftain" camera = "third_person" primary = "fuel_rod_gun" secondary = "plasma_rifle" grenades = [0, 2, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 3 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Arbiter" description = "The Arbiter: the Covenant's finest blade." team = 1 cost = 600 biped = "arbiter" camera = "third_person" primary = "carbine" secondary = "energy_sword" grenades = [0, 2, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 8 shields = 3 speed = 5 vehicles = 3 [[logic.deployment.classes]] name = "Hunter" description = "Campaign Hunter with its own particle cannon. One active Hunter for the Covenant." team = 1 cost = 700 biped = "hunter" camera = "third_person" model_variant = "minor" primary = "hunter_cannon" grenades = [0, 0, 0, 0] health = 4.0 max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 4 vehicles = 1 [[logic.deployment.classes]] name = "Combat Form" description = "A reanimated Marine: it fires what it carries and strikes with its tentacle." team = 2 cost = 0 biped = "flood_human" camera = "third_person" primary = "assault_rifle" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 6 shields = 1 speed = 6 vehicles = 3 [[logic.deployment.classes]] name = "Carrier Form" description = "Melee to burst into infection forms that fight for you. Their kills are yours." team = 2 cost = 50 biped = "flood_carrier" camera = "third_person" grenades = [0, 0, 0, 0] max_active = 3 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 5 vehicles = 1 [[logic.deployment.classes]] name = "Stalker Form" description = "A fast pure form that hunts up close." team = 2 cost = 100 biped = "flood_stalker" camera = "third_person" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 6 shields = 1 speed = 7 vehicles = 1 [[logic.deployment.classes]] name = "Elite Combat Form" description = "A reanimated Elite, shields and all." team = 2 cost = 150 biped = "flood_elite" camera = "third_person" primary = "plasma_rifle" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 7 shields = 2 speed = 6 vehicles = 3 [[logic.deployment.classes]] name = "Brute Combat Form" description = "A reanimated Brute: slow to put down." team = 2 cost = 200 biped = "flood_brute" camera = "third_person" primary = "spiker" grenades = [0, 0, 0, 0] health = 2.5 max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 6 vehicles = 3 [[logic.deployment.classes]] name = "Ranged Form" description = "A pure form that fires spines from afar. No vehicles or turrets." team = 2 cost = 250 biped = "flood_ranged" camera = "third_person" grenades = [0, 0, 0, 0] max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 6 shields = 1 speed = 5 vehicles = 1 [[logic.deployment.classes]] name = "Tank Form" description = "A towering pure form that smashes everything in reach." team = 2 cost = 400 biped = "flood_tank" camera = "third_person" grenades = [0, 0, 0, 0] health = 3.0 max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 resistance = 4 shields = 1 speed = 4 vehicles = 1 [logic.options] points_per_kill = { value = 50.0, min = 1.0, max = 1000.0 } reinforcements = { value = 150.0, min = 10.0, max = 1000.0 } round_seconds = { value = 600.0, min = 60.0, max = 3600.0 } [[logic.deployment.classes]] name = "Noble Spartan" description = "Halo: Reach's Spartan, with Reach's own health and shields." team = 0 cost = 450 biped = "reach_spartan" camera = "third_person" primary = "assault_rifle" secondary = "magnum" grenades = [2, 0, 0, 0] max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Army Trooper" description = "Halo: Reach's UNSC Army trooper." team = 0 cost = 50 biped = "reach_trooper" camera = "third_person" primary = "assault_rifle" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Master Chief (CE)" description = "Halo: Combat Evolved's Master Chief, by CE's own rules." team = 0 cost = 450 biped = "halo1_chief" camera = "third_person" primary = "assault_rifle" secondary = "magnum" grenades = [2, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Marine (CE)" description = "Halo: Combat Evolved's Marine." team = 0 cost = 0 biped = "halo1_marine" camera = "third_person" primary = "assault_rifle" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Spartan (Halo 2)" description = "Halo 2's multiplayer Spartan." team = 0 cost = 400 biped = "halo2_spartan" camera = "third_person" primary = "battle_rifle" secondary = "smg" grenades = [2, 0, 0, 0] max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Master Chief (Halo 2)" description = "Halo 2's Master Chief." team = 0 cost = 500 biped = "halo2_master_chief" camera = "third_person" primary = "battle_rifle" secondary = "smg" grenades = [2, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Marine (Halo 2)" description = "Halo 2's Marine." team = 0 cost = 0 biped = "halo2_marine" camera = "third_person" primary = "smg" grenades = [2, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Elite (Reach)" description = "Halo: Reach's Elite, with Reach's own health and shields." team = 1 cost = 450 biped = "reach_elite" camera = "third_person" primary = "plasma_rifle" secondary = "plasma_pistol" grenades = [0, 2, 0, 0] max_active = 2 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Skirmisher" description = "Halo: Reach's Skirmisher: quick and agile." team = 1 cost = 100 biped = "skirmisher" camera = "third_person" primary = "plasma_pistol" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 1 [[logic.deployment.classes]] name = "Grunt (Reach)" description = "Halo: Reach's Grunt." team = 1 cost = 0 biped = "reach_grunt" camera = "third_person" primary = "plasma_pistol" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 1 [[logic.deployment.classes]] name = "Jackal (Reach)" description = "Halo: Reach's Jackal." team = 1 cost = 0 biped = "reach_jackal" camera = "third_person" primary = "plasma_pistol" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 1 [[logic.deployment.classes]] name = "Brute (Reach)" description = "Halo: Reach's Brute." team = 1 cost = 150 biped = "reach_brute" camera = "third_person" primary = "spiker" grenades = [0, 0, 2, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Elite (CE)" description = "Halo: Combat Evolved's Elite, by CE's own rules." team = 1 cost = 150 biped = "halo1_elite" camera = "third_person" primary = "plasma_rifle" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Grunt (CE)" description = "Halo: Combat Evolved's Grunt." team = 1 cost = 0 biped = "halo1_grunt" camera = "third_person" primary = "plasma_pistol" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 1 [[logic.deployment.classes]] name = "Jackal (CE)" description = "Halo: Combat Evolved's Jackal." team = 1 cost = 0 biped = "halo1_jackal" camera = "third_person" primary = "plasma_pistol" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 1 [[logic.deployment.classes]] name = "Hunter (CE)" description = "Halo: Combat Evolved's Hunter." team = 1 cost = 700 biped = "halo1_hunter" camera = "third_person" grenades = [0, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 0 [[logic.deployment.classes]] name = "Arbiter (Halo 2)" description = "Halo 2's Arbiter." team = 1 cost = 600 biped = "halo2_arbiter" camera = "third_person" primary = "carbine" secondary = "energy_sword" grenades = [0, 2, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Elite (Halo 2)" description = "Halo 2's multiplayer Elite." team = 1 cost = 150 biped = "halo2_elite" camera = "third_person" primary = "plasma_rifle" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Brute (Halo 2)" description = "Halo 2's Brute." team = 1 cost = 250 biped = "halo2_brute" camera = "third_person" primary = "brute_shot" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Grunt (Halo 2)" description = "Halo 2's Grunt." team = 1 cost = 0 biped = "halo2_grunt" camera = "third_person" primary = "needler" grenades = [0, 2, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 1 [[logic.deployment.classes]] name = "Jackal (Halo 2)" description = "Halo 2's Jackal." team = 1 cost = 50 biped = "halo2_jackal" camera = "third_person" primary = "carbine" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 1 [[logic.deployment.classes]] name = "Drone (Halo 2)" description = "Halo 2's Drone." team = 1 cost = 50 biped = "halo2_drone" camera = "third_person" primary = "plasma_pistol" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 0 [[logic.deployment.classes]] name = "Hunter (Halo 2)" description = "Halo 2's Hunter." team = 1 cost = 700 biped = "halo2_hunter" camera = "third_person" grenades = [0, 0, 0, 0] max_active = 1 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 0 [[logic.deployment.classes]] name = "Combat Form (CE)" description = "Halo: Combat Evolved's combat form." team = 2 cost = 0 biped = "halo1_flood_human" camera = "third_person" primary = "assault_rifle" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Elite Combat Form (CE)" description = "Halo: Combat Evolved's Elite combat form." team = 2 cost = 150 biped = "halo1_flood_elite" camera = "third_person" primary = "plasma_rifle" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Carrier Form (CE)" description = "Halo: Combat Evolved's carrier form." team = 2 cost = 50 biped = "halo1_flood_carrier" camera = "third_person" grenades = [0, 0, 0, 0] max_active = 3 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 0 [[logic.deployment.classes]] name = "Combat Form (Halo 2)" description = "Halo 2's combat form." team = 2 cost = 0 biped = "halo2_flood_human" camera = "third_person" primary = "shotgun" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Elite Combat Form (Halo 2)" description = "Halo 2's Elite combat form." team = 2 cost = 150 biped = "halo2_flood_elite" camera = "third_person" primary = "plasma_rifle" grenades = [0, 0, 0, 0] max_active = 0 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 3 [[logic.deployment.classes]] name = "Carrier Form (Halo 2)" description = "Halo 2's carrier form." team = 2 cost = 50 biped = "halo2_flood_carrier" camera = "third_person" grenades = [0, 0, 0, 0] max_active = 3 [logic.deployment.classes.traits] pickup = 2 radar = 3 vehicles = 0 ]=] alias phase = global.number[0] alias unsc = global.number[1] alias covenant = global.number[2] alias flood = global.number[3] alias unsc_players = global.number[4] alias covenant_players = global.number[5] alias flood_players = global.number[6] alias scratch = global.number[7] alias points = global.number[8] alias seconds = global.number[9] alias class = global.number[10] alias remaining = global.timer[0] alias income = global.timer[1] alias kills = player.number[0] alias deaths = player.number[1] -- 1 while the player chooses a class, and 1 while their picker is drawn. alias choosing = player.number[2] alias picker = player.number[3] -- 1 while the player's faction has no reinforcements left in the battle. alias beaten = player.number[4] -- The player's faction's number (UNSC 0, Covenant 1, Flood 2). alias faction = player.number[5] -- The first class of the player's faction on the picker's page. alias first = player.number[6] -- The picker's page: 0 Halo 3's and ODST's characters, 1 the other games'. alias page = player.number[7] on init: do unsc = script_option[1] covenant = script_option[1] flood = script_option[1] remaining = script_option[2] income = 30 -- Reinforcement bars and the battle line, for everyone. script_widget[0].set_position(all_players, 410, 18) script_widget[0].set_anchor(all_players, top_right) script_widget[0].set_size(all_players, 240, 0) script_widget[0].set_alignment(all_players, right) script_widget[0].set_color(all_players, 90, 170, 255, 255) script_widget[0].set_font_size(all_players, 18) script_widget[1].set_position(all_players, 640, 18) script_widget[1].set_anchor(all_players, top) script_widget[1].set_size(all_players, 240, 0) script_widget[1].set_alignment(all_players, center) script_widget[1].set_color(all_players, 190, 150, 255, 255) script_widget[1].set_font_size(all_players, 18) script_widget[26].set_position(all_players, 870, 18) script_widget[26].set_size(all_players, 240, 0) script_widget[26].set_color(all_players, 214, 184, 96, 255) script_widget[26].set_font_size(all_players, 18) script_widget[2].set_position(all_players, 640, 82) script_widget[2].set_anchor(all_players, top) script_widget[2].set_font_size(all_players, 15) script_widget[25].set_position(all_players, 24, 696) script_widget[25].set_anchor(all_players, bottom_left) script_widget[25].set_color(all_players, 232, 184, 82, 255) script_widget[25].set_font_size(all_players, 14) -- The class picker: a backdrop, its title, points, status and hint -- lines, and seventeen cards. Each player is shown it while they choose. script_widget[3].set_position(all_players, 640, 112) script_widget[3].set_anchor(all_players, top) script_widget[3].set_size(all_players, 1200, 568) script_widget[3].set_background(all_players, 7, 14, 23, 235) script_widget[4].set_position(all_players, 80, 126) script_widget[4].set_font_size(all_players, 30) script_widget[5].set_position(all_players, 80, 172) script_widget[5].set_color(all_players, 232, 184, 82, 255) script_widget[5].set_font_size(all_players, 20) script_widget[6].set_text("Click a class to deploy. Purchases last for this life; unspent points survive death.") script_widget[6].set_position(all_players, 80, 202) script_widget[6].set_color(all_players, 150, 160, 175, 255) script_widget[6].set_font_size(all_players, 14) script_widget[7].set_text("Enemy kills earn points. Every faction also earns 25 points every 30 seconds.") script_widget[7].set_position(all_players, 640, 668) script_widget[7].set_anchor(all_players, bottom) script_widget[7].set_color(all_players, 150, 160, 175, 255) script_widget[7].set_font_size(all_players, 13) script_widget[8].set_position(all_players, 80, 232) script_widget[8].set_size(all_players, 270, 76) script_widget[8].set_background(all_players, 15, 27, 39, 255) script_widget[8].set_clickable(all_players, true) script_widget[9].set_position(all_players, 365, 232) script_widget[9].set_size(all_players, 270, 76) script_widget[9].set_background(all_players, 15, 27, 39, 255) script_widget[9].set_clickable(all_players, true) script_widget[10].set_position(all_players, 650, 232) script_widget[10].set_size(all_players, 270, 76) script_widget[10].set_background(all_players, 15, 27, 39, 255) script_widget[10].set_clickable(all_players, true) script_widget[11].set_position(all_players, 935, 232) script_widget[11].set_size(all_players, 270, 76) script_widget[11].set_background(all_players, 15, 27, 39, 255) script_widget[11].set_clickable(all_players, true) script_widget[12].set_position(all_players, 80, 316) script_widget[12].set_size(all_players, 270, 76) script_widget[12].set_background(all_players, 15, 27, 39, 255) script_widget[12].set_clickable(all_players, true) script_widget[13].set_position(all_players, 365, 316) script_widget[13].set_size(all_players, 270, 76) script_widget[13].set_background(all_players, 15, 27, 39, 255) script_widget[13].set_clickable(all_players, true) script_widget[14].set_position(all_players, 650, 316) script_widget[14].set_size(all_players, 270, 76) script_widget[14].set_background(all_players, 15, 27, 39, 255) script_widget[14].set_clickable(all_players, true) script_widget[15].set_position(all_players, 935, 316) script_widget[15].set_size(all_players, 270, 76) script_widget[15].set_background(all_players, 15, 27, 39, 255) script_widget[15].set_clickable(all_players, true) script_widget[16].set_position(all_players, 80, 400) script_widget[16].set_size(all_players, 270, 76) script_widget[16].set_background(all_players, 15, 27, 39, 255) script_widget[16].set_clickable(all_players, true) script_widget[17].set_position(all_players, 365, 400) script_widget[17].set_size(all_players, 270, 76) script_widget[17].set_background(all_players, 15, 27, 39, 255) script_widget[17].set_clickable(all_players, true) script_widget[18].set_position(all_players, 650, 400) script_widget[18].set_size(all_players, 270, 76) script_widget[18].set_background(all_players, 15, 27, 39, 255) script_widget[18].set_clickable(all_players, true) script_widget[19].set_position(all_players, 935, 400) script_widget[19].set_size(all_players, 270, 76) script_widget[19].set_background(all_players, 15, 27, 39, 255) script_widget[19].set_clickable(all_players, true) script_widget[20].set_position(all_players, 80, 484) script_widget[20].set_size(all_players, 270, 76) script_widget[20].set_background(all_players, 15, 27, 39, 255) script_widget[20].set_clickable(all_players, true) script_widget[21].set_position(all_players, 365, 484) script_widget[21].set_size(all_players, 270, 76) script_widget[21].set_background(all_players, 15, 27, 39, 255) script_widget[21].set_clickable(all_players, true) script_widget[22].set_position(all_players, 650, 484) script_widget[22].set_size(all_players, 270, 76) script_widget[22].set_background(all_players, 15, 27, 39, 255) script_widget[22].set_clickable(all_players, true) script_widget[23].set_position(all_players, 935, 484) script_widget[23].set_size(all_players, 270, 76) script_widget[23].set_background(all_players, 15, 27, 39, 255) script_widget[23].set_clickable(all_players, true) script_widget[24].set_position(all_players, 80, 568) script_widget[24].set_size(all_players, 270, 76) script_widget[24].set_background(all_players, 15, 27, 39, 255) script_widget[24].set_clickable(all_players, true) script_widget[27].set_position(all_players, 935, 568) script_widget[27].set_size(all_players, 270, 76) script_widget[27].set_background(all_players, 30, 52, 74, 255) script_widget[27].set_alignment(all_players, center) script_widget[27].set_clickable(all_players, true) end -- A click on a card deploys its class, when the player may. on widget click: do if clicked_widget >= 8 and clicked_widget <= 24 then class = clicked_widget class -= 8 class += current_player.first scratch = current_player.deploy_class(class) if scratch == 0 then script_widget[6].set_text_for(current_player, "That class costs more points than you have, or it is full.") script_widget[6].set_color(current_player, 255, 120, 100, 255) end end -- The page switch: the other games' characters, and back. if clicked_widget == 27 then current_player.page += 1 if current_player.page > 1 then current_player.page = 0 end current_player.picker = 0 end end if phase != 2 then unsc_players = 0 covenant_players = 0 flood_players = 0 for each player do if current_player.team == team[0] then unsc_players += 1 end if current_player.team == team[1] then covenant_players += 1 end if current_player.team == team[2] then flood_players += 1 end -- Enemy kills count even when a projectile lands after our death, -- and so do the kills of a carrier's infection forms. -- This is a wallet, independent of the native team/scoreboard score. scratch = current_player.get_kill_count() scratch -= current_player.kills if scratch > 0 then scratch *= script_option[0] points = current_player.get_deployment_points() points += scratch if points > 100000 then points = 100000 end current_player.set_deployment_points(points) end current_player.kills = current_player.get_kill_count() scratch = current_player.get_death_count() scratch -= current_player.deaths if phase == 1 and scratch > 0 then if current_player.team == team[0] then unsc -= scratch end if current_player.team == team[1] then covenant -= scratch end if current_player.team == team[2] then flood -= scratch end end current_player.deaths = current_player.get_death_count() end if unsc < 0 then unsc = 0 end if covenant < 0 then covenant = 0 end if flood < 0 then flood = 0 end -- The factions in the battle: those with players. scratch = 0 if unsc_players > 0 then scratch += 1 end if covenant_players > 0 then scratch += 1 end if flood_players > 0 then scratch += 1 end if phase == 0 then script_widget[2].set_text("Waiting for a second faction") if scratch >= 2 then phase = 1 remaining.set_rate(-100%) income.set_rate(-100%) end end if phase == 1 then seconds = remaining script_widget[2].set_text("Time: %n", seconds) -- The factions in the battle still standing: with reinforcements -- left. One left standing, or time up: the faction in the battle -- with the most reinforcements left wins. scratch = 0 if unsc_players > 0 and unsc > 0 then scratch += 1 end if covenant_players > 0 and covenant > 0 then scratch += 1 end if flood_players > 0 and flood > 0 then scratch += 1 end if scratch <= 1 or remaining.is_zero() then phase = 2 if unsc_players == 0 then unsc = 0 end if covenant_players == 0 then covenant = 0 end if flood_players == 0 then flood = 0 end scratch = 0 if unsc > covenant and unsc > flood then scratch = 1 script_widget[2].set_text("UNSC victory") team[0].end_round() end if covenant > unsc and covenant > flood then scratch = 1 script_widget[2].set_text("Covenant victory") team[1].end_round() end if flood > unsc and flood > covenant then scratch = 1 script_widget[2].set_text("Flood victory") team[2].end_round() end if scratch == 0 then script_widget[2].set_text("Battle ended in a draw") game.end_round() end end end -- Shared income includes players waiting to deploy, but only during battle. if phase == 1 and income.is_zero() then for each player do if current_player.team == team[0] or current_player.team == team[1] or current_player.team == team[2] then points = current_player.get_deployment_points() points += 25 if points > 100000 then points = 100000 end current_player.set_deployment_points(points) end end income = 30 income.set_rate(-100%) end script_widget[0].set_text("UNSC %n", unsc) script_widget[0].set_meter_params(number, unsc, script_option[1]) script_widget[1].set_text("COVENANT %n", covenant) script_widget[1].set_meter_params(number, covenant, script_option[1]) script_widget[26].set_text("%n FLOOD", flood) script_widget[26].set_meter_params(number, flood, script_option[1]) script_widget[0].set_visibility(all_players, true) script_widget[1].set_visibility(all_players, true) script_widget[26].set_visibility(all_players, true) script_widget[2].set_visibility(all_players, true) end for each player do -- A faction out of reinforcements deploys no one until the battle ends. current_player.beaten = 0 if phase == 1 then if current_player.team == team[0] and unsc == 0 then current_player.beaten = 1 end if current_player.team == team[1] and covenant == 0 then current_player.beaten = 1 end if current_player.team == team[2] and flood == 0 then current_player.beaten = 1 end end -- Dead without a class once the respawn countdown ends: choosing. A -- chosen class waits for a safe spawn. current_player.choosing = 0 class = current_player.get_deployment_class() seconds = current_player.get_respawn_time() if not current_player.is_not_respawning() and class == -1 and seconds == 0 and phase != 2 and current_player.beaten == 0 then current_player.choosing = 1 end current_player.faction = 0 if current_player.team == team[1] then current_player.faction = 1 end if current_player.team == team[2] then current_player.faction = 2 end current_player.first = 0 if current_player.team == team[1] then current_player.first = 17 end if current_player.team == team[2] then current_player.first = 34 end if current_player.page == 1 then current_player.first = 41 if current_player.team == team[1] then current_player.first = 48 end if current_player.team == team[2] then current_player.first = 64 end end if current_player.choosing == 1 and current_player.picker == 0 then current_player.set_ui_menu(true) if current_player.page == 0 and current_player.team == team[0] then script_widget[4].set_text_for(current_player, "UNSC - CHOOSE YOUR CLASS") script_widget[3].set_border(current_player, 90, 170, 255, 140) script_widget[8].set_text_for(current_player, "Marine Rifleman | Assault Rifle | FREE") script_widget[9].set_text_for(current_player, "Naval Crewman | SMG | FREE") script_widget[10].set_text_for(current_player, "Marine Scout | SMG + Magnum | 50") script_widget[11].set_text_for(current_player, "Marine Marksman | Battle Rifle | 150") script_widget[12].set_text_for(current_player, "Marine Breacher | Shotgun + Magnum | 150") script_widget[13].set_text_for(current_player, "ODST | Battle Rifle + SMG | 250") script_widget[14].set_text_for(current_player, "Marine Heavy | Rocket Launcher + Assault Rifle | 250") script_widget[15].set_text_for(current_player, "Marine Sniper | Sniper Rifle + Automag | 250") script_widget[16].set_text_for(current_player, "ODST Recon | Silenced SMG + Automag | 250") script_widget[17].set_text_for(current_player, "ODST Heavy | Shotgun + Rocket Launcher | 300") altif current_player.page == 0 and current_player.team == team[1] then script_widget[4].set_text_for(current_player, "COVENANT - CHOOSE YOUR CLASS") script_widget[3].set_border(current_player, 190, 150, 255, 140) script_widget[8].set_text_for(current_player, "Grunt Minor | Needler | FREE") script_widget[9].set_text_for(current_player, "Grunt Heavy | Fuel Rod Gun | 100") script_widget[10].set_text_for(current_player, "Jackal Shieldbearer | Plasma Pistol | FREE") script_widget[11].set_text_for(current_player, "Jackal Carbine Specialist | Carbine | FREE") script_widget[12].set_text_for(current_player, "Jackal Sniper | Beam Rifle | 150") script_widget[13].set_text_for(current_player, "Drone | Plasma Pistol | 50") script_widget[14].set_text_for(current_player, "Brute Minor | Spiker | 100") script_widget[15].set_text_for(current_player, "Elite Minor | Plasma Rifle | 150") altif current_player.page == 0 and current_player.team == team[2] then script_widget[4].set_text_for(current_player, "FLOOD - CHOOSE YOUR CLASS") script_widget[3].set_border(current_player, 214, 184, 96, 140) script_widget[8].set_text_for(current_player, "Combat Form | Assault Rifle + Melee | FREE") script_widget[10].set_text_for(current_player, "Stalker Form | Melee | 100") script_widget[11].set_text_for(current_player, "Elite Combat Form | Plasma Rifle + Melee | 150") script_widget[12].set_text_for(current_player, "Brute Combat Form | Spiker + Melee | 200") altif current_player.page == 1 and current_player.team == team[0] then script_widget[4].set_text_for(current_player, "UNSC - OTHER GAMES' CHARACTERS") script_widget[3].set_border(current_player, 90, 170, 255, 140) script_widget[9].set_text_for(current_player, "Army Trooper | Assault Rifle | 50") script_widget[11].set_text_for(current_player, "Marine (CE) | Assault Rifle | FREE") script_widget[14].set_text_for(current_player, "Marine (Halo 2) | SMG | FREE") altif current_player.page == 1 and current_player.team == team[1] then script_widget[4].set_text_for(current_player, "COVENANT - OTHER GAMES' CHARACTERS") script_widget[3].set_border(current_player, 190, 150, 255, 140) script_widget[9].set_text_for(current_player, "Skirmisher | Plasma Pistol | 100") script_widget[10].set_text_for(current_player, "Grunt (Reach) | Plasma Pistol | FREE") script_widget[11].set_text_for(current_player, "Jackal (Reach) | Plasma Pistol | FREE") script_widget[12].set_text_for(current_player, "Brute (Reach) | Spiker | 150") script_widget[13].set_text_for(current_player, "Elite (CE) | Plasma Rifle | 150") script_widget[14].set_text_for(current_player, "Grunt (CE) | Plasma Pistol | FREE") script_widget[15].set_text_for(current_player, "Jackal (CE) | Plasma Pistol | FREE") script_widget[18].set_text_for(current_player, "Elite (Halo 2) | Plasma Rifle | 150") script_widget[19].set_text_for(current_player, "Brute (Halo 2) | Brute Shot | 250") script_widget[20].set_text_for(current_player, "Grunt (Halo 2) | Needler | FREE") script_widget[21].set_text_for(current_player, "Jackal (Halo 2) | Carbine | 50") script_widget[22].set_text_for(current_player, "Drone (Halo 2) | Plasma Pistol | 50") altif current_player.page == 1 and current_player.team == team[2] then script_widget[4].set_text_for(current_player, "FLOOD - OTHER GAMES' CHARACTERS") script_widget[3].set_border(current_player, 214, 184, 96, 140) script_widget[8].set_text_for(current_player, "Combat Form (CE) | Assault Rifle | FREE") script_widget[9].set_text_for(current_player, "Elite Combat Form (CE) | Plasma Rifle | 150") script_widget[11].set_text_for(current_player, "Combat Form (Halo 2) | Shotgun | FREE") script_widget[12].set_text_for(current_player, "Elite Combat Form (Halo 2) | Plasma Rifle | 150") end script_widget[27].set_text_for(current_player, "MORE CHARACTERS >>") if current_player.page == 1 then script_widget[27].set_text_for(current_player, "<< BACK") end script_widget[6].set_text_for(current_player, "Click a class to deploy. Purchases last for this life; unspent points survive death.") script_widget[6].set_color(current_player, 150, 160, 175, 255) current_player.picker = 1 end if current_player.choosing == 0 and current_player.picker == 1 then current_player.set_ui_menu(false) current_player.picker = 0 current_player.page = 0 end script_widget[3].set_visibility(current_player, current_player.choosing) script_widget[4].set_visibility(current_player, current_player.choosing) script_widget[5].set_visibility(current_player, current_player.choosing) script_widget[6].set_visibility(current_player, current_player.choosing) script_widget[7].set_visibility(current_player, current_player.choosing) -- A card shows while choosing when its class is of the player's -- faction and this map can have its character (else it reads -1). -- The faction's number is compared from a global. points = current_player.faction class = current_player.first scratch = game.get_deployment_team(class) script_widget[8].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[8].set_visibility(current_player, false) end class = current_player.first class += 1 scratch = game.get_deployment_team(class) script_widget[9].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[9].set_visibility(current_player, false) end class = current_player.first class += 2 scratch = game.get_deployment_team(class) script_widget[10].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[10].set_visibility(current_player, false) end class = current_player.first class += 3 scratch = game.get_deployment_team(class) script_widget[11].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[11].set_visibility(current_player, false) end class = current_player.first class += 4 scratch = game.get_deployment_team(class) script_widget[12].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[12].set_visibility(current_player, false) end class = current_player.first class += 5 scratch = game.get_deployment_team(class) script_widget[13].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[13].set_visibility(current_player, false) end class = current_player.first class += 6 scratch = game.get_deployment_team(class) script_widget[14].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[14].set_visibility(current_player, false) end class = current_player.first class += 7 scratch = game.get_deployment_team(class) script_widget[15].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[15].set_visibility(current_player, false) end class = current_player.first class += 8 scratch = game.get_deployment_team(class) script_widget[16].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[16].set_visibility(current_player, false) end class = current_player.first class += 9 scratch = game.get_deployment_team(class) script_widget[17].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[17].set_visibility(current_player, false) end class = current_player.first class += 10 scratch = game.get_deployment_team(class) script_widget[18].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[18].set_visibility(current_player, false) end class = current_player.first class += 11 scratch = game.get_deployment_team(class) script_widget[19].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[19].set_visibility(current_player, false) end class = current_player.first class += 12 scratch = game.get_deployment_team(class) script_widget[20].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[20].set_visibility(current_player, false) end class = current_player.first class += 13 scratch = game.get_deployment_team(class) script_widget[21].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[21].set_visibility(current_player, false) end class = current_player.first class += 14 scratch = game.get_deployment_team(class) script_widget[22].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[22].set_visibility(current_player, false) end class = current_player.first class += 15 scratch = game.get_deployment_team(class) script_widget[23].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[23].set_visibility(current_player, false) end class = current_player.first class += 16 scratch = game.get_deployment_team(class) script_widget[24].set_visibility(current_player, current_player.choosing) if scratch != points then script_widget[24].set_visibility(current_player, false) end script_widget[27].set_visibility(current_player, current_player.choosing) if current_player.choosing == 1 then points = current_player.get_deployment_points() script_widget[5].set_text_for(current_player, "%n DEPLOYMENT POINTS", points) -- Limited classes show how many are deployed; a card is bright when -- its class is affordable. if current_player.page == 0 and current_player.team == team[0] then script_widget[18].set_text_for(current_player, "Sentinel | Sentinel Beam | 300 | %n/%n", game.get_deployment_occupied(10), game.get_deployment_limit(10)) script_widget[19].set_text_for(current_player, "Sergeant Johnson | Battle Rifle + Shotgun | 400 | %n/%n", game.get_deployment_occupied(11), game.get_deployment_limit(11)) script_widget[20].set_text_for(current_player, "Spartan | Assault Rifle + Battle Rifle | 500 | %n/%n", game.get_deployment_occupied(12), game.get_deployment_limit(12)) script_widget[21].set_text_for(current_player, "Spartan Breacher | Assault Rifle + Shotgun | 500 | %n/%n", game.get_deployment_occupied(13), game.get_deployment_limit(13)) script_widget[22].set_text_for(current_player, "Spartan Recon | Battle Rifle + Sniper Rifle | 550 | %n/%n", game.get_deployment_occupied(14), game.get_deployment_limit(14)) script_widget[23].set_text_for(current_player, "Spartan Heavy | Rocket Launcher + Assault Rifle | 550 | %n/%n", game.get_deployment_occupied(15), game.get_deployment_limit(15)) script_widget[24].set_text_for(current_player, "Spartan Laser Specialist | Spartan Laser + Battle Rifle | 600 | %n/%n", game.get_deployment_occupied(16), game.get_deployment_limit(16)) end if current_player.page == 0 and current_player.team == team[1] then script_widget[16].set_text_for(current_player, "Brute Jumper | Spiker + Mauler | 250 | %n/%n", game.get_deployment_occupied(25), game.get_deployment_limit(25)) script_widget[17].set_text_for(current_player, "Brute Captain | Brute Shot + Carbine | 300 | %n/%n", game.get_deployment_occupied(26), game.get_deployment_limit(26)) script_widget[18].set_text_for(current_player, "Elite Spec Ops | Carbine + Energy Sword | 300 | %n/%n", game.get_deployment_occupied(27), game.get_deployment_limit(27)) script_widget[19].set_text_for(current_player, "Elite Spec Ops Dualist | Dual Plasma Rifles | 300 | %n/%n", game.get_deployment_occupied(28), game.get_deployment_limit(28)) script_widget[20].set_text_for(current_player, "Elite Major | Plasma Rifle | 350 | %n/%n", game.get_deployment_occupied(29), game.get_deployment_limit(29)) script_widget[21].set_text_for(current_player, "Brute Chieftain | Gravity Hammer + Spiker | 450 | %n/%n", game.get_deployment_occupied(30), game.get_deployment_limit(30)) script_widget[22].set_text_for(current_player, "War Chieftain Heavy | Fuel Rod Gun + Plasma Rifle | 450 | %n/%n", game.get_deployment_occupied(31), game.get_deployment_limit(31)) script_widget[23].set_text_for(current_player, "Arbiter | Carbine + Energy Sword | 600 | %n/%n", game.get_deployment_occupied(32), game.get_deployment_limit(32)) script_widget[24].set_text_for(current_player, "Hunter | Hunter Cannon | 700 | %n/%n", game.get_deployment_occupied(33), game.get_deployment_limit(33)) end if current_player.page == 0 and current_player.team == team[2] then script_widget[9].set_text_for(current_player, "Carrier Form | Bursts on melee | 50 | %n/%n", game.get_deployment_occupied(35), game.get_deployment_limit(35)) script_widget[13].set_text_for(current_player, "Ranged Form | Spines | 250 | %n/%n", game.get_deployment_occupied(39), game.get_deployment_limit(39)) script_widget[14].set_text_for(current_player, "Tank Form | Melee | 400 | %n/%n", game.get_deployment_occupied(40), game.get_deployment_limit(40)) end if current_player.page == 1 and current_player.team == team[0] then script_widget[8].set_text_for(current_player, "Noble Spartan | Assault Rifle + Magnum | 450 | %n/%n", game.get_deployment_occupied(41), game.get_deployment_limit(41)) script_widget[10].set_text_for(current_player, "Master Chief (CE) | Assault Rifle + Magnum | 450 | %n/%n", game.get_deployment_occupied(43), game.get_deployment_limit(43)) script_widget[12].set_text_for(current_player, "Spartan (Halo 2) | Battle Rifle + SMG | 400 | %n/%n", game.get_deployment_occupied(45), game.get_deployment_limit(45)) script_widget[13].set_text_for(current_player, "Master Chief (Halo 2) | Battle Rifle + SMG | 500 | %n/%n", game.get_deployment_occupied(46), game.get_deployment_limit(46)) end if current_player.page == 1 and current_player.team == team[1] then script_widget[8].set_text_for(current_player, "Elite (Reach) | Plasma Rifle + Plasma Pistol | 450 | %n/%n", game.get_deployment_occupied(48), game.get_deployment_limit(48)) script_widget[16].set_text_for(current_player, "Hunter (CE) | Melee | 700 | %n/%n", game.get_deployment_occupied(56), game.get_deployment_limit(56)) script_widget[17].set_text_for(current_player, "Arbiter (Halo 2) | Carbine + Energy Sword | 600 | %n/%n", game.get_deployment_occupied(57), game.get_deployment_limit(57)) script_widget[23].set_text_for(current_player, "Hunter (Halo 2) | Melee | 700 | %n/%n", game.get_deployment_occupied(63), game.get_deployment_limit(63)) end if current_player.page == 1 and current_player.team == team[2] then script_widget[10].set_text_for(current_player, "Carrier Form (CE) | Melee | 50 | %n/%n", game.get_deployment_occupied(66), game.get_deployment_limit(66)) script_widget[13].set_text_for(current_player, "Carrier Form (Halo 2) | Melee | 50 | %n/%n", game.get_deployment_occupied(69), game.get_deployment_limit(69)) end class = current_player.first scratch = game.get_deployment_cost(class) script_widget[8].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[8].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 1 scratch = game.get_deployment_cost(class) script_widget[9].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[9].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 2 scratch = game.get_deployment_cost(class) script_widget[10].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[10].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 3 scratch = game.get_deployment_cost(class) script_widget[11].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[11].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 4 scratch = game.get_deployment_cost(class) script_widget[12].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[12].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 5 scratch = game.get_deployment_cost(class) script_widget[13].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[13].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 6 scratch = game.get_deployment_cost(class) script_widget[14].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[14].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 7 scratch = game.get_deployment_cost(class) script_widget[15].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[15].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 8 scratch = game.get_deployment_cost(class) script_widget[16].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[16].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 9 scratch = game.get_deployment_cost(class) script_widget[17].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[17].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 10 scratch = game.get_deployment_cost(class) script_widget[18].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[18].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 11 scratch = game.get_deployment_cost(class) script_widget[19].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[19].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 12 scratch = game.get_deployment_cost(class) script_widget[20].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[20].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 13 scratch = game.get_deployment_cost(class) script_widget[21].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[21].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 14 scratch = game.get_deployment_cost(class) script_widget[22].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[22].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 15 scratch = game.get_deployment_cost(class) script_widget[23].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[23].set_color(current_player, 235, 240, 245, 255) end class = current_player.first class += 16 scratch = game.get_deployment_cost(class) script_widget[24].set_color(current_player, 110, 118, 130, 255) if points >= scratch then script_widget[24].set_color(current_player, 235, 240, 245, 255) end end -- Waiting for a safe spawn, out of reinforcements, or deployed: the -- player's wallet. script_widget[25].set_visibility(current_player, false) if current_player.choosing == 0 and phase != 2 then class = current_player.get_deployment_class() if current_player.is_not_respawning() then script_widget[25].set_text_for(current_player, "%n deployment points", current_player.get_deployment_points()) altif current_player.beaten == 1 then script_widget[25].set_text_for(current_player, "Your faction is out of reinforcements | %n deployment points", current_player.get_deployment_points()) altif class == -1 then script_widget[25].set_text_for(current_player, "Class selection in %n | %n deployment points", current_player.get_respawn_time(), current_player.get_deployment_points()) alt script_widget[25].set_text_for(current_player, "Deployment confirmed. Waiting for the next safe spawn... %n points left", current_player.get_deployment_points()) end script_widget[25].set_visibility(current_player, true) end end -- Class health, shields and vehicle use, for every body the class gets. -- Tweak them here. Health and shields are percentages of the character's -- own (100 is as Halo 3 has it, 200 takes twice the damage); shields -- change only characters that have them (Spartans, Elites, Brutes, -- Sentinels). Vehicle use covers every seat of a vehicle, a Warthog's or -- Wraith's gun included; turrets are the stand-alone guns (machine-gun -- turret, plasma cannon, missile pod, Shade). Classes: 0-16 UNSC, 17-33 -- Covenant, 34-40 Flood, in the order of the class picker's first page; -- 41-47 UNSC, 48-63 Covenant, 64-69 Flood on its second. for each player do class = current_player.get_deployment_class() if class >= 0 then current_player.set_max_health(100) current_player.set_max_shields(100) current_player.set_vehicle_use(true) current_player.set_turret_use(true) -- ODSTs: tougher than marines. if class == 5 or class == 8 or class == 9 then current_player.set_max_health(125) end -- Sentinels and Drones fly: no seats for them. if class == 10 or class == 22 then current_player.set_vehicle_use(false) current_player.set_turret_use(false) end -- Grunts and Jackals man turrets but don't drive or ride. if class >= 17 and class <= 21 then current_player.set_vehicle_use(false) end if class == 18 then current_player.set_max_health(125) end -- Captains, Chieftains, Majors and the Arbiter: stronger shields. if class == 26 or class == 29 or class == 30 or class == 31 or class == 32 then current_player.set_max_shields(125) end -- Hunters: twice the health, too big for any seat. if class == 33 then current_player.set_max_health(200) current_player.set_vehicle_use(false) current_player.set_turret_use(false) end -- The Flood's carrier and pure forms take no seat; combat forms -- drive as the Flood do. if class == 35 or class == 36 or class == 39 or class == 40 then current_player.set_vehicle_use(false) current_player.set_turret_use(false) end -- The other games' characters keep their own game's health, shields -- and movement; Hunters, Drones and carrier forms take no seat, and -- Grunts, Jackals and Skirmishers no vehicle. if class == 49 then current_player.set_vehicle_use(false) end if class == 50 then current_player.set_vehicle_use(false) end if class == 51 then current_player.set_vehicle_use(false) end if class == 54 then current_player.set_vehicle_use(false) end if class == 55 then current_player.set_vehicle_use(false) end if class == 56 then current_player.set_vehicle_use(false) current_player.set_turret_use(false) end if class == 60 then current_player.set_vehicle_use(false) end if class == 61 then current_player.set_vehicle_use(false) end if class == 62 then current_player.set_vehicle_use(false) current_player.set_turret_use(false) end if class == 63 then current_player.set_vehicle_use(false) current_player.set_turret_use(false) end if class == 66 then current_player.set_vehicle_use(false) current_player.set_turret_use(false) end if class == 69 then current_player.set_vehicle_use(false) current_player.set_turret_use(false) end end end