Advertisement
AvengersAssemble

CSSZMMA v2

Sep 4th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 6.97 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace CSSZMMA
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.ForegroundColor = ConsoleColor.Yellow;
  14.             Console.WriteLine("                       ****By Avengers-Assemble****");
  15.             Console.ForegroundColor = ConsoleColor.Green;
  16.             Console.WriteLine("                 ***Special thanks to MrAlex & mcr0yal*** \n");
  17.             Console.ForegroundColor = ConsoleColor.Cyan;
  18.             Console.WriteLine("Welcome to the Counter-Strike Source Zombie Mode spots advisor");
  19.             bool exitMapsLoop = false;
  20.             while (exitMapsLoop == false)
  21.             {
  22.                 bool exitEvacLoop = false;
  23.                 bool exitYesNoLoop = false;
  24.                 Console.ForegroundColor = ConsoleColor.Cyan;
  25.                 Console.WriteLine("Please choose one of the followings (type map number):");
  26.                 Console.WriteLine("1. zm_ATIX_Apocalypse_b6");
  27.                 Console.WriteLine("2. zm_fubar_towers_v4");
  28.                 Console.WriteLine("3. ZM_Krusty_krab_a3");
  29.                 Console.WriteLine("4. zm_ezir_hacker");
  30.                 Console.WriteLine("5. zm_Lila_hacker");
  31.                 Console.WriteLine("6. zm_420_beachstrike_HeLL");
  32.                 Console.WriteLine("7. zm_4way_tunnel_v2");
  33.                 Console.WriteLine("0. exit program");
  34.                 int actionNum = int.Parse(Console.ReadLine());
  35.                 Console.WriteLine();
  36.                 switch (actionNum)
  37.                 {
  38.                     case 0:
  39.                         Console.WriteLine("Are you sure you would like to close the program?");
  40.                         while (exitYesNoLoop == false)
  41.                         {
  42.                             Console.ForegroundColor = ConsoleColor.Cyan;
  43.                             Console.WriteLine("y / n");
  44.                             string yesNo = Console.ReadLine();
  45.                             Console.ForegroundColor = ConsoleColor.White;
  46.                             if (yesNo == "y")
  47.                             {
  48.                                 exitMapsLoop = true;
  49.                                 exitYesNoLoop = true;
  50.                             }
  51.                             if (yesNo == "n")
  52.                                 exitYesNoLoop = true;
  53.                             if (yesNo != "y" && yesNo != "n")
  54.                                 Console.WriteLine("Invalid order! You can only type 'y' or 'n'!");
  55.                         }
  56.                         break;
  57.                     case 1:
  58.                         while (exitEvacLoop == false)
  59.                         {
  60.                             Console.WriteLine("Please choose one of the following evacuations (type evac number):");
  61.                             Console.WriteLine("1. Helicopter");
  62.                             Console.WriteLine("2. Truck");
  63.                             Console.WriteLine("3. Train");
  64.                             Console.WriteLine("4. Boat");
  65.                             exitEvacLoop = false;
  66.                             int evacNum = int.Parse(Console.ReadLine());
  67.                             switch (evacNum)
  68.                             {
  69.                                 case 1:
  70.                                     Console.WriteLine("Latern/Retreat/White house' rooftop are the best spots.");
  71.                                     break;
  72.                                 case 2:
  73.                                     Console.WriteLine("There are two building that contain a door that unlocks after a certain amount\nof time. These doors lead to a secret room that only humans (CTs) can enter. In that room, there is a glass wall that breaks after a certain amount of time,\nthat glass wall leads directly into the truck.");
  74.                                     break;
  75.                                 case 3:
  76.                                     Console.WriteLine("In front of the enterance to the train, there is a building with a breakable\ndoor. Get to the top floor of that building.");
  77.                                     Console.WriteLine("Otherwise, go to retreat (heli spot), there is a secret enterance to the train\nthere, placed behind the big truck.");
  78.                                     break;
  79.                                 case 4:
  80.                                     Console.WriteLine("White house/building in front of train");
  81.                                     break;
  82.                                 default:
  83.                                     Console.WriteLine("Invalid evacuation number! Please choose again");
  84.                                     break;
  85.                             }
  86.                             Console.WriteLine();
  87.                             if (evacNum >= 1 && evacNum <= 4)
  88.                                 exitEvacLoop = !exitEvacLoop;
  89.                         }
  90.                         break;
  91.                     case 2:
  92.                         Console.WriteLine("Sky/disco (not a good spot if some of the zombies (Ts) know about the teleport\nto the disco)");
  93.                         break;
  94.                     case 3:
  95.                         Console.WriteLine("This map has many teleports and secrets, most of which are useless. However,\nthere are a few useful ones. One of them leads to a secret room, which is a\ngreat place to camp with 2 friends with LMGs.");
  96.                         break;
  97.                     case 4:
  98.                         Console.WriteLine("Sniping spot/breakable blocks room (need to use a certain strategy)/breakable\nfloor platform.");
  99.                         break;
  100.                     case 5:
  101.                         Console.WriteLine("This map is almost identical to zm_ezir_hacker (though it has less secrets and\nit's harder to use its teleports), thus the recommendations are the same as\nthose for zm_ezir_hacker.");
  102.                         break;
  103.                     case 6:
  104.                         Console.WriteLine("Rocks (greatly OP spot)/arrow/secret sky bridge (takes time to block so it's a\nrisk, but if you do manage to block it in time, it's almost impossible to get\nyou.");
  105.                         break;
  106.                     case 7:
  107.                         Console.WriteLine("Many places in this map are good if you have 5+ players with you, but the room\nwith sealable doors and air vents is best if you are only 1-3 guys.");
  108.                         break;
  109.                     default:
  110.                         Console.WriteLine("Invalid number. Please choose a number between 0 to 7");
  111.                         break;
  112.                 }
  113.                 if (exitMapsLoop == false)
  114.                 {
  115.                     Console.ForegroundColor = ConsoleColor.White;
  116.                     Console.WriteLine();
  117.                     Console.WriteLine("Press 'enter' (return) to choose another map.");
  118.                     Console.ReadLine();
  119.                 }
  120.             }
  121.         }
  122.     }
  123. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement