//========================================================================================== // // flakstuff_final.gm // // Who When What //------------------------------------------------------------------------------------------ // ^1{WeB}^7*^4GA^1NG$^4TA^7* 05 June 2015 Initial Script // //========================================================================================== // global Map = { Debug = 1, // please set to zero before distributing your script ShowMovers = false, Command_Post_Dyno = 0, Fence_to_main_Bunker_Dyno = 0, Overhead_line_to_main_Bunker_Dyno = 0, construction_for_Ladder_to_Main_Bunker_Dyno = 0, construction_set_for_Guard_Walls_Dyno = 0, Command_Post_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Command_Post_Built" ); }, Fence_to_main_Bunker_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Fence_to_main_Bunker_Built" ); }, Overhead_line_to_main_Bunker_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Overhead_line_to_main_Bunker_Built" ); }, construction_for_Ladder_to_Main_Bunker_Built = function( trigger ) { if ( TestMap ) { return; } SetAvailableMapGoals( TEAM.AXIS, true, "BUILD_Overhead_line_to_main_Bunker" ); SetAvailableMapGoals( TEAM.AXIS, true, "BUILD_Command_Post" ); SetAvailableMapGoals( TEAM.AXIS, true, "PLANT_Command_Post" ); SetAvailableMapGoals( TEAM.AXIS, true, "FLAG_secret_Artillery_Ammon" ); SetAvailableMapGoals( TEAM.AXIS, true, "SWITCH_objective_1" ); SetAvailableMapGoals( TEAM.AXIS, true, "SWITCH_objective_2" ); Util.MapDebugPrint( "construction_for_Ladder_to_Main_Bunker_Built" ); }, construction_set_for_Guard_Walls_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "construction_set_for_Guard_Walls_Built" ); }, Command_Post_Planted = function( trigger ) { if ( TestMap ) { return; } Map.Command_Post_Dyno += 1; Util.MapDebugPrint( "Command_Post_Planted" ); }, Fence_to_main_Bunker_Planted = function( trigger ) { if ( TestMap ) { return; } Map.Fence_to_main_Bunker_Dyno += 1; Util.MapDebugPrint( "Fence_to_main_Bunker_Planted" ); }, Overhead_line_to_main_Bunker_Planted = function( trigger ) { if ( TestMap ) { return; } Map.Overhead_line_to_main_Bunker_Dyno += 1; Util.MapDebugPrint( "Overhead_line_to_main_Bunker_Planted" ); }, construction_for_Ladder_to_Main_Bunker_Planted = function( trigger ) { if ( TestMap ) { return; } Map.construction_for_Ladder_to_Main_Bunker_Dyno += 1; Util.MapDebugPrint( "construction_for_Ladder_to_Main_Bunker_Planted" ); }, construction_set_for_Guard_Walls_Planted = function( trigger ) { if ( TestMap ) { return; } Map.construction_set_for_Guard_Walls_Dyno += 1; Util.MapDebugPrint( "construction_set_for_Guard_Walls_Planted" ); }, Command_Post_Defused = function( trigger ) { if ( TestMap ) { return; } Map.Command_Post_Dyno -= 1; Util.MapDebugPrint( "Command_Post_Defused" ); }, Fence_to_main_Bunker_Defused = function( trigger ) { if ( TestMap ) { return; } Map.Fence_to_main_Bunker_Dyno -= 1; Util.MapDebugPrint( "Fence_to_main_Bunker_Defused" ); }, Overhead_line_to_main_Bunker_Defused = function( trigger ) { if ( TestMap ) { return; } Map.Overhead_line_to_main_Bunker_Dyno -= 1; Util.MapDebugPrint( "Overhead_line_to_main_Bunker_Defused" ); }, construction_for_Ladder_to_Main_Bunker_Defused = function( trigger ) { if ( TestMap ) { return; } Map.construction_for_Ladder_to_Main_Bunker_Dyno -= 1; Util.MapDebugPrint( "construction_for_Ladder_to_Main_Bunker_Defused" ); }, construction_set_for_Guard_Walls_Defused = function( trigger ) { if ( TestMap ) { return; } Map.construction_set_for_Guard_Walls_Dyno -= 1; Util.MapDebugPrint( "construction_set_for_Guard_Walls_Defused" ); }, Command_Post_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.Command_Post_Dyno = 0; Util.MapDebugPrint( "Command_Post_Destroyed" ); }, Fence_to_main_Bunker_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.Fence_to_main_Bunker_Dyno = 0; Util.MapDebugPrint( "Fence_to_main_Bunker_Destroyed" ); }, Overhead_line_to_main_Bunker_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.Overhead_line_to_main_Bunker_Dyno = 0; Util.MapDebugPrint( "Overhead_line_to_main_Bunker_Destroyed" ); }, construction_for_Ladder_to_Main_Bunker_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.construction_for_Ladder_to_Main_Bunker_Dyno = 0; Util.MapDebugPrint( "construction_for_Ladder_to_Main_Bunker_Destroyed" ); }, construction_set_for_Guard_Walls_Destroyed = function( trigger ) { if ( TestMap ) { return; } Map.construction_set_for_Guard_Walls_Dyno = 0; Util.MapDebugPrint( "construction_set_for_Guard_Walls_Destroyed" ); }, secret_Artillery_Ammon_Taken = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "secret_Artillery_Ammon_Taken" ); }, secret_Artillery_Ammon_Returned = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "secret_Artillery_Ammon_Returned" ); }, secret_Artillery_Ammon_Secured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "secret_Artillery_Ammon_Secured" ); }, forwardspawn1_flag_Axis_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "forwardspawn1_flag_Axis_Captured" ); }, forwardspawn1_flag_Allies_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "forwardspawn1_flag_Allies_Captured" ); }, }; global OnMapLoad = function() { if ( TestMapOn ) { Util.AutoTestMap(); } // Register callback functions OnTrigger( "MISSING_STRING", Map.Command_Post_Built ); OnTrigger( "The Guard Fences to Bunker has been constructed!", Map.Fence_to_main_Bunker_Built ); OnTrigger( "Axis team has built the Overhead line to Main Bunker!", Map.Overhead_line_to_main_Bunker_Built ); OnTrigger( "The ladder to Bunker has been constructed!", Map.construction_for_Ladder_to_Main_Bunker_Built ); OnTrigger( "MISSING_STRING", Map.construction_set_for_Guard_Walls_Built ); OnTrigger( "Planted at the MISSING_STRING.", Map.Command_Post_Planted ); OnTrigger( "Planted at the MISSING_STRING.", Map.Fence_to_main_Bunker_Planted ); OnTrigger( "Planted at the MISSING_STRING.", Map.Overhead_line_to_main_Bunker_Planted ); OnTrigger( "Planted at the MISSING_STRING.", Map.construction_for_Ladder_to_Main_Bunker_Planted ); OnTrigger( "Planted at the MISSING_STRING.", Map.construction_set_for_Guard_Walls_Planted ); OnTrigger( "Defused at the MISSING_STRING.", Map.Command_Post_Defused ); OnTrigger( "Defused at the MISSING_STRING.", Map.Fence_to_main_Bunker_Defused ); OnTrigger( "Defused at the MISSING_STRING.", Map.Overhead_line_to_main_Bunker_Defused ); OnTrigger( "Defused at the MISSING_STRING.", Map.construction_for_Ladder_to_Main_Bunker_Defused ); OnTrigger( "Defused at the MISSING_STRING.", Map.construction_set_for_Guard_Walls_Defused ); OnTrigger( "MISSING_STRING", Map.Command_Post_Destroyed ); OnTrigger( "", Map.Fence_to_main_Bunker_Destroyed ); OnTrigger( "Allied team has destroyed the Overhead line to Main Bunker!", Map.Overhead_line_to_main_Bunker_Destroyed ); OnTrigger( "Allied team has destroyed the ladder to Bunker!", Map.construction_for_Ladder_to_Main_Bunker_Destroyed ); OnTrigger( "MISSING_STRING", Map.construction_set_for_Guard_Walls_Destroyed ); OnTrigger( "Axis team escaped with Flak Ammo!", Map.secret_Artillery_Ammon_Taken ); OnTrigger( "MISSING_STRING", Map.secret_Artillery_Ammon_Returned ); OnTrigger( "MISSING_STRING", Map.secret_Artillery_Ammon_Secured ); OnTrigger( "Axis reclaim the Command Post Spawn!", Map.forwardspawn1_flag_Axis_Captured ); OnTrigger( "Allies capture the Command Post Spawn!", Map.forwardspawn1_flag_Allies_Captured ); SetGoalPriority( "BUILD_construction_for_Ladder_to_Main_Bunker", 0.92, TEAM.AXIS, CLASS.ENGINEER, true ); SetGoalPriority( "SWITCH_objective_1", 0.81, TEAM.AXIS, CLASS.ENGINEER, true ); SetGoalPriority( "SWITCH_objective_2", 0.81, TEAM.AXIS, CLASS.ENGINEER, true ); SetGoalPriority( "PLANT_construction_for_Ladder_to_Main_Bunker", 0.81, TEAM.ALLIES, CLASS.ENGINEER, true ); //~Util.DisableGoal( ".*", true ); // all but routes //~SetAvailableMapGoals( TEAM.AXIS, true, "ATTACK_.*" ); //~SetAvailableMapGoals( TEAM.ALLIES, true, "ATTACK_.*" ); // Max users per goal //Util.SetMaxUsers( 1, "DEFEND_.*" ); //Util.SetMaxUsers( 1, "GRENADE_.*" ); //Util.SetMaxUsers( 1, "MOUNTMG42_.*" ); // 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_construction_for_Ladder_to_Main_Bunker = { }, BUILD_construction_set_for_Guard_Walls = { }, BUILD_Overhead_line_to_main_Bunker = { }, BUILD_Fence_to_main_Bunker = { }, BUILD_Command_Post = { }, PLANT_construction_set_for_Guard_Walls = { }, PLANT_Fence_to_main_Bunker = { }, PLANT_Overhead_line_to_main_Bunker = { }, PLANT_construction_for_Ladder_to_Main_Bunker = { }, PLANT_Command_Post = { }, FLAG_secret_Artillery_Ammon = { }, CHECKPOINT_forwardspawn1_flag = { }, }; Util.Routes(MapRoutes); };