//========================================================================================== // // ctf_temple_b1.gm // // Who When What //------------------------------------------------------------------------------------------ // MickyP 30 October 2012 Initial Script // //========================================================================================== // global Map = { ShowMovers = false, Flag_Axis_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Flag_Axis_Captured" ); }, Flag_Allies_Captured = function( trigger ) { if ( TestMap ) { return; } Util.MapDebugPrint( "Flag_Allies_Captured" ); }, }; global OnMapLoad = function() { if ( TestMapOn ) { Util.AutoTestMap(); } // Register callback functions OnTrigger( "MISSING_STRING", Map.Flag_Axis_Captured ); OnTrigger( "MISSING_STRING", Map.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, "ATTACK_.*" ); Util.SetMaxUsers( 1, "DEFEND_.*" ); Util.SetMaxUsers( 1, "GRENADE_.*" ); Util.SetMaxUsers( 1, "SNIPE_.*" ); Util.SetMaxUsers( 1, "MOUNTMG42_.*" ); Util.SetMaxUsers( 1, "MOBILEMG42_.*" ); Util.SetMaxUsers( 1, "MOBILEMORTAR_.*" ); Util.SetMaxUsers( 1, "AIRSTRIKE_.*" ); Util.SetMaxUsers( 1, "CALLARTILLERY_.*" ); // Camp times SetMapGoalProperties( "MOUNTMG42_.*", {MinCampTime=15, MaxCampTime=90} ); SetMapGoalProperties( "MOBILEMG42_.*", {MinCampTime=10, MaxCampTime=60} ); MapRoutes = { CHECKPOINT_Flag = { ROUTE_Allies_Spawn = { ROUTE_South = { }, ROUTE_East_Allies = { ROUTE_East = { }, }, ROUTE_West_Allies = { ROUTE_West = { }, }, }, ROUTE_Axis_Spawn = { ROUTE_North = { }, ROUTE_West_Axis = { ROUTE_West = { }, }, ROUTE_East_Axis = { ROUTE_East = { }, }, }, }, }; MapRoutes.CAMP_Flag_1 = MapRoutes.CHECKPOINT_Flag; MapRoutes.CAMP_Flag_2 = MapRoutes.CHECKPOINT_Flag; MapRoutes.CAMP_Flag_3 = MapRoutes.CHECKPOINT_Flag; MapRoutes.CAMP_Flag_4 = MapRoutes.CHECKPOINT_Flag; MapRoutes.CAMP_Flag_5 = MapRoutes.CHECKPOINT_Flag; MapRoutes.CAMP_Flag_6 = MapRoutes.CHECKPOINT_Flag; MapRoutes.CAMP_Flag_7 = MapRoutes.CHECKPOINT_Flag; MapRoutes.CAMP_Flag_8 = MapRoutes.CHECKPOINT_Flag; Util.Routes(MapRoutes); 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; };