//========================================================================================== // // tiger_dump.gm // // Who When What //------------------------------------------------------------------------------------------ // ^4Tardis 30 December 2010 Converted from fuledump // AXIS ATTACK MAP // ^4Tardis 05 September 2011 NOTE: Use with tiger_dump_b7.pk3 // ^4Tardis 22 December 2011 Fixed some bugs //========================================================================================== // global Map = { Debug = 0, // please set to zero before distributing your script DispenseHealthTime = 10.0, DispenseAmmoTime = 1.0, DefendingTeam = TEAM.ALLIES, Tunnel_Doors = true, Depot_Gates = true, Tank_Over_Bridge = false, Tank_Near_Bridge = false, Front_Dump = false, Rear_Dump = false, FuelDumpDyno = 0, tbdoorOne = false, //closed tbdoorTwo = false, TankStatus = 1, //tank is repaired by default BridgeStatus = 0, //not built FootBridgeStatus = 0, // AXIS 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 ) { // Axis goals sleep( 2 ); SetAvailableMapGoals( TEAM.AXIS, false, { "ATTACK_Depot_Side_Wall.*", "MOUNT_tank", "ESCORT_tank", "BUILD_Tank", }); SetAvailableMapGoals( TEAM.AXIS, true, { "ATTACK_Fuel_Dump_[45]", "PLANT_West_Axis_Base_Fortification", }); // Allied goals SetAvailableMapGoals( TEAM.ALLIES, true, "PLANTMINE_rWall.*" ); SetAvailableMapGoals( TEAM.ALLIES, false, "BUILD_Side_MG" ); Util.MapDebugPrint( "depotsidewall_Destroyed" ); }, tbdoorone = function( trigger ) { 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<