//==========================================================================================
//
//	mp_starkbier.gm
//
//	Who       	When		What
//------------------------------------------------------------------------------------------
//	^1[UJE]^3Niek	17 October 2018	Initial Script
//
//==========================================================================================
//

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

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

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

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

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

};

global OnMapLoad = function()
{
	// Register callback functions
	OnTrigger( "MISSING_STRING", Map.SAFE_WITH_FORMULA_Destroyed );
	OnTrigger( "MISSING_STRING", Map.SECRET_BEER_FORMULA_Taken );
	OnTrigger( "MISSING_STRING", Map.SECRET_BEER_FORMULA_Returned );
	OnTrigger( "MISSING_STRING", Map.SECRET_BEER_FORMULA_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_SECRET_BEER_FORMULA =
		{
		},
		PLANT_SAFE_WITH_FORMULA =
		{
		},
	};
	Util.Routes(MapRoutes);
};
