//========================================================================================== // // antarctic_base.gm // // Who When What //------------------------------------------------------------------------------------------ // ^8=^KF^8|^KA^8=^kBuckwild 21 January 2019 Initial Script // //========================================================================================== // global Map = { Debug = 1, // please set to zero before distributing your script ShowMovers = false, Allied_Command_Post_Dyno = 0, Assault_Ramp_Dyno = 0, Axis_Command_Post_Dyno = 0, Axis_Ufo_Dyno = 0, Tank_Barrier_Dyno = 0, Allied_Command_Post_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Allied_Command_Post_Built" ); }, Assault_Ramp_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Assault_Ramp_Built" ); }, Axis_Command_Post_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Axis_Command_Post_Built" ); }, Tank_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Tank_Built" ); }, Tank_Barrier_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Tank_Barrier_Built" ); }, Allied_Command_Post_Planted = function( trigger ) { if ( TestMap ) { return; } Map.Allied_Command_Post_Dyno += 1; Util.MapDebugPrint( "Allied_Command_Post_Planted" ); }, Assault_Ramp_Planted = function( trigger ) { if ( TestMap ) { return; } Map.Assault_Ramp_Dyno += 1; Util.MapDebugPrint( "Assault_Ramp_Planted" ); }, Axis_Command_Post_Planted = function( trigger ) { if ( TestMap ) { return; } Map.Axis_Command_Post_Dyno += 1; Util.MapDebugPrint( "Axis_Command_Post_Planted" ); }, Axis_Ufo_Planted = function( trigger ) { if ( TestMap ) { return; } Map.Axis_Ufo_Dyno += 1; Util.MapDebugPrint( "Axis_Ufo_Planted" ); }, Tank_Barrier_Planted = function( trigger ) { if ( TestMap ) { return; } Map.Tank_Barrier_Dyno += 1; Util.MapDebugPrint( "Tank_Barrier_Planted" ); }, Allied_Command_Post_Defused = function( trigger ) { if ( TestMap ) { return; } Map.Allied_Command_Post_Dyno -= 1; Util.MapDebugPrint( "Allied_Command_Post_Defused" ); }, Assault_Ramp_Defused = function( trigger ) { if ( TestMap ) { return; } Map.Assault_Ramp_Dyno -= 1; Util.MapDebugPrint( "Assault_Ramp_Defused" ); }, Axis_Command_Post_Defused = function( trigger ) { if ( TestMap ) { return; } Map.Axis_Command_Post_Dyno -= 1; Util.MapDebugPrint( "Axis_Command_Post_Defused" ); }, Axis_Ufo_Defused = function( trigger ) { if ( TestMap ) { return; } Map.Axis_Ufo_Dyno -= 1; Util.MapDebugPrint( "Axis_Ufo_Defused" ); }, Tank_Barrier_Defused = function( trigger ) { if ( TestMap ) { return; } Map.Tank_Barrier_Dyno -= 1; Util.MapDebugPrint( "Tank_Barrier_Defused" ); }, Allied_Command_Post_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.Allied_Command_Post_Dyno = 0; Util.MapDebugPrint( "Allied_Command_Post_Destroyed" ); }, Assault_Ramp_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.Assault_Ramp_Dyno = 0; Util.MapDebugPrint( "Assault_Ramp_Destroyed" ); }, Axis_Command_Post_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.Axis_Command_Post_Dyno = 0; Util.MapDebugPrint( "Axis_Command_Post_Destroyed" ); }, Axis_Ufo_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.Axis_Ufo_Dyno = 0; Util.MapDebugPrint( "Axis_Ufo_Destroyed" ); }, Tank_Barrier_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.Tank_Barrier_Dyno = 0; Util.MapDebugPrint( "Tank_Barrier_Destroyed" ); }, Main_Gate_Destroyed = function( trigger ) { if ( TestMap ) { return; } SetAvailableMapGoals( TEAM.ALLIES, false, "CHECKPOINT_forward_flag2" ); SetAvailableMapGoals( TEAM.ALLIES, false, "ESCORT_tank" ); SetAvailableMapGoals( TEAM.ALLIES, false, "BUILD_Tank" ); SetAvailableMapGoals( TEAM.AXIS, false, "CHECKPOINT_forward_flag2" ); SetAvailableMapGoals( TEAM.AXIS, false, "CHECKPOINT_forward_flag1" ); SetAvailableMapGoals( TEAM.AXIS, false, "PLANT_Allied_Command_Post" ); SetAvailableMapGoals( TEAM.AXIS, false, "PLANT_Assault_Ramp" ); SetAvailableMapGoals( TEAM.AXIS, false, "BUILD_Tank_Barrier" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_Tank_Barrier_1" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_Tank_Barrier_2" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_Tank_Barrier_3" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_Tank_Barrier_4" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_Tank_Barrier_5" ); SetAvailableMapGoals( TEAM.ALLIES, true, "PLANT_Axis_UFO_2" ); SetAvailableMapGoals( TEAM.ALLIES, true, "CHECKPOINT_forward_flag3" ); SetAvailableMapGoals( TEAM.ALLIES, true, "DEFEND_UFO_2" ); SetAvailableMapGoals( TEAM.ALLIES, true, "DEFEND_UFO_3" ); SetAvailableMapGoals( TEAM.ALLIES, true, "DEFEND_UFO_4" ); SetAvailableMapGoals( TEAM.ALLIES, true, "DEFEND_UFO_5" ); SetAvailableMapGoals( TEAM.ALLIES, true, "BUILD_Assault_Ramp" ); SetAvailableMapGoals( TEAM.ALLIES, true, "BUILD_Allied_Command_Post" ); SetAvailableMapGoals( TEAM.ALLIES, true, "DEFEND_elevator_1" ); SetAvailableMapGoals( TEAM.ALLIES, true, "DEFEND_elevator_2" ); SetAvailableMapGoals( TEAM.ALLIES, true, "DEFEND_elevator_3" ); SetAvailableMapGoals( TEAM.ALLIES, true, "DEFEND_elevator_4" ); SetAvailableMapGoals( TEAM.AXIS, true, "BUILD_Axis_Command_Post" ); SetAvailableMapGoals( TEAM.AXIS, true, "CHECKPOINT_forward_flag3" ); SetAvailableMapGoals( TEAM.AXIS, true, "DEFEND_UFO_1" ); SetAvailableMapGoals( TEAM.AXIS, true, "DEFEND_UFO_2" ); SetAvailableMapGoals( TEAM.AXIS, true, "DEFEND_UFO_3" ); SetAvailableMapGoals( TEAM.AXIS, true, "DEFEND_UFO_4" ); SetAvailableMapGoals( TEAM.AXIS, true, "DEFEND_UFO_5" ); Util.MapDebugPrint( "Main_Gate_Destroyed" ); }, forward_flag1_Axis_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "forward_flag1_Axis_Captured" ); }, forward_flag1_Allies_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "forward_flag1_Allies_Captured" ); }, forward_flag2_Axis_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "forward_flag2_Axis_Captured" ); }, forward_flag2_Allies_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "forward_flag2_Allies_Captured" ); }, forward_flag3_Axis_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "forward_flag3_Axis_Captured" ); }, forward_flag3_Allies_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "forward_flag3_Allies_Captured" ); }, }; global OnMapLoad = function() { if ( TestMapOn ) { Util.AutoTestMap(); } // Register callback functions OnTrigger( "Allied Command Post constructed. Charge speed increased!", Map.Allied_Command_Post_Built ); OnTrigger( "Allied Team have built the ramp!", Map.Assault_Ramp_Built ); OnTrigger( "Axis Command Post constructed. Charge speed increased!", Map.Axis_Command_Post_Built ); OnTrigger( "The tank has been repaired!", Map.Tank_Built ); OnTrigger( "The Tank Barrier has been constructed.", Map.Tank_Barrier_Built ); OnTrigger( "Planted at the Allied Command Post.", Map.Allied_Command_Post_Planted ); OnTrigger( "Planted at the MISSING_STRING.", Map.Assault_Ramp_Planted ); OnTrigger( "Planted at the Axis Command Post.", Map.Axis_Command_Post_Planted ); OnTrigger( "Planted at the MISSING_STRING.", Map.Axis_Ufo_Planted ); OnTrigger( "Planted at the MISSING_STRING.", Map.Tank_Barrier_Planted ); OnTrigger( "Defused at the Allied Command Post.", Map.Allied_Command_Post_Defused ); OnTrigger( "Defused at the MISSING_STRING.", Map.Assault_Ramp_Defused ); OnTrigger( "Defused at the Axis Command Post.", Map.Axis_Command_Post_Defused ); OnTrigger( "Defused at the MISSING_STRING.", Map.Axis_Ufo_Defused ); OnTrigger( "Defused at the MISSING_STRING.", Map.Tank_Barrier_Defused ); OnTrigger( "Axis team has destroyed the Allied Command Post!", Map.Allied_Command_Post_Destroyed ); OnTrigger( "Axis have destroyed the ramp!", Map.Assault_Ramp_Destroyed ); OnTrigger( "Allied team has destroyed the Axis Command Post!", Map.Axis_Command_Post_Destroyed ); OnTrigger( "The Allies have destroyed the ufo!", Map.Axis_Ufo_Destroyed ); OnTrigger( "Allied team has destroyed the Main Gate!", Map.Main_Gate_Destroyed ); OnTrigger( "The Tank Barrier has been destroyed.", Map.Tank_Barrier_Destroyed ); OnTrigger( "MISSING_STRING", Map.forward_flag1_Axis_Captured ); OnTrigger( "MISSING_STRING", Map.forward_flag1_Allies_Captured ); OnTrigger( "MISSING_STRING", Map.forward_flag2_Axis_Captured ); OnTrigger( "MISSING_STRING", Map.forward_flag2_Allies_Captured ); OnTrigger( "MISSING_STRING", Map.forward_flag3_Axis_Captured ); OnTrigger( "MISSING_STRING", Map.forward_flag3_Allies_Captured ); SetAvailableMapGoals( TEAM.ALLIES, false, "PLANT_Axis_UFO_2" ); SetAvailableMapGoals( TEAM.ALLIES, false, "REPAIRMG42_858" ); SetAvailableMapGoals( TEAM.ALLIES, false, "REPAIRMG42_1007" ); SetAvailableMapGoals( TEAM.ALLIES, false, "REPAIRMG42_1385" ); SetAvailableMapGoals( TEAM.ALLIES, false, "MOUNTMG42_858" ); SetAvailableMapGoals( TEAM.ALLIES, false, "MOUNTMG42_1007" ); SetAvailableMapGoals( TEAM.ALLIES, false, "MOUNTMG42_1385" ); SetAvailableMapGoals( TEAM.ALLIES, false, "BUILD_Assault_Ramp" ); SetAvailableMapGoals( TEAM.ALLIES, false, "BUILD_Allied_Command_Post" ); SetAvailableMapGoals( TEAM.AXIS, false, "REPAIRMG42_858" ); SetAvailableMapGoals( TEAM.AXIS, false, "REPAIRMG42_1007" ); SetAvailableMapGoals( TEAM.AXIS, false, "MOUNTMG42_858" ); SetAvailableMapGoals( TEAM.AXIS, false, "MOUNTMG42_1007" ); SetAvailableMapGoals( TEAM.AXIS, false, "MOUNTMG42_1385" ); SetAvailableMapGoals( TEAM.AXIS, false, "REPAIRMG42_1385" ); SetAvailableMapGoals( TEAM.AXIS, false, "BUILD_Axis_Command_Post" ); SetAvailableMapGoals( TEAM.AXIS, false, "CHECKPOINT_forward_flag3" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_UFO_1" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_UFO_2" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_UFO_3" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_UFO_4" ); SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_UFO_5" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_UFO_1" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_UFO_2" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_UFO_3" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_UFO_4" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_UFO_5" ); SetAvailableMapGoals( TEAM.ALLIES, false, "CHECKPOINT_forward_flag3" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_elevator_1" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_elevator_2" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_elevator_3" ); SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_elevator_4" ); SetGoalPriority("ESCORT_tank", 0.81); SetGoalPriority("CHECKPOINT_forward_flag2", 0.81); SetGoalPriority("CHECKPOINT_forward_flag1", 0.81); SetGoalPriority("PLANT_Axis_UFO_2", 0.91); SetGoalPriority("PLANT_Tank_Barrier", 0.81); SetGoalPriority("BUILD_Tank_Barrier", 0.91); SetGoalPriority("BUILD_Tank", 0.91); SetGoalPriority("DEFEND_elevator_1", 0.61); SetGoalPriority("DEFEND_elevator_2", 0.61); SetGoalPriority("DEFEND_elevator_3", 0.61); SetGoalPriority("DEFEND_elevator_4", 0.61); SetGoalPriority("DEFEND_UFO_1", 0.81); SetGoalPriority("DEFEND_UFO_2", 0.81); SetGoalPriority("DEFEND_UFO_3", 0.81); SetGoalPriority("DEFEND_UFO_4", 0.81); SetGoalPriority("DEFEND_UFO_5", 0.81); //~Util.DisableGoal( ".*", true ); // all but routes //~SetAvailableMapGoals( TEAM.AXIS, true, "ATTACK_.*" ); //~SetAvailableMapGoals( TEAM.ALLIES, true, "ATTACK_.*" ); // Max users per goal Util.SetMaxUsers( 1, "ATTACK_.*" ); Util.SetMaxUsers( 1, "DEFEND_.*" ); Util.SetMaxUsers( 1, "GRENADE_.*" ); Util.SetMaxUsers( 1, "SNIPE_.*" ); Util.SetMaxUsers( 1, "MOUNTMG42_.*" ); Util.SetMaxUsers( 1, "MOBILEMG42_.*" ); Util.SetMaxUsers( 1, "MOBILEMORTAR_.*" ); Util.SetMaxUsers( 1, "AIRSTRIKE_.*" ); Util.SetMaxUsers( 1, "CALLARTILLERY_.*" ); // Camp times SetMapGoalProperties( "MOUNTMG42_.*", {MinCampTime=15, MaxCampTime=90} ); SetMapGoalProperties( "MOBILEMG42_.*", {MinCampTime=10, MaxCampTime=60} ); Util.MapDebugPrint( "Omni-bot map script for " + GetMapName() + " executed." ); }; global OnBotJoin = function( bot ) { // Uncomment for shootable breakables //~bot.TargetBreakableDist = 90.0; // Only set MaxViewDistance on maps with limited sight (e.g. fog) //~bot.MaxViewDistance = 2400; }; global InitializeRoutes = function() { MapRoutes = { BUILD_Tank_Barrier = { }, BUILD_Allied_Command_Post = { }, BUILD_Assault_Ramp = { }, BUILD_Axis_Command_Post = { }, BUILD_Tank = { }, PLANT_Allied_Command_Post = { }, PLANT_Tank_Barrier = { }, PLANT_Assault_Ramp = { }, PLANT_Axis_Ufo = { }, PLANT_Axis_Command_Post = { }, CHECKPOINT_forward_flag1 = { }, CHECKPOINT_forward_flag2 = { }, CHECKPOINT_forward_flag3 = { }, }; Util.Routes(MapRoutes); };