//==========================================================================================
//
//	tits.gm
//
//	Who       	When		What
//------------------------------------------------------------------------------------------
//	^1[UJE]^3Niek	14 April 2016	Initial Script
//
//==========================================================================================
//

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

};

global OnMapLoad = function()
{
	// Register callback functions
	OnTrigger( "MISSING_STRING", Map.Truck_Built );
	OnTrigger( "MISSING_STRING", Map.Truck_Barrier_Built );
	OnTrigger( "MISSING_STRING", Map.Truck_Barrier_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Tunnel_Gate_Destroyed );
	OnTrigger( "MISSING_STRING", Map.case_Taken );
	OnTrigger( "MISSING_STRING", Map.dynamite1_Taken );
	OnTrigger( "MISSING_STRING", Map.key_Taken );
	OnTrigger( "MISSING_STRING", Map.money1_Taken );
	OnTrigger( "MISSING_STRING", Map.money2_Taken );
	OnTrigger( "MISSING_STRING", Map.case_Returned );
	OnTrigger( "MISSING_STRING", Map.dynamite1_Returned );
	OnTrigger( "MISSING_STRING", Map.key_Returned );
	OnTrigger( "MISSING_STRING", Map.money1_Returned );
	OnTrigger( "MISSING_STRING", Map.money2_Returned );
	OnTrigger( "MISSING_STRING", Map.case_Secured );
	OnTrigger( "MISSING_STRING", Map.dynamite1_Secured );
	OnTrigger( "MISSING_STRING", Map.key_Secured );
	OnTrigger( "MISSING_STRING", Map.money1_Secured );
	OnTrigger( "MISSING_STRING", Map.money2_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 =
	{
		PLANT_Tunnel_Gate =
		{
		},
		FLAG_key =
		{
		},
		FLAG_money1 =
		{
		},
		FLAG_money2 =
		{
		},
		FLAG_case =
		{
		},
		BUILD_Truck =
		{
		},
		BUILD_Truck_Barrier =
		{
		},
		PLANT_Truck_Barrier =
		{
		},
		FLAG_dynamite1 =
		{
		},
	};
	Util.Routes(MapRoutes);
};
