global Ammo_Cabinet_south_ammocabinet = "AMMO_CABINET_south_ammocabinet";
global Ammo_Cabinet_south_ammocabinet = "AMMO_CABINET_south_ammocabinet";
global Health_Cabinet_south_healthcabinet = "HEALTH_CABINET_south_healthcabinet";
global Health_Cabinet_south_healthcabinet = "HEALTH_CABINET_south_healthcabinet";
global Build_petitpont = "MAP_CONSTRUCTION_petitpont";
global Build_tank_construct = "MAP_CONSTRUCTION_tank_construct";
global Build_echelle_forteresse = "MAP_CONSTRUCTION_echelle_forteresse";
global Build_defense4 = "MAP_CONSTRUCTION_defense4";
global Build_allied_compost_built = "MAP_CONSTRUCTION_allied_compost_built";
global Build_firstdoorwall = "MAP_CONSTRUCTION_firstdoorwall";
global Build_defense3 = "MAP_CONSTRUCTION_defense3";
global Build_axissidetower = "MAP_CONSTRUCTION_axissidetower";
global Build_ponttank = "MAP_CONSTRUCTION_ponttank";
global Build_pompepoison = "MAP_CONSTRUCTION_pompepoison";
global Build_alliedsidemg42 = "MAP_CONSTRUCTION_alliedsidemg42";
global Build_echelle = "MAP_CONSTRUCTION_echelle";
global Build_axis_compost_built = "MAP_CONSTRUCTION_axis_compost_built";
global Destroy_pompepoison = "MAP_DYNAMITE_TARGET_pompepoison";
global Destroy_alliedsidemg42 = "MAP_DYNAMITE_TARGET_alliedsidemg42";
global Destroy_ponttank = "MAP_DYNAMITE_TARGET_ponttank";
global Destroy_defense4 = "MAP_DYNAMITE_TARGET_defense4";
global Destroy_grille_a_peter = "MAP_DYNAMITE_TARGET_grille_a_peter";
global Destroy_petitpont = "MAP_DYNAMITE_TARGET_petitpont";
global Destroy_mur_a_peter = "MAP_DYNAMITE_TARGET_mur_a_peter";
global Destroy_defense3 = "MAP_DYNAMITE_TARGET_defense3";
global Destroy_echelle_forteresse = "MAP_DYNAMITE_TARGET_echelle_forteresse";
global Destroy_firstdoorwall = "MAP_DYNAMITE_TARGET_firstdoorwall";
global Destroy_axis_compost_built = "MAP_DYNAMITE_TARGET_axis_compost_built";
global Destroy_echelle = "MAP_DYNAMITE_TARGET_echelle";
global Mount_331 = "MAP_MOUNTABLE_MG42_331";
global Mount_mg42_3 = "MAP_MOUNTABLE_MG42_mg42_3";
global Mount_mg42_3 = "MAP_MOUNTABLE_MG42_mg42_3";
global Mount_690 = "MAP_MOUNTABLE_MG42_690";
global Mount_691 = "MAP_MOUNTABLE_MG42_691";
global Mount_axissidetowermg42 = "MAP_MOUNTABLE_MG42_axissidetowermg42";
global Mount_244 = "MAP_MOUNTABLE_MG42_244";
global Mount_mg42_3 = "MAP_MOUNTABLE_MG42_mg42_3";
global Mount_mg42_3 = "MAP_MOUNTABLE_MG42_mg42_3";
global Mount_181 = "MAP_MOUNTABLE_MG42_181";
global Mount_alliedsidemg42_gun = "MAP_MOUNTABLE_MG42_alliedsidemg42_gun";
global Mount_mg42_3 = "MAP_MOUNTABLE_MG42_mg42_3";
global Mount_360 = "MAP_MOUNTABLE_MG42_360";
global Mount_mg42_3 = "MAP_MOUNTABLE_MG42_mg42_3";
global Mount_693 = "MAP_MOUNTABLE_MG42_693";
global Vehicle_tank = "MAP_VEHICLE_tank";
global Flag_plans = "MAP_FLAG_plans";
global Cappoint_33 = "MAP_CAPPOINT_33";

global axissidetower_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "axissidetower_Built" );
};

global echelle_forteresse_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "echelle_forteresse_Built" );
};

global firstdoorwall_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "firstdoorwall_Built" );
};

global ponttank_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "ponttank_Built" );
};

global petitpont_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "petitpont_Built" );
};

global axis_compost_built_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "axis_compost_built_Built" );
};

global pompepoison_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "pompepoison_Built" );
};

global tank_construct_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "tank_construct_Built" );
};

global echelle_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "echelle_Built" );
};

global allied_compost_built_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "allied_compost_built_Built" );
};

global defense3_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "defense3_Built" );
};

global defense4_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "defense4_Built" );
};

global alliedsidemg42_Built = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "alliedsidemg42_Built" );
};

global mur_a_peter_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "mur_a_peter_Destroyed" );
};

global echelle_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "echelle_Destroyed" );
};

global petitpont_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "petitpont_Destroyed" );
};

global grille_a_peter_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "grille_a_peter_Destroyed" );
};

global pompepoison_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "pompepoison_Destroyed" );
};

global firstdoorwall_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "firstdoorwall_Destroyed" );
};

global defense4_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "defense4_Destroyed" );
};

global alliedsidemg42_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "alliedsidemg42_Destroyed" );
};

global axis_compost_built_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "axis_compost_built_Destroyed" );
};

