//==========================================================================================
//
//	kerkyra.gm
//
//	Who       	When		What
//------------------------------------------------------------------------------------------
//	^1[UJE]^3Niek	06 March 2016	Initial Script
//
//==========================================================================================
//

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

};

global OnMapLoad = function()
{
	// Register callback functions
	OnTrigger( "MISSING_STRING", Map.SdKfz_234_Built );
	OnTrigger( "MISSING_STRING", Map.Tank_Barrier_1_Built );
	OnTrigger( "MISSING_STRING", Map.Tank_Barrier_2_Built );
	OnTrigger( "MISSING_STRING", Map.Tunnel_Door_Built );
	OnTrigger( "MISSING_STRING", Map.Tunnel_Door_Destroyed );
	OnTrigger( "MISSING_STRING", Map.chalice_Taken );
	OnTrigger( "MISSING_STRING", Map.crown_Taken );
	OnTrigger( "MISSING_STRING", Map.sword_Taken );
	OnTrigger( "MISSING_STRING", Map.chalice_Returned );
	OnTrigger( "MISSING_STRING", Map.crown_Returned );
	OnTrigger( "MISSING_STRING", Map.sword_Returned );
	OnTrigger( "MISSING_STRING", Map.chalice_Secured );
	OnTrigger( "MISSING_STRING", Map.crown_Secured );
	OnTrigger( "MISSING_STRING", Map.sword_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 =
	{
		FLAG_crown =
		{
		},
		FLAG_sword =
		{
		},
		FLAG_chalice =
		{
		},
		BUILD_SdKfz_234 =
		{
		},
		BUILD_Tank_Barrier_1 =
		{
		},
		BUILD_Tank_Barrier_2 =
		{
		},
		BUILD_Tunnel_Door =
		{
		},
		PLANT_Tunnel_Door =
		{
		},
	};
	Util.Routes(MapRoutes);
};
