// Map script by [UJE]Niek
global Map =
{
	SnipeMap = true,

	Navigation =
	{
		wait =
		{
			navigate = function(_this)
			{
				timeout = 4;
				while ( timeout > 1 ) {
					_this.Goto(_this.Bot.GetPosition());
					sleep(1);
					timeout -= 1;
				}
			},
		},
		ele1 =
		{
			navigate = function(_this)
			{
				Util.BotSay(_this.Bot,"^7I'm a Ghost!");
				timeout = 7;
				while ( timeout > 1 ) {
					_this.Goto(_this.Bot.GetPosition());
					sleep(1);
					timeout -= 1;
				}
			},
		},
		ele2 =
		{
			navigate = function(_this)
			{
				Util.BotSay(_this.Bot,"^4Boee!");
				timeout = 4;
				while ( timeout > 1 ) {
					_this.Goto(_this.Bot.GetPosition());
					sleep(1);
					timeout -= 1;
				}
			},
		},
		ele3 =
		{
			navigate = function(_this)
			{
				Util.BotSay(_this.Bot,"^1Whaaaaah!");
				timeout = 8;
				while ( timeout > 1 ) {
					_this.Goto(_this.Bot.GetPosition());
					sleep(1);
					timeout -= 1;
				}
			},
		},
	},
};

global OnMapLoad = function()
{
	SetMapGoalProperties("SNIPE.*", { MinCampTime=30, MaxCamptime=50,});

	Util.LimitToTeam( TEAM.AXIS, "SNIPE_axis.*" );
	Util.LimitToTeam( TEAM.ALLIES, "SNIPE_allied.*" );
	Util.MapDebugPrint( "OnMapLoad", true );
};

global OnBotJoin = function( bot )
{
	Util.ChangeToSniperWeapons(bot);
};
