//==========================================================================================
//
//	de_nuke.gm
//
//	Who                  	When		What
//------------------------------------------------------------------------------------------
//	^8u^7G^8c^7'^8P^7i^8n^7n	10 June 2023	Initial Script
//
//==========================================================================================
//

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

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

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

};

global OnMapLoad = function()
{
	// Register callback functions
	OnTrigger( "MISSING_STRING", Map.first_nuke_Destroyed );
	OnTrigger( "MISSING_STRING", Map.second_nuke_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 =
	{
		PLANT_first_nuke =
		{
		},
		PLANT_second_nuke =
		{
		},
	};
	Util.Routes(MapRoutes);
};
