//waypoint & scripting by C3R14L.K1L4
//version of 21:31 20-01-2010
//OB 0.71
global Map =
{
	Debug = 1,
	ShowMovers = false,

	Ammo_Cabinet_south_ammocabinet = "AMMOCAB_south_ammocabinet",
	Health_Cabinet_t3 = "HEALTHCAB_t3",

};

global OnMapLoad = function()
{
	if ( TestMapOn )
		{ Util.AutoTestMap(); }


	//~ETUtil.DisableGoal( ".*", true ) // all but routes

	print( "Omni-bot map script for", GetMapName(), "executed." );
};

global OnBotJoin = function( bot )
{
	//IgnoreEntities(bot);
	bot.MaxViewDistance = 5000;
	bot.TargetBreakableDist = 100;

	team = bot.GetTeam();
	class = bot.GetClass();

	//any class
	// if ( class == CLASS.COVERTOPS )
	// {
		// bot.ChangeClass(CLASS.SOLDIER);
		// class=CLASS.COVERTOPS;
	// }

	// if ( class == CLASS.ENGINEER )
	// {
		// if ( team == TEAM.ALLIES )
			// { bot.ChangePrimaryWeapon( WEAPON.THOMPSON ); }
		// else if ( team == TEAM.AXIS )
			// { bot.ChangePrimaryWeapon( WEAPON.MP40 ); }
	// }

	// if ( class == CLASS.COVERTOPS )
	// {
		// if ( team == TEAM.ALLIES )
		// {
			// bot.ChangePrimaryWeapon( WEAPON.GARAND );
			// weapon = bot.GetWeapon( WEAPON.GARAND );
			// weapon.PrimaryFire.SetDesirabilityRange(500, 6000, 0.8);
		// }
		// else if ( team == TEAM.AXIS )
		// {
			// bot.ChangePrimaryWeapon( WEAPON.K43 );
			// weapon = bot.GetWeapon( WEAPON.K43 );
			// weapon.PrimaryFire.SetDesirabilityRange(500, 6000, 0.8);
		// }
	// }
	print("bunker: OnBotJoin()");
};
