//========================================================================================== // // uje_christmas_tank.gm // // Who When What //------------------------------------------------------------------------------------------ // ^4Tardis 15 December 2014 Update Script // ^1[UJE]^3Captain 22 November 2016 Attack/Defense/Improvements/Clean //========================================================================================== // global Map = { Debug = 0, // please set to zero before distributing your script Movers = { "MOVER_tank", "MOVER_truck", "MOVER_achtbaan", }, Ammo_Cabinet_north_ammocabinet = "AMMOCAB_north_ammocabinet", Ammo_Cabinet_north_ammocabinet_1 = "AMMOCAB_north_ammocabinet_1", Ammo_Cabinet_north_ammocabinet_2 = "AMMOCAB_north_ammocabinet_2", Health_Cabinet_north_healthcabinet = "HEALTHCAB_north_healthcabinet", Health_Cabinet_north_healthcabinet_1 = "HEALTHCAB_north_healthcabinet_1", Health_Cabinet_north_healthcabinet_2 = "HEALTHCAB_north_healthcabinet_2", Build_Allied_Command_Post = "BUILD_Allied_Command_Post", Build_Axis_Command_Post = "BUILD_Axis_Command_Post", Build_Axis_MG42 = "BUILD_Axis_MG42", Build_Tank = "BUILD_Tank", Plant_Allied_Command_Post = "PLANT_Allied_Command_Post", Plant_Axis_Command_Post = "PLANT_Axis_Command_Post", Plant_Axis_MG42 = "PLANT_Axis_MG42", Plant_Axis_Presents = "PLANT_Axis_Presents", Mount_Axis_MG42 = "MOUNTMG42_Axis_MG42", Repair_Axis_MG42 = "REPAIRMG42_Axis_MG42", Mover_tank = "MOVER_tank", Mover_truck = "MOVER_truck", r1Pos = 0, wall_blown = true, r1 = { Name = "r1", TriggerOnEntity = GetGoal("MOVER_achtbaan").GetEntity(), OnEnter = function(ent) { Map.r1Pos = 1; Map.Switches.ride1.Enabled = false; Wp.SetWaypointFlag( "car", "closed", true ); if ( Map.Debug ) { Util.MapDebugPrint( "^3r1 ready" ); } }, OnExit = function(ent) { Map.r1Pos = -1; }, }, r2 = { Name = "r2", TriggerOnEntity = GetGoal("MOVER_achtbaan").GetEntity(), OnEnter = function(ent) { Map.r1Pos = 1; Map.Switches.ride1.Enabled = true; Wp.SetWaypointFlag( "car", "closed", false ); if ( Map.Debug ) { Util.MapDebugPrint( "^8car open" ); } }, OnExit = function(ent) { Map.r1Pos = -1; }, }, mg1 = { Name = "mg1", TriggerOnEntity = GetGoal("MOVER_tank").GetEntity(), OnEnter = function(ent) { SetAvailableMapGoals( TEAM.ALLIES, true, "MOBILEMG42_.*" ); SetAvailableMapGoals( TEAM.AXIS, true, { "MOUNTMG42_Axis_MG42", }); if ( Map.Debug ) { Util.MapDebugPrint( "^8mg spot on" ); } }, }, Switches = { ride1 = { WaypointName = "ride1", Enabled = true, LimitBots = 1, LimitTeam = (1<