global Map = { Quiet = true, // this gets rid of all the goal initialization spam Switches = { door1 = { WaypointName = "door1", Enabled = true, Debug = false, Priority = 0.9, LimitTeam = (1< 0 ) { Map.Switches.door2.Enabled = true; Map.Switches.door1.Enabled = false; SetAvailableMapGoals( TEAM.ALLIES, true, "PLANT_Axis_tunnel_gate" ); Map.DoorStatus = 1; print( "Open" ); } else if ( vel.z < 0 ) { Map.Switches.door2.Enabled = false; Map.Switches.door1.Enabled = true; //~ SetAvailableMapGoals( TEAM.ALLIES, false, "PLANT_Axis_tunnel_gate" ); Map.DoorStatus = 0; print("^1Closed"); } }, }; global OnMapLoad = function() { OnTrigger( "Allied have built the Allied Spawn Bridge!", Map.BUILD__Allied_Quick_Access_Bridge_Built ); OnTrigger( "MISSING_STRING", Map.Allied_Command_Post_Built ); OnTrigger( "MISSING_STRING", Map.Allied_MG42_Construction_Built ); OnTrigger( "MISSING_STRING", Map.Axis_MG42_Construction_Built ); OnTrigger( "MISSING_STRING", Map.Command_Post_Built ); OnTrigger( "MISSING_STRING", Map.PLANT__Allied_Quick_Access_Bridge_Destroyed ); OnTrigger( "MISSING_STRING", Map.Allied_Command_Post_Destroyed ); OnTrigger( "MISSING_STRING", Map.Allied_MG42_Construction_Destroyed ); OnTrigger( "MISSING_STRING", Map.Axis_MG42_Construction_Destroyed ); OnTrigger( "The Allies have destroyed the Axis tunnel gate!", Map.Axis_tunnel_gate_Destroyed ); OnTrigger( "MISSING_STRING", Map.Command_Post_Destroyed ); OnTrigger( "Allied team has disabled the North Radar 1!", Map.North_Radar_1_Destroyed ); OnTrigger( "^1Allied have blown Radar 1 door!!", Map.Radar_1_door_Destroyed ); OnTrigger( "^1Allied have blown Radar 2 door!!", Map.Radar_2_door_Destroyed ); OnTrigger( "Allied team has disabled the South Radar!", Map.South_Radar_2_Destroyed ); OnTrigger( "Allies have stolen the Baby Alien!", Map.docscaptured_Taken ); OnTrigger( "Flag returned docscaptured!", Map.docscaptured_returned ); //~ OnTrigger( "MISSING_STRING", Map.CAPPOINT_812_Captured ); OnTrigger( "Allies have transmitted the documents!", Map.CAPPOINT_835_Captured ); //~ OnTrigger( "base_gate1_goto", Map.base_gate1_goto ); OnTrigger( "base_lever1_goto", Map.door_open ); SetAvailableMapGoals( TEAM.AXIS, false, ".*" ); SetAvailableMapGoals( TEAM.ALLIES, false, ".*" ); SetAvailableMapGoals( TEAM.AXIS, true, "SNIPE_spawn1" ); SetAvailableMapGoals( TEAM.ALLIES, true, "BUILD__Allied_Quick_Access_Bridge" ); SetAvailableMapGoals( TEAM.AXIS, true, { "DEFEND_radar.*", "MOBILEMG42_roof1", "MOBILEMG42_radar1mg2", "DEFEND_alien.*", "HEALTHCAB_.*", "ARTILLERY_D_rdr", "ARTILLERY_S_rdr", "CALLARTILLERY_rdr", "ARTILLERY_S_radar", "CALLARTILLERY_axis1", "AMMOCAB_.*", "PLANT__Allied_Quick_Access_Bridge", "MOBILEMG42_radar2mg", "MOUNTMG42_818", "PLANTMINE_al.*", }); SetAvailableMapGoals( TEAM.ALLIES, true, { "HEALTHCAB_.*", "AMMOCAB_.*", "ATTACK_r1.*", "ATTACK_r2.*", "ARTILLERY_D_rdr", "ARTILLERY_S_rdr", "ARTILLERY_S_radar", "CALLARTILLERY_rdr1", "CALLARTILLERY_allied1", }); Util.SetMaxUsersInProgress( 1, "DEFEND_.*" ); Util.SetMaxUsersInProgress( 1, "PLANT_.*" ); Util.SetMaxUsersInProgress( 1, "BUILD_.*" ); Util.SetMaxUsersInProgress( 1, "MOUNT_.*" ); Util.SetMaxUsersInProgress( 1, "ATTACK_.*" ); Util.SetMaxUsersInProgress( 1, "MOUNTMG42_.*" ); Util.SetGoalPosition( -598,2035,32.1, "PLANT_Axis_tunnel_gate" ); Util.SetGoalPosition( 1093,1831,404, "MOBILEMG42_radar1mg2" ); Util.SetGoalPosition( -3100,1529,-168, "DEFEND_cap4" ); Util.SetGoalPosition( -3037,940,-168, "DEFEND_cap2" ); Util.SetGoalPosition( -3655,744,-168, "DEFEND_cap1" ); Util.SetGoalPosition( 1434.5,269,344, "ATTACK_r2a" ); SetMapGoalProperties( "DEFEND_.*", {mincamptime=25, maxcamptime=90} ); SetMapGoalProperties( "MOUNT_.*", {mincamptime=15, maxcamptime=40} ); SetMapGoalProperties( "MOBILEMG42_.*", {mincamptime=25, maxcamptime=90} ); SetMapGoalProperties( "ATTACK_.*", {mincamptime=25, maxcamptime=90} ); SetMapGoalProperties( "CAMP_.*", {mincamptime=35, maxcamptime=90} ); //~ SetGoalPriority( "DEFEND_cap.*", 0.99 ); //~ SetGoalPriority( "DEFEND_alien.*", 0.99 ); SetGoalPriority( "PLANT_Axis_tunnel_gate", 0.95 ); SetGoalPriority( "PLANT_Allied_door", 0.93 ); Map.Switches.door1.Enabled = true; Map.Switches.door2.Enabled = false; Util.UpdateSwitchData(); Util.MapDebugPrint (); print( "OnMapLoad" ); }; global OnBotJoin = function( bot ) { bot.TargetBreakableDist = 300.0; };