global defense3_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "defense3_Destroyed" );
};

global echelle_forteresse_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "echelle_forteresse_Destroyed" );
};

global ponttank_Destroyed = function( trigger )
{
	if ( TestMap )
		{ return; }

	print( "ponttank_Destroyed" );
};

global entrance1_Destroyed = function( trigger )
{
	Util.ResetGoals();
	print( " -1- " );
};

global entrance2_Destroyed = function( trigger )
{
	ScriptGoals.escort_vehicle.Off();
	Util.ResetGoals();
	print( " -2- " );
};

global objective_Stolen = function( trigger )
{
	// enable defence spots
	SetAvailableMapGoals( TEAM.AXIS, true, "DEFEND_AXIS_CP_DEFEND.*" );
	Util.ResetGoals();
	print( " -stolen- " );
};

global objective_Returned = function( trigger )
{
	// disable defence spots
	SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_AXIS_CP_DEFEND.*" );
	Util.ResetGoals();
	print( " -returned- " );
};

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

	OnTrigger( "MISSING_STRING", alliedsidemg42_Built );
	OnTrigger( "MISSING_STRING", firstdoorwall_Built );
	OnTrigger( "MISSING_STRING", echelle_forteresse_Built );
	OnTrigger( "MISSING_STRING", tank_construct_Built );
	OnTrigger( "MISSING_STRING", axissidetower_Built );
	OnTrigger( "MISSING_STRING", defense4_Built );
	OnTrigger( "MISSING_STRING", ponttank_Built );
	OnTrigger( "MISSING_STRING", echelle_Built );
	OnTrigger( "MISSING_STRING", allied_compost_built_Built );
	OnTrigger( "MISSING_STRING", pompepoison_Built );
	OnTrigger( "MISSING_STRING", defense3_Built );
	OnTrigger( "MISSING_STRING", axis_compost_built_Built );
	OnTrigger( "MISSING_STRING", petitpont_Built );
	OnTrigger( "MISSING_STRING", defense3_Destroyed );
	OnTrigger( "MISSING_STRING", pompepoison_Destroyed );
	OnTrigger( "MISSING_STRING", echelle_forteresse_Destroyed );
	OnTrigger( "MISSING_STRING", axis_compost_built_Destroyed );
	OnTrigger( "MISSING_STRING", alliedsidemg42_Destroyed );
	OnTrigger( "MISSING_STRING", echelle_Destroyed );
	OnTrigger( "MISSING_STRING", mur_a_peter_Destroyed );
	OnTrigger( "MISSING_STRING", petitpont_Destroyed );
	OnTrigger( "MISSING_STRING", grille_a_peter_Destroyed );
	OnTrigger( "MISSING_STRING", defense4_Destroyed );
	OnTrigger( "MISSING_STRING", firstdoorwall_Destroyed );
	OnTrigger( "MISSING_STRING", ponttank_Destroyed );

 	OnTrigger( "radar_axis_entrance1_destroyed", entrance1_Destroyed );
 	OnTrigger( "radar_axis_entrance2_destroyed", entrance2_Destroyed );

	OnTrigger( "Allies have stolen Plans!", objective_Stolen );
	OnTrigger( "Axis have returned Plans!", objective_Returned );

/*
"Allied team has transmitted the documents!"
"^3Allies have captured the Garage"
"^1Axis team has destroyed the Bridge!"
"^3Axies have captured the Garage"
"^4Allied team has built the Bridge!"
"Allied team has built the Bridge!" 
"^4Axis team has destroyed the Tank Bridge!" 
"Axis team has destroyed the Bridge!" 
"Allied team has repaired the pump door!" 
"Axis team has destroyed the pump door!" 
"Allied team has repaired the pump door!" 
"Axis team has destroyed the pump door!" 
"Allied team has built the Ladder!" 
"Axis team has destroyed the Ladder!" 
"Allied team has built the Fortress Ladder!" 
"Axis team has destroyed the the Fortress Ladder!" 
"^1Axis team has built the Poison Pump!" 
"^1Allied team has destroyed Poison Pump!"
"^1vanne ouverte!"
"^1vanne fermee!"
"Barrieres construites."
"Barrieres detruites."
"Allies have breached the side wall!"
"Allies have breached the aeration grid!"
"Allied team has constructed the Side MG Nest!"
"Axis team has destroyed the Side MG Nest!"
"Axis team has constructed the Side MG Nest!"
"Allied team has destroyed the Side MG Nest!"
"Allied Command Post constructed. Charge speed increased!"
"Axis team has destroyed the Allied Command Post!"
"Axis Command Post constructed. Charge speed increased!"
"Allied team has destroyed the Axis Command Post!"
"The Tank has been repaired"
"The Tank has been damaged"
"^6Time Extended: ^3+5 min"
"^6Time Extended: ^3+5 min"
*/

	SetAvailableMapGoals( TEAM.ALLIES, false, "DEFEND_AXIS_CP_DEFEND.*" );
	SetAvailableMapGoals( TEAM.AXIS, false, "DEFEND_AXIS_CP_DEFEND.*" );
      SetBiasGoals( 5.0, "DEFEND_AXIS_CP_DEFEND.*" );

	if ( tableCount(BotTable) > 0 )
      {
		ScriptGoals.escort_vehicle.On();
	}
	print( "OnMapLoad" );
};

// Uncomment for shootable breakables

global OnBotJoin = function( bot )
{
	
	bot.TargetBreakableDist = 150.0;
};
