//==========================================================================================
//
//	maccupiccu.gm
//
//	Who       	When		What
//------------------------------------------------------------------------------------------
//	^1[UJE]^3Niek	13 November 2016	Initial Script
//
//==========================================================================================
//

global Map =
{
	Debug = 0, // please set to zero before distributing your script

	Allied_Assault_Ladder_Built = function( trigger )
	{
		Util.MapDebugPrint( "Allied_Assault_Ladder_Built" );
	},

	Allied_Assault_Ladder_1_Built = function( trigger )
	{
		Util.MapDebugPrint( "Allied_Assault_Ladder_1_Built" );
	},

	Axis_East_Ladder_Defense_Built = function( trigger )
	{
		Util.MapDebugPrint( "Axis_East_Ladder_Defense_Built" );
	},

	Axis_East_MG42_Nest_Built = function( trigger )
	{
		Util.MapDebugPrint( "Axis_East_MG42_Nest_Built" );
	},

	Axis_West_Ladder_Defense_Built = function( trigger )
	{
		Util.MapDebugPrint( "Axis_West_Ladder_Defense_Built" );
	},

	Axis_West_MG42_nest_Built = function( trigger )
	{
		Util.MapDebugPrint( "Axis_West_MG42_nest_Built" );
	},

	Charge_Booster_Built = function( trigger )
	{
		Util.MapDebugPrint( "Charge_Booster_Built" );
	},

	Allied_Assault_Ladder_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Allied_Assault_Ladder_Destroyed" );
	},

	Allied_Assault_Ladder_1_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Allied_Assault_Ladder_1_Destroyed" );
	},

	Axis_East_Ladder_Defense_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Axis_East_Ladder_Defense_Destroyed" );
	},

	Axis_East_MG42_Nest_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Axis_East_MG42_Nest_Destroyed" );
	},

	Axis_West_Ladder_Defense_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Axis_West_Ladder_Defense_Destroyed" );
	},

	Axis_West_MG42_nest_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Axis_West_MG42_nest_Destroyed" );
	},

	Charge_Booster_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Charge_Booster_Destroyed" );
	},

	radarbox1_Taken = function( trigger )
	{
		Util.MapDebugPrint( "radarbox1_Taken" );
	},

	radarbox2_Taken = function( trigger )
	{
		Util.MapDebugPrint( "radarbox2_Taken" );
	},

	radarbox1_Returned = function( trigger )
	{
		Util.MapDebugPrint( "radarbox1_Returned" );
	},

	radarbox2_Returned = function( trigger )
	{
		Util.MapDebugPrint( "radarbox2_Returned" );
	},

	radarbox1_Secured = function( trigger )
	{
		Util.MapDebugPrint( "radarbox1_Secured" );
	},

	radarbox2_Secured = function( trigger )
	{
		Util.MapDebugPrint( "radarbox2_Secured" );
	},

};

global OnMapLoad = function()
{
	// Register callback functions
	OnTrigger( "MISSING_STRING", Map.Allied_Assault_Ladder_Built );
	OnTrigger( "MISSING_STRING", Map.Allied_Assault_Ladder_1_Built );
	OnTrigger( "MISSING_STRING", Map.Axis_East_Ladder_Defense_Built );
	OnTrigger( "MISSING_STRING", Map.Axis_East_MG42_Nest_Built );
	OnTrigger( "MISSING_STRING", Map.Axis_West_Ladder_Defense_Built );
	OnTrigger( "MISSING_STRING", Map.Axis_West_MG42_nest_Built );
	OnTrigger( "MISSING_STRING", Map.Charge_Booster_Built );
	OnTrigger( "MISSING_STRING", Map.Allied_Assault_Ladder_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Allied_Assault_Ladder_1_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Axis_East_Ladder_Defense_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Axis_East_MG42_Nest_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Axis_West_Ladder_Defense_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Axis_West_MG42_nest_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Charge_Booster_Destroyed );
	OnTrigger( "MISSING_STRING", Map.radarbox1_Taken );
	OnTrigger( "MISSING_STRING", Map.radarbox2_Taken );
	OnTrigger( "MISSING_STRING", Map.radarbox1_Returned );
	OnTrigger( "MISSING_STRING", Map.radarbox2_Returned );
	OnTrigger( "MISSING_STRING", Map.radarbox1_Secured );
	OnTrigger( "MISSING_STRING", Map.radarbox2_Secured );

	//~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_Charge_Booster =
		{
		},
		PLANT_Charge_Booster =
		{
		},
		FLAG_radarbox1 =
		{
		},
		FLAG_radarbox2 =
		{
		},
		BUILD_Axis_East_MG42_Nest =
		{
		},
		PLANT_Axis_East_MG42_Nest =
		{
		},
		BUILD_Axis_West_MG42_nest =
		{
		},
		PLANT_Axis_West_MG42_nest =
		{
		},
		BUILD_Axis_East_Ladder_Defense =
		{
		},
		PLANT_Axis_East_Ladder_Defense =
		{
		},
		BUILD_Axis_West_Ladder_Defense =
		{
		},
		PLANT_Axis_West_Ladder_Defense =
		{
		},
		BUILD_Allied_Assault_Ladder =
		{
		},
		PLANT_Allied_Assault_Ladder =
		{
		},
		BUILD_Allied_Assault_Ladder_1 =
		{
		},
		PLANT_Allied_Assault_Ladder_1 =
		{
		},
	};
	Util.Routes(MapRoutes);
};
