//========================================================================================== // // streets.gm // // Who When What //------------------------------------------------------------------------------------------ // ^1[UJE]^3Niek 31 July 2015 Initial Script // //========================================================================================== // global Map = { Debug = 1, // please set to zero before distributing your script Allied_MG_Built = function( trigger ) { Util.MapDebugPrint( "Allied_MG_Built" ); }, Command_Post_Built = function( trigger ) { Util.MapDebugPrint( "Command_Post_Built" ); }, Tank_Built = function( trigger ) { Util.MapDebugPrint( "Tank_Built" ); }, Allied_MG_Destroyed = function( trigger ) { Util.MapDebugPrint( "Allied_MG_Destroyed" ); }, Command_Post_Destroyed = function( trigger ) { Util.MapDebugPrint( "Command_Post_Destroyed" ); }, axis_gold_Taken = function( trigger ) { Util.MapDebugPrint( "axis_gold_Taken" ); }, axis_gold_Returned = function( trigger ) { Util.MapDebugPrint( "axis_gold_Returned" ); }, axis_gold_Secured = function( trigger ) { Util.MapDebugPrint( "axis_gold_Secured" ); }, }; global OnMapLoad = function() { // Register callback functions OnTrigger( "MISSING_STRING", Map.Allied_MG_Built ); OnTrigger( "MISSING_STRING", Map.Command_Post_Built ); OnTrigger( "MISSING_STRING", Map.Tank_Built ); OnTrigger( "MISSING_STRING", Map.Allied_MG_Destroyed ); OnTrigger( "MISSING_STRING", Map.Command_Post_Destroyed ); OnTrigger( "MISSING_STRING", Map.axis_gold_Taken ); OnTrigger( "MISSING_STRING", Map.axis_gold_Returned ); OnTrigger( "MISSING_STRING", Map.axis_gold_Secured ); //~Util.DisableGoal( ".*", true ); // all but routes //~SetAvailableMapGoals( TEAM.AXIS, true, "ATTACK_.*" ); //~SetAvailableMapGoals( TEAM.ALLIES, true, "ATTACK_.*" ); // Max users per goal //Util.SetMaxUsers( 1, "DEFEND_.*" ); //Util.SetMaxUsers( 1, "GRENADE_.*" ); //Util.SetMaxUsers( 1, "MOUNTMG42_.*" ); // Camp times SetMapGoalProperties( "MOUNTMG42_.*", {MinCampTime=15, MaxCampTime=90} ); SetMapGoalProperties( "MOBILEMG42_.*", {MinCampTime=10, MaxCampTime=60} ); 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_Tank = { }, BUILD_Allied_MG = { }, PLANT_Allied_MG = { }, BUILD_Command_Post = { }, PLANT_Command_Post = { }, FLAG_axis_gold = { }, }; Util.Routes(MapRoutes); };