Advertisement
Guest User

server.cs

a guest
Aug 6th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.57 KB | None | 0 0
  1. if(!isObject(botSimGroup))
  2. {
  3.     new SimSet(botSimGroup);
  4. }
  5. exec("./Sounds/Sounds.cs");
  6. exec("./Equipment/Particles.cs");
  7. //Creates BBB's heart if it doesn't exist already for whatever reason.
  8. if(!isObject(BBB_System))
  9. {
  10.     %BBB = new scriptObject(BBB_System)
  11.     {
  12.         match = false;
  13.         traitorList = "";
  14.         TraitorCount = 0;
  15.         InnocentCount = 0;
  16.         minutes = 0;
  17.         seconds = 0;
  18.         maxSeconds = 0;
  19.         timeDisplay = "0:00";
  20.         totalEquipment = 0;
  21.         currentDeathID = 0;
  22.     };
  23.     for(%i = 0; %i < $Pref::Server::MaxPlayers; %i++)
  24.         %BBB.DeathDetails[%i] = new ScriptObject(){class = "DeathObject";};
  25.     %BBB.timer(0,30);
  26.     %BBB.MarkList[10] = "||||||||||";
  27.     %BBB.MarkList[9] = "|||||||||<color:ff0000>|";
  28.     %BBB.MarkList[8] = "||||||||<color:ff0000>||";
  29.     %BBB.MarkList[7] = "|||||||<color:ff0000>|||";
  30.     %BBB.MarkList[6] = "||||||<color:ff0000>||||";
  31.     %BBB.MarkList[5] = "|||||<color:ff0000>|||||";
  32.     %BBB.MarkList[4] = "||||<color:ff0000>||||||";
  33.     %BBB.MarkList[3] = "|||<color:ff0000>|||||||";
  34.     %BBB.MarkList[2] = "||<color:ff0000>||||||||";
  35.     %BBB.MarkList[1] = "|<color:ff0000>|||||||||";
  36.     %BBB.RoleColor["Traitor"] = "\c0";
  37.     %BBB.RoleColor["Innocent"] = "\c2";
  38.     %BBB.RoleColor["Detective"] = "\c1";
  39. }
  40. $BBB::Path = "Add-Ons/Gamemode_BBBRedux/";
  41. function BBB_Init(%dir)
  42. {
  43.     %rdir = $BBB::Path @ %dir @ "/";
  44.     echo(" *Loading scripts ("@%dir@").");
  45.     for(%file=findFirstFile(%rdir @ "*.cs"); %file !$= ""; %file=findNextFile(%rdir @ "*.cs"))
  46.     {
  47.         if(!isFile(%file)) continue;
  48.             exec(%file);
  49.     }
  50.     echo(" *Finished.");
  51. }
  52. BBB_Init("Systems");
  53. BBB_Init("PlayerScripts");
  54. BBB_Init("Equipment");
  55. if(!BBB_System.createdEquipment)
  56. {
  57.     BBB_System.createEquipment("Armor","Armor","1 Credit\nDamage is reduced to 75% when purchased.",true,"Traitor","255 0 0",1,grantArmor,"","");
  58.     BBB_System.createEquipment("Flare","Flare Gun","1 Credit\nA Flare Gun which does 25 damage initially, and 75 over 1.5seconds.",true,"Traitor","255 128 64",1,FlareItem,3,"Item");
  59.     BBB_System.createEquipment("SPistol","Stealth Pistol","1 Credit\nA Stealth Pistol that doest critical damage on headshot and leaves no trace on impact.",true,"Traitor","128 128 128",1,StealthItem,1,"Item");
  60.     BBB_System.createEquipment("CBox","Cardboard Box","2 Credits\nA cardboard box with advanced sneaking and camoflage techniques. Only functions when there is no motion.",true,"Traitor","117 76 36",2,StealthBoxItem,3,"Item");
  61.     BBB_System.createEquipment("HealthS","Health Station","2 Credits\nA microwave that produces pizzarolls. Heals 3 HP on activate.",true,"Detective","0 148 255",2,createStation,"","");
  62.     BBB_System.createdEquipment = true;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement