//========================================================================================== // // fueldump_revenge.gm // // Who When What //------------------------------------------------------------------------------------------ // ^4Tardis 05 February 2012 Initial Script // ^4Tardis 05 February 2012 Convered From fueldump //========================================================================================== // global Map = { Ammo_Cabinet_lms_ammocabinet = "AMMOCAB_lms_ammocabinet", Ammo_Cabinet_tankbay_ammocabinet = "AMMOCAB_tankbay_ammocabinet", Ammo_Cabinet_alliedhut_ammocabinet = "AMMOCAB_alliedhut_ammocabinet", Health_Cabinet_alliedhut_healthcabinet = "HEALTHCAB_alliedhut_healthcabinet", Health_Cabinet_lms_healthcabinet = "HEALTHCAB_lms_healthcabinet", Health_Cabinet_tankbay_healthcabinet = "HEALTHCAB_tankbay_healthcabinet", Build_Allied_Command_Post = "BUILD_Allied_Command_Post", Build_Axis_Command_Post = "BUILD_Axis_Command_Post", Build_Bridge = "BUILD_Bridge", Build_East_Axis_Base_Fortification = "BUILD_East_Allies_Base_Fortification", Build_Foot_Bridge = "BUILD_Foot_Bridge", Build_Tower_MG = "BUILD_Tower_MG", Build_Side_MG = "BUILD_Side_MG", Build_Tank = "BUILD_Tank", Build_Tunnel_MG = "BUILD_Tunnel_MG", Build_West_Axis_Base_Fortification = "BUILD_West_Allies_Base_Fortification", Plant_Allied_Command_Post = "PLANT_Allied_Command_Post", Plant_Axis_Command_Post = "PLANT_Axis_Command_Post", Plant_Bridge = "PLANT_Bridge", Plant_East_Axis_Base_Fortification = "PLANT_East_Allies_Base_Fortification", Plant_Foot_Bridge = "PLANT_Foot_Bridge", Plant_Fuel_Dump = "PLANT_Fuel_Dump", Plant_Tower_MG = "PLANT_Tower_MG", Plant_Side_MG = "PLANT_Side_MG", Plant_Tunnel_MG = "PLANT_Tunnel_MG", Plant_West_Axis_Base_Fortification = "PLANT_West_Allies_Base_Fortification", Mount_Tower_MG = "MOUNTMG42_Tower_MG", Mount_Side_MG = "MOUNTMG42_Side_MG", Mount_Tunnel_MG = "MOUNTMG42_Tunnel_MG", Mount_alliedtunnel_mg42 = "MOUNTMG42_alliedtunnel_mg42", Mount_axisbase_mg42 = "MOUNTMG42_axisbase_mg42", Repair_Tower_MG = "REPAIRMG42_Tower_MG", Repair_Side_MG = "REPAIRMG42_Side_MG", Repair_Tunnel_MG = "REPAIRMG42_Tunnel_MG", Repair_alliedtunnel_mg42 = "REPAIRMG42_alliedtunnel_mg42", Repair_axisbase_mg42 = "REPAIRMG42_axisbase_mg42", Mover_tank = "MOVER_tank", DispenseHealthTime = 10.0, DispenseAmmoTime = 1.0, DefendingTeam = TEAM.AXIS, Tunnel_Doors = true, Depot_Gates = true, Tank_Over_Bridge = false, Tank_Near_Bridge = false, Front_Dump = false, Rear_Dump = false, FuelDumpDyno = 0, tbdoorOne = true, //open tbdoorTwo = true, TankStatus = 1, //tank is repaired by default BridgeStatus = 0, //not built FootBridgeStatus = 0, // allied covert op on depot roof will always be detected // key = position, value = radius CovertDetectionSpots = { { Vector3(-10829, -6607, 640), 500 }, }, Switches = { tbdoorOne = { WaypointName = "tbdoor1", LimitTeam = 0, LimitClass = (1< 0 ) { Util.EnableGroup( "depotroof", TEAM.ALLIES ); } // call arty from further back now Util.DisableGroup( "depotwallarty", TEAM.ALLIES ); Util.EnableGroup( "depotarty", TEAM.ALLIES ); // set up some bot chat warnings about incoming enemies based on region triggers iw1 = OnTriggerRegion( AABB(-11668,-5740,161, -11469,-5512,393), RegionTrigger.IntrusionWarning ); iw2 = OnTriggerRegion( AABB(-9952,-5522,180, -9628,-5333,364), RegionTrigger.IntrusionWarning ); iw3 = OnTriggerRegion( AABB(-10136,-6699,146, -9994,-6608,367), RegionTrigger.IntrusionWarning ); iw4 = OnTriggerRegion( AABB(-11369,-7391,160, -11206,-6991,433), RegionTrigger.IntrusionWarning ); io1 = OnTriggerRegion( AABB(-11184,-7426,178, -11106,-7005,410), RegionTrigger.IntrusionWarningEngObj ); io2 = OnTriggerRegion( AABB(-11064,-7099,158, -10926,-6968,339), RegionTrigger.IntrusionWarningEngObj ); io3 = OnTriggerRegion( AABB(-10580,-7450,158, -10445,-7011,397), RegionTrigger.IntrusionWarningEngObj ); ac1 = OnTriggerRegion( AABB(-10861,-7124,165, -10641,-6995,351), RegionTrigger.AllClear ); Util.MapDebugPrint( "depotgates_Destroyed" ); }, depotsidewall_Destroyed = function( trigger ) { if ( TestMap ) { return; } // Allied goals sleep( 2 ); SetAvailableMapGoals( TEAM.AXIS, false, "ATTACK_Depot_Side_Wall.*" ); SetAvailableMapGoals( TEAM.AXIS, false, "MOUNT_tank" ); SetAvailableMapGoals( TEAM.AXIS, false, "ESCORT_tank" ); SetAvailableMapGoals( TEAM.AXIS, false, "BUILD_Tank" ); SetAvailableMapGoals( TEAM.AXIS, true, "ATTACK_Fuel_Dump_[45]" ); SetAvailableMapGoals( TEAM.AXIS, true, Map.Plant_West_Axis_Base_Fortification ); // Axis goals SetAvailableMapGoals( TEAM.ALLIES, true, "PLANTMINE_rWall.*" ); SetAvailableMapGoals( TEAM.ALLIES, false, Map.Build_Side_MG ); Util.MapDebugPrint( "depotsidewall_Destroyed" ); }, tbdoorone = function( trigger ) { if ( TestMap ) { return; } if ( !Map.Tunnel_Doors ) { vel = ToVector(trigger.Action); if ( vel[2] < 0 ) { Map.Switches.tbdoorOne.LimitTeam = (1< 0 ) { if ( Map.Depot_Gates ) { Map.Switches.tbdoorOne.LimitTeam = (1< 0 ) { if ( Map.Depot_Gates ) { Map.Switches.tbdoorTwo.LimitTeam = (1<