//========================================================================================== // // wtc_heist.gm // // Who When What //------------------------------------------------------------------------------------------ // ^1[UJE]^3Niek 04 January 2017 Initial Script // //========================================================================================== // global Map = { Debug = 1, // please set to zero before distributing your script Command_Post_Built = function( trigger ) { Util.MapDebugPrint( "Command_Post_Built" ); }, Command_Post_Destroyed = function( trigger ) { Util.MapDebugPrint( "Command_Post_Destroyed" ); }, allied_gold_Taken = function( trigger ) { Util.MapDebugPrint( "allied_gold_Taken" ); }, allied_gold_Returned = function( trigger ) { Util.MapDebugPrint( "allied_gold_Returned" ); }, allied_gold_Secured = function( trigger ) { Util.MapDebugPrint( "allied_gold_Secured" ); }, allied_flag_Axis_Captured = function( trigger ) { Util.MapDebugPrint( "allied_flag_Axis_Captured" ); }, allied_flag_Allies_Captured = function( trigger ) { Util.MapDebugPrint( "allied_flag_Allies_Captured" ); }, axis_flag_Axis_Captured = function( trigger ) { Util.MapDebugPrint( "axis_flag_Axis_Captured" ); }, axis_flag_Allies_Captured = function( trigger ) { Util.MapDebugPrint( "axis_flag_Allies_Captured" ); }, }; global OnMapLoad = function() { // Register callback functions OnTrigger( "MISSING_STRING", Map.Command_Post_Built ); OnTrigger( "MISSING_STRING", Map.Command_Post_Destroyed ); OnTrigger( "MISSING_STRING", Map.allied_gold_Taken ); OnTrigger( "MISSING_STRING", Map.allied_gold_Returned ); OnTrigger( "MISSING_STRING", Map.allied_gold_Secured ); OnTrigger( "MISSING_STRING", Map.allied_flag_Axis_Captured ); OnTrigger( "MISSING_STRING", Map.allied_flag_Allies_Captured ); OnTrigger( "MISSING_STRING", Map.axis_flag_Axis_Captured ); OnTrigger( "MISSING_STRING", Map.axis_flag_Allies_Captured ); //~Util.DisableGoal( ".*", true ); // all but routes //~SetAvailableMapGoals( TEAM.AXIS, true, "ATTACK_.*" ); //~SetAvailableMapGoals( TEAM.ALLIES, true, "ATTACK_.*" ); // Max users per goal //Util.SetMaxUsers( 1, "MOUNTMG42_.*" ); // Camp times //SetMapGoalProperties( "MOUNTMG42_.*", {MinCampTime=15, MaxCampTime=90} ); Util.MapDebugPrint( "Omni-bot map script for " + GetMapName() + " executed." ); }; global OnBotJoin = function( bot ) { // Uncomment for shootable breakables //~bot.TargetBreakableDist = 90.0; // Only set MaxViewDistance on maps with limited sight (e.g. fog) //~bot.MaxViewDistance = 2400; }; global InitializeRoutes = function() { MapRoutes = { BUILD_Command_Post = { }, PLANT_Command_Post = { }, CHECKPOINT_allied_flag = { }, CHECKPOINT_axis_flag = { }, FLAG_allied_gold = { }, }; Util.Routes(MapRoutes); };