//========================================================================================== // // et_dark_phx_b_2.gm // // Who When What //------------------------------------------------------------------------------------------ // ^1[UJE]^3Niek 15 May 2016 Initial Script // //========================================================================================== // global Map = { Debug = 0, // please set to zero before distributing your script Tank_Built = function( trigger ) { Util.MapDebugPrint( "Tank_Built" ); }, Allied_Assault_Ramp_Built = function( trigger ) { Util.MapDebugPrint( "Allied_Assault_Ramp_Built" ); }, Allied_CP_Built = function( trigger ) { Util.MapDebugPrint( "Allied_CP_Built" ); }, Axis_Watchtower_MG_Nest_Built = function( trigger ) { Util.MapDebugPrint( "Axis_Watchtower_MG_Nest_Built" ); }, Tank_Barrier_Built = function( trigger ) { Util.MapDebugPrint( "Tank_Barrier_Built" ); }, Allied_Assault_Ramp_Destroyed = function( trigger ) { Util.MapDebugPrint( "Allied_Assault_Ramp_Destroyed" ); }, Allied_CP_Destroyed = function( trigger ) { Util.MapDebugPrint( "Allied_CP_Destroyed" ); }, Axis_Watchtower_MG_Nest_Destroyed = function( trigger ) { Util.MapDebugPrint( "Axis_Watchtower_MG_Nest_Destroyed" ); }, }; global OnMapLoad = function() { // Register callback functions OnTrigger( "MISSING_STRING", Map.Allied_Assault_Ramp_Built ); OnTrigger( "MISSING_STRING", Map.Allied_CP_Built ); OnTrigger( "MISSING_STRING", Map.Axis_Watchtower_MG_Nest_Built ); OnTrigger( "MISSING_STRING", Map.Tank_Built ); OnTrigger( "MISSING_STRING", Map.Tank_Barrier_Built ); OnTrigger( "MISSING_STRING", Map.Allied_Assault_Ramp_Destroyed ); OnTrigger( "MISSING_STRING", Map.Allied_CP_Destroyed ); OnTrigger( "MISSING_STRING", Map.Axis_Watchtower_MG_Nest_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_Axis_Watchtower_MG_Nest = { }, PLANT_Axis_Watchtower_MG_Nest = { }, BUILD_Tank_Barrier = { }, BUILD_Allied_Assault_Ramp = { }, PLANT_Allied_Assault_Ramp = { }, BUILD_Tank = { }, BUILD_Allied_CP = { }, PLANT_Allied_CP = { }, }; Util.Routes(MapRoutes); };