//========================================================================================== // // pier16_v3.gm // // Who When What //------------------------------------------------------------------------------------------ // Blindman 12/2/09 draft // MickyP 01/11/09 Removed Secret areas waypoints/script // //========================================================================================== // global Map = { Navigation = { ladder = { navigate = function(_this) { _this.Bot.HoldButton(BTN.FORWARD, 2); sleep(2); }, }, ladder2 = { navigate = function(_this) { _this.Bot.HoldButton(BTN.FORWARD, 3); sleep(3); }, }, l2 = { navigate = function(_this) { _this.Bot.HoldButton(BTN.FORWARD, 3); sleep(3); }, }, l1 = { navigate = function(_this) { _this.Bot.HoldButton(BTN.FORWARD, 3); sleep(3); }, }, ladder3 = { navigate = function(_this) { _this.Bot.HoldButton(BTN.FORWARD, 3); sleep(3); }, }, strafe_l_point = { navigate = function(_this) { _this.Bot.HoldButton(BTN.STRAFE_L, 2); sleep(2); }, }, strafe_r_point = { navigate = function(_this) { _this.Bot.HoldButton(BTN.STRAFE_L, 2); sleep(2); }, }, }, Switches = { door2 = { WaypointName = "door2", Priority = 0, Enabled = true, LimitBots = 1, LimitTeam = (1< 0 ) { SetAvailableMapGoals( TEAM.ALLIES, true, "SWITCH_door1" ); SetAvailableMapGoals( TEAM.AXIS, false, "SWITCH_door1" ); Map.DoorStatus = 0; Util.MapDebugPrint("^1Closed", true); } }, side_open = function(trigger) { vel = ToVector(trigger.Action); if ( vel.y > 0 ) { Map.Switches.door2.Enabled = false; Map.Door2Status = 1; Util.MapDebugPrint( "side_Open", true ); } else if ( vel.y < 0 ) { Map.Switches.door2.Enabled = true; Map.Door2Status = 0; Util.MapDebugPrint("^8side_Closed",true); } }, }; global OnMapLoad = function() { OnTrigger( "MISSING_STRING", Map.Command_Post_Built ); OnTrigger( "Allies have built the East Assault Ramp!", Map.East_Assault_Ramp_Built ); OnTrigger( "Allies have built the West Assault Ramp!" , Map.West_Assault_Ramp_Built ); OnTrigger( "MISSING_STRING", Map.Command_Post_Destroyed ); OnTrigger( "Allies have access to the Side Warehouse Door!", Map.Cracked_Wall_Destroyed ); OnTrigger( "Axis have destroyed the East Assault Ramp!" , Map.East_Assault_Ramp_Destroyed ); OnTrigger( "Allies have destroyed the East Hull!", Map.East_Hull_Destroyed ); OnTrigger( "Allies have blown up the Main Warehouse Door!", Map.Main_Warehouse_Entrance_Destroyed ); OnTrigger( "Time limit bonus: +5 minutes", Map.Tunnel_Support_Pillar_Destroyed ); OnTrigger( "Axis have destroyed the West Assault Ramp!", Map.West_Assault_Ramp_Destroyed ); OnTrigger( "Allies have destroyed the West Hull!", Map.West_Hull_Destroyed ); OnTrigger( "Allies have taken the generator battery!", Map.generator_battery_Taken ); OnTrigger( "Allies have successfully powered the generator! Fuel Depot accessible!", Map.CAPPOINT_337_Captured ); OnTrigger( "Planted at the Tunnel Support Pillar.", Map.pillar_plant ); OnTrigger( "auto_door_switch_goto", Map.door_open ); OnTrigger( "axiswall_door_right_start", Map.side_open ); SetAvailableMapGoals( TEAM.AXIS, false, ".*" ); SetAvailableMapGoals( TEAM.ALLIES, false, ".*" ); // Map.Switches.door1.Enabled = true; // Map.Switches.door2.Enabled = true; SetAvailableMapGoals( TEAM.ALLIES, true, { "ATTACK_MAINDOOR_.*", "PLANT_Main_Warehouse_Entrance", "PLANT_Cracked_Wall", }); SetAvailableMapGoals( TEAM.AXIS, true, "DEFEND_ddoor.*" ); //SetAvailableMapGoals( TEAM.AXIS, true, "CALLARTILLERY_maindoor.*" ); //no such goals? Util.SetMaxUsers( 1, "DEFEND_.*" ); Util.SetMaxUsers( 1, "SWITCH_.*" ); Util.SetMaxUsers( 1, "FLAG_generator_battery" ); Util.SetGoalPosition( 3465.6, 4498.4, 59.202, "PLANT_West_Assault_Ramp" ) ; SetMapGoalProperties( "DEFEND_.*", {MinCampTime=30, MaxCampTime=90} ); SetMapGoalProperties( "MOUNT_.*", {MinCampTime=30, MaxCampTime=90} ); SetMapGoalProperties( "MOBILEMG42_.*", {MinCampTime=30, MaxCampTime=90} ); SetMapGoalProperties( "MOUNTMG42_.*", {MinCampTime=30, MaxCampTime=90} ); SetMapGoalProperties( "ATTACK_.*", {MinCampTime=30, MaxCampTime=90} ); Util.EnableGoal("ROUTE_.*"); //enables for both teams SetGoalPriority( "PLANT_West_Assault_Ramp", 0.45 , TEAM.AXIS, CLASS.ENGINEER); Util.UpdateSwitchData(); Util.MapDebugPrint("OnMapLoad"); }; global OnBotJoin = function( bot ) { bot.TargetBreakableDist = 100.0; };