global Map = { Quiet = true, FocusPrimary = false, Plant_North = "PLANT_North_Radar_01", Plant_South = "PLANT_South_Radar_02", Mount_mg42_1 = "MOUNTMG42_mg42_1", Mount_mg42_2 = "MOUNTMG42_mg42_2", Repair_mg42_1 = "REPAIRMG42_mg42_1", Repair_mg42_2 = "REPAIRMG42_mg42_2", AlliesNearNorth = false, NorthStatus = false, SouthStatus = false, NorthDyno = 0, SouthDyno = 0, AxisASTable = {}, DispenseAmmoTime = 15, // give axis time to go call the arty Airstrike = { bsk1 = { Enabled = true, Team = (1< 0 ) { Map.Switches.gate1.Enabled = true; Map.Switches.gate2.Enabled = true; } }, }; global OnMapLoad = function() { OnTrigger( "Allied team has disabled the North Radar!", Map.North_Destroyed ); OnTrigger( "Planted at the North Radar [01].", Map.north_planted ); OnTrigger( "Defused at the North Radar [01].", Map.north_defused ); OnTrigger( "Allied team has disabled the South Radar!", Map.South_Destroyed ); OnTrigger( "Planted at the South Radar [02].", Map.south_planted ); OnTrigger( "Defused at the South Radar [02].", Map.south_defused ); OnTrigger( "base_lever1_goto", Map.gate_lever ); OnTrigger( "base_gate1_goto", Map.gate_trigger ); SetMapGoalProperties( "ATTACK_.*", {MinCampTime=15, MaxCampTime=30}); SetMapGoalProperties( "DEFEND_.*", {MinCampTime=20, MaxCampTime=40}); SetMapGoalProperties( "DEFEND_rNorth_a7*", {MinCampTime=2, MaxCampTime=5}); // cs: just peak here since its so exposed SetMapGoalProperties( "CAMP_.*", {MinCampTime=30, MaxCampTime=60}); SetMapGoalProperties( "MOUNT.*", {MinCampTime=30, MaxCampTime=60}); SetGoalPriority( "CALL.*", 0.9 ); SetGoalPriority( "ARTILLLERY.*", 1.2 ); SetGoalPriority( "DEFEND_eng.*", 0.9 ); Util.SetMaxUsers( 1, "MOUNT.*" ); Util.SetMaxUsers( 1, "DEFEND.*" ); Util.SetMaxUsers( 1, "CAMP.*" ); Util.SetMaxUsers( 2, "ATTACK_bSouth[24]" ); ETUtil.SetPrimaryGoals(1.0); SetGoalPriority( "DEFEND_rNorth_a[16]", 0.60 ); SetGoalPriority( "ATTACK_bSouth[24]", 0.55 ); Util.LimitToClass("MOUNT.*", TEAM.AXIS, CLASS.ENGINEER, CLASS.FIELDOPS); Util.LimitToClass("DEFEND_eng.*", TEAM.AXIS, CLASS.ENGINEER); Util.LimitToClass("DEFEND_eng.*", TEAM.ALLIES, CLASS.ENGINEER); Util.DisableGoal(".*", true); // all but routes //for now, axis will give up the south plant SetAvailableMapGoals( TEAM.AXIS, true, { "DEFEND_rNorth_a.*", "CAMP_rPanzSouth.*", "CAMP_rPanzNorth.*", }); SetAvailableMapGoals( TEAM.ALLIES, true, { "ATTACK_bNorth.*", "BUILD_Command_Post", "CAMP_bPanzNorth.*", Map.Plant_South, "DEFEND_engSouth.*", "ATTACK_bSouth[24]", }); // *** Artillery SetAvailableMapGoals( TEAM.ALLIES, true, "CALLARTILLERY_bSpawnkill.*" ); // To call on axis spawn SetAvailableMapGoals( TEAM.ALLIES, true, { "ARTILLERY_D_target_net_jail", "ARTILLERY_S_bSpawnkill.*", "ARTILLERY_D_target_bridge", }); SetAvailableMapGoals( TEAM.AXIS, true, "ARTILLERY_S_target_r2_arch" ); SetAvailableMapGoals( TEAM.AXIS, true, "ARTILLERY_S_target_nwc" ); // gate side of tunnel OnTriggerRegion(Vector3(603,2690,128), 200, Map.NorthTrigger); OnTriggerRegion(Vector3(930,1618,384), 200, Map.NorthTrigger); MapRoutes = { PLANT_South_Radar_02 = { ROUTE_bSpawn1 = { ROUTE_office = { ROUTE_uppersouth = {}, ROUTE_lowersouth = {}, }, }, ROUTE_bSpawn2 = { ROUTE_office = { ROUTE_uppersouth = {}, ROUTE_lowersouth = {}, }, }, }, PLANT_North_Radar_01 = { ROUTE_bSpawn1 = { ROUTE_office = { ROUTE_uppersouth = { Weight = 2, ROUTE_netower = {}, }, ROUTE_lowersouth = { ROUTE_zone3 = {}, }, }, ROUTE_ntunnel = {Weight = 3,}, }, ROUTE_bSpawn2 = { ROUTE_office = { Weight = 2, ROUTE_uppersouth = { Weight = 2, ROUTE_netower = {}, }, ROUTE_lowersouth = { ROUTE_zone3 = {}, }, }, ROUTE_ntunnel = {}, }, }, DEFEND_rNorth_a1 = { ROUTE_rSpawn = { ROUTE_tinroof = {}, ROUTE_nstairs = { Weight = 3, }, }, }, }; MapRoutes["ATTACK_bNorth.*"] = MapRoutes.PLANT_North_Radar_01; MapRoutes["CAMP_bPanzNorth.*"] = MapRoutes.PLANT_North_Radar_01; MapRoutes["DEFEND_rNorth_a.*"] = MapRoutes.DEFEND_rNorth_a1; MapRoutes["DEFEND_rNorth_c.*"] = MapRoutes.DEFEND_rNorth_a1; MapRoutes.CAMP_rPanzNorth3 = MapRoutes.DEFEND_rNorth_a1; MapRoutes["ATTACK_bSouth.*"] = MapRoutes.PLANT_South_Radar_02; MapRoutes.CALLARTILLERY_bSpawnkill_1 = MapRoutes.PLANT_North_Radar_01; Util.Routes(MapRoutes); Util.UpdateSwitchData(); Util.MapDebugPrint( "OnMapLoad" ); }; global OnBotJoin = function( bot ) { bot.TargetBreakableDist = 80.0; };