//========================================================================================== // // rizeur_b2.gm // // Who When What //------------------------------------------------------------------------------------------ // ^1[UJE]^3Niek 05 November 2016 Initial Script // //========================================================================================== // global Map = { Debug = 1, // please set to zero before distributing your script Allied_Anti_Airstrike_Built = function( trigger ) { Util.MapDebugPrint( "Allied_Anti_Airstrike_Built" ); }, Allied_MG42_Construction_Built = function( trigger ) { Util.MapDebugPrint( "Allied_MG42_Construction_Built" ); }, Axis_Anti_Airstrike_Built = function( trigger ) { Util.MapDebugPrint( "Axis_Anti_Airstrike_Built" ); }, Axis_MG42_Construction_Built = function( trigger ) { Util.MapDebugPrint( "Axis_MG42_Construction_Built" ); }, Command_Post_Built = function( trigger ) { Util.MapDebugPrint( "Command_Post_Built" ); }, Neutral_Constructible_BRIDGE_Built = function( trigger ) { Util.MapDebugPrint( "Neutral_Constructible_BRIDGE_Built" ); }, WallBarrier_ALLIED_Built = function( trigger ) { Util.MapDebugPrint( "WallBarrier_ALLIED_Built" ); }, WallBarrier_AXIS_Built = function( trigger ) { Util.MapDebugPrint( "WallBarrier_AXIS_Built" ); }, Allied_Anti_Airstrike_Destroyed = function( trigger ) { Util.MapDebugPrint( "Allied_Anti_Airstrike_Destroyed" ); }, Allied_Back_Door_Destroyed = function( trigger ) { Util.MapDebugPrint( "Allied_Back_Door_Destroyed" ); }, Allied_MG42_Construction_Destroyed = function( trigger ) { Util.MapDebugPrint( "Allied_MG42_Construction_Destroyed" ); }, Allied_radio_equipment_Destroyed = function( trigger ) { Util.MapDebugPrint( "Allied_radio_equipment_Destroyed" ); }, Axis_Anti_Airstrike_Destroyed = function( trigger ) { Util.MapDebugPrint( "Axis_Anti_Airstrike_Destroyed" ); }, Axis_Back_Door_Destroyed = function( trigger ) { Util.MapDebugPrint( "Axis_Back_Door_Destroyed" ); }, Axis_MG42_Construction_Destroyed = function( trigger ) { Util.MapDebugPrint( "Axis_MG42_Construction_Destroyed" ); }, Axis_radio_equipment_Destroyed = function( trigger ) { Util.MapDebugPrint( "Axis_radio_equipment_Destroyed" ); }, Cave_Door_Axis_Destroyed = function( trigger ) { Util.MapDebugPrint( "Cave_Door_Axis_Destroyed" ); }, Command_Post_Destroyed = function( trigger ) { Util.MapDebugPrint( "Command_Post_Destroyed" ); }, Neutral_Constructible_BRIDGE_Destroyed = function( trigger ) { Util.MapDebugPrint( "Neutral_Constructible_BRIDGE_Destroyed" ); }, WallBarrier_ALLIED_Destroyed = function( trigger ) { Util.MapDebugPrint( "WallBarrier_ALLIED_Destroyed" ); }, WallBarrier_AXIS_Destroyed = function( trigger ) { Util.MapDebugPrint( "WallBarrier_AXIS_Destroyed" ); }, }; global OnMapLoad = function() { // Register callback functions OnTrigger( "MISSING_STRING", Map.Allied_Anti_Airstrike_Built ); OnTrigger( "MISSING_STRING", Map.Allied_MG42_Construction_Built ); OnTrigger( "MISSING_STRING", Map.Axis_Anti_Airstrike_Built ); OnTrigger( "MISSING_STRING", Map.Axis_MG42_Construction_Built ); OnTrigger( "MISSING_STRING", Map.Command_Post_Built ); OnTrigger( "MISSING_STRING", Map.Neutral_Constructible_BRIDGE_Built ); OnTrigger( "MISSING_STRING", Map.WallBarrier_ALLIED_Built ); OnTrigger( "MISSING_STRING", Map.WallBarrier_AXIS_Built ); OnTrigger( "MISSING_STRING", Map.Allied_Anti_Airstrike_Destroyed ); OnTrigger( "MISSING_STRING", Map.Allied_Back_Door_Destroyed ); OnTrigger( "MISSING_STRING", Map.Allied_MG42_Construction_Destroyed ); OnTrigger( "MISSING_STRING", Map.Allied_radio_equipment_Destroyed ); OnTrigger( "MISSING_STRING", Map.Axis_Anti_Airstrike_Destroyed ); OnTrigger( "MISSING_STRING", Map.Axis_Back_Door_Destroyed ); OnTrigger( "MISSING_STRING", Map.Axis_MG42_Construction_Destroyed ); OnTrigger( "MISSING_STRING", Map.Axis_radio_equipment_Destroyed ); OnTrigger( "MISSING_STRING", Map.Cave_Door_Axis_Destroyed ); OnTrigger( "MISSING_STRING", Map.Command_Post_Destroyed ); OnTrigger( "MISSING_STRING", Map.Neutral_Constructible_BRIDGE_Destroyed ); OnTrigger( "MISSING_STRING", Map.WallBarrier_ALLIED_Destroyed ); OnTrigger( "MISSING_STRING", Map.WallBarrier_AXIS_Destroyed ); //~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 = { BUILD_Command_Post = { }, PLANT_Command_Post = { }, BUILD_WallBarrier_AXIS = { }, PLANT_WallBarrier_AXIS = { }, PLANT_Axis_radio_equipment = { }, PLANT_Allied_radio_equipment = { }, BUILD_Allied_MG42_Construction = { }, PLANT_Allied_MG42_Construction = { }, BUILD_Allied_Anti_Airstrike = { }, PLANT_Allied_Anti_Airstrike = { }, BUILD_Axis_Anti_Airstrike = { }, PLANT_Axis_Anti_Airstrike = { }, BUILD_Axis_MG42_Construction = { }, PLANT_Axis_MG42_Construction = { }, BUILD_WallBarrier_ALLIED = { }, PLANT_WallBarrier_ALLIED = { }, BUILD_Neutral_Constructible_BRIDGE = { }, PLANT_Neutral_Constructible_BRIDGE = { }, PLANT_Cave_Door_Axis = { }, PLANT_Axis_Back_Door = { }, PLANT_Allied_Back_Door = { }, }; Util.Routes(MapRoutes); };