//==========================================================================================
//
//	gp_helmsdeepBETA.gm
//
//	Who	When		What
//------------------------------------------------------------------------------------------
//	PuNkR	17 January 2024	Initial Script
//
//==========================================================================================
//

global Map =
{
	Debug = 1, // please set to zero before distributing your script

	Crypt_Wall_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Crypt_Wall_Destroyed" );
	},

	Crypt_Wall_1_Destroyed = function( trigger )
	{
		Util.MapDebugPrint( "Crypt_Wall_1_Destroyed" );
	},

	Artifact_Taken = function( trigger )
	{
		Util.MapDebugPrint( "Artifact_Taken" );
	},

	the_flag_Axis_Captured = function( trigger )
	{
		Util.MapDebugPrint( "the_flag_Axis_Captured" );
	},

	the_flag_Allies_Captured = function( trigger )
	{
		Util.MapDebugPrint( "the_flag_Allies_Captured" );
	},

};

global OnMapLoad = function()
{
	// Register callback functions
	OnTrigger( "MISSING_STRING", Map.Crypt_Wall_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Crypt_Wall_1_Destroyed );
	OnTrigger( "MISSING_STRING", Map.Artifact_Taken );
	OnTrigger( "MISSING_STRING", Map.the_flag_Axis_Captured );
	OnTrigger( "MISSING_STRING", Map.the_flag_Allies_Captured );

	//~Util.DisableGoal( ".*", true ); // all but routes
	//~SetAvailableMapGoals( TEAM.AXIS, true, "ATTACK_.*" );
	//~SetAvailableMapGoals( TEAM.ALLIES, true, "ATTACK_.*" );


	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_Artifact =
		{
		},
		CHECKPOINT_the_flag =
		{
		},
		PLANT_Crypt_Wall =
		{
		},
		EXPLODE_17 =
		{
		},
		PLANT_Crypt_Wall_1 =
		{
		},
		REVIVE_^4[BOT]^7Malin =
		{
		},
	};
	Util.Routes(MapRoutes);
};
