//========================================================================================== // // atlantic.gm // // Who When What //------------------------------------------------------------------------------------------ // jaskot 02/04/09 Created original script with makegm // jaskot 02/04/09 Updated script to allow unopposed offense // //========================================================================================== // global Map = { Command_Post_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Command_Post_Built" ); }, Radio_door_Built = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Radio_door_Built" ); }, Atlantic_Wall_Destroyed = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Atlantic_Wall_Destroyed" ); }, Axis_ammo_storage_Destroyed = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Axis_ammo_storage_Destroyed" ); }, Command_Post_Destroyed = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Command_Post_Destroyed" ); }, Radio_door_Destroyed = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Radio_door_Destroyed" ); }, axis_radio_room_Destroyed = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "axis_radio_room_Destroyed" ); }, broken_wall_Destroyed = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "broken_wall_Destroyed" ); }, bunker_wall_Destroyed = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "bunker_wall_Destroyed" ); }, oldcityflag_Axis_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "oldcityflag_Axis_Captured" ); }, oldcityflag_Allies_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "oldcityflag_Allies_Captured" ); }, Door_Open = function( trigger ) { if ( TestMap ) { return; } vel = ToVector(trigger.Action); if ( vel.x > 0 ) { SetAvailableMapGoals( TEAM.ALLIES, false, "SWITCH_Door" ); SetAvailableMapGoals( TEAM.AXIS, true, "SWITCH_Door" ); Util.MapDebugPrint("Door_Open"); } else { SetAvailableMapGoals( TEAM.ALLIES, true, "SWITCH_Door" ); SetAvailableMapGoals( TEAM.AXIS, false, "SWITCH_Door" ); Util.MapDebugPrint("Door_Closing"); } }, }; global OnMapLoad = function() { if ( TestMapOn ) { Util.AutoTestMap(); } OnTrigger( "Allied Command Post constructed. Charge speed increased!", Map.Command_Post_Built ); OnTrigger( "MISSING_STRING", Map.Radio_door_Built ); OnTrigger( "Allies have destroyed the Seawall!", Map.Atlantic_Wall_Destroyed ); OnTrigger( "Allied team has destroyed ammonution storage", Map.Axis_ammo_storage_Destroyed ); OnTrigger( "MISSING_STRING", Map.Command_Post_Destroyed ); OnTrigger( "MISSING_STRING", Map.Radio_door_Destroyed ); OnTrigger( "Allies have destroyed the radio room!", Map.axis_radio_room_Destroyed ); OnTrigger( "East bunker wall destroyed", Map.broken_wall_Destroyed ); OnTrigger( "Beach entrance to east bunker destroyed!", Map.bunker_wall_Destroyed ); OnTrigger( "Axis capture the forward bunker", Map.oldcityflag_Axis_Captured ); OnTrigger( "Allies capture the forward bunker", Map.oldcityflag_Allies_Captured ); OnTrigger( "door_right_goto", Map.Door_Open ); //~SetAvailableMapGoals( TEAM.AXIS, false, ".*" ); //~SetAvailableMapGoals( TEAM.ALLIES, false, ".*" ); SetAvailableMapGoals( TEAM.ALLIES, false, "MOUNTMG42.*" ); SetAvailableMapGoals( TEAM.ALLIES, false, "REPAIRMG42.*" ); SetAvailableMapGoals( TEAM.ALLIES, false, "SWITCH_Door" ); SetAvailableMapGoals( TEAM.AXIS, false, ".*" ); SetAvailableMapGoals( TEAM.AXIS, false, "SWITCH_Door" ); Util.MapDebugPrint( "Omni-bot map script for " + GetMapName() + " executed." ); }; // Uncomment for shootable breakables global OnBotJoin = function( bot ) { //~ bot.TargetBreakableDist = 300.0; };