//========================================================================================== // // minelabs_a2.gm // // Who When What //------------------------------------------------------------------------------------------ // ^1[UJE]^3Niek 15 December 2016 Initial Script // //========================================================================================== // global Map = { Debug = 1, // please set to zero before distributing your script Command_Post_Built = function( trigger ) { Util.MapDebugPrint( "Command_Post_Built" ); }, ladder_Built = function( trigger ) { Util.MapDebugPrint( "ladder_Built" ); }, tank_Built = function( trigger ) { Util.MapDebugPrint( "tank_Built" ); }, Command_Post_Destroyed = function( trigger ) { Util.MapDebugPrint( "Command_Post_Destroyed" ); }, Repulsor_Gun_Destroyed = function( trigger ) { Util.MapDebugPrint( "Repulsor_Gun_Destroyed" ); }, gun_Destroyed = function( trigger ) { Util.MapDebugPrint( "gun_Destroyed" ); }, ladder_Destroyed = function( trigger ) { Util.MapDebugPrint( "ladder_Destroyed" ); }, docs_Taken = function( trigger ) { Util.MapDebugPrint( "docs_Taken" ); }, vkey_Taken = function( trigger ) { Util.MapDebugPrint( "vkey_Taken" ); }, docs_Returned = function( trigger ) { Util.MapDebugPrint( "docs_Returned" ); }, vkey_Returned = function( trigger ) { Util.MapDebugPrint( "vkey_Returned" ); }, docs_Secured = function( trigger ) { Util.MapDebugPrint( "docs_Secured" ); }, vkey_Secured = function( trigger ) { Util.MapDebugPrint( "vkey_Secured" ); }, supplyflag_Axis_Captured = function( trigger ) { Util.MapDebugPrint( "supplyflag_Axis_Captured" ); }, supplyflag_Allies_Captured = function( trigger ) { Util.MapDebugPrint( "supplyflag_Allies_Captured" ); }, }; global OnMapLoad = function() { // Register callback functions OnTrigger( "MISSING_STRING", Map.Command_Post_Built ); OnTrigger( "MISSING_STRING", Map.ladder_Built ); OnTrigger( "MISSING_STRING", Map.tank_Built ); OnTrigger( "MISSING_STRING", Map.Command_Post_Destroyed ); OnTrigger( "MISSING_STRING", Map.Repulsor_Gun_Destroyed ); OnTrigger( "MISSING_STRING", Map.gun_Destroyed ); OnTrigger( "MISSING_STRING", Map.ladder_Destroyed ); OnTrigger( "MISSING_STRING", Map.docs_Taken ); OnTrigger( "MISSING_STRING", Map.vkey_Taken ); OnTrigger( "MISSING_STRING", Map.docs_Returned ); OnTrigger( "MISSING_STRING", Map.vkey_Returned ); OnTrigger( "MISSING_STRING", Map.docs_Secured ); OnTrigger( "MISSING_STRING", Map.vkey_Secured ); OnTrigger( "MISSING_STRING", Map.supplyflag_Axis_Captured ); OnTrigger( "MISSING_STRING", Map.supplyflag_Allies_Captured ); //~Util.DisableGoal( ".*", true ); // all but routes //~SetAvailableMapGoals( TEAM.AXIS, true, "ATTACK_.*" ); //~SetAvailableMapGoals( TEAM.ALLIES, true, "ATTACK_.*" ); // Max users per goal //Util.SetMaxUsers( 1, "MOUNTMG42_.*" ); // Camp times //SetMapGoalProperties( "MOUNTMG42_.*", {MinCampTime=15, MaxCampTime=90} ); 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 = { CHECKPOINT_supplyflag = { }, BUILD_ladder = { }, PLANT_ladder = { }, BUILD_tank = { }, PLANT_gun = { }, FLAG_vkey = { }, BUILD_Command_Post = { }, PLANT_Command_Post = { }, FLAG_docs = { }, PLANT_Repulsor_Gun = { }, }; Util.Routes(MapRoutes); };