Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!isObject(botSimGroup))
- {
- new SimSet(botSimGroup);
- }
- exec("./Sounds/Sounds.cs");
- exec("./Equipment/Particles.cs");
- //Creates BBB's heart if it doesn't exist already for whatever reason.
- if(!isObject(BBB_System))
- {
- %BBB = new scriptObject(BBB_System)
- {
- match = false;
- traitorList = "";
- TraitorCount = 0;
- InnocentCount = 0;
- minutes = 0;
- seconds = 0;
- maxSeconds = 0;
- timeDisplay = "0:00";
- totalEquipment = 0;
- currentDeathID = 0;
- };
- for(%i = 0; %i < $Pref::Server::MaxPlayers; %i++)
- %BBB.DeathDetails[%i] = new ScriptObject(){class = "DeathObject";};
- %BBB.timer(0,30);
- %BBB.MarkList[10] = "||||||||||";
- %BBB.MarkList[9] = "|||||||||<color:ff0000>|";
- %BBB.MarkList[8] = "||||||||<color:ff0000>||";
- %BBB.MarkList[7] = "|||||||<color:ff0000>|||";
- %BBB.MarkList[6] = "||||||<color:ff0000>||||";
- %BBB.MarkList[5] = "|||||<color:ff0000>|||||";
- %BBB.MarkList[4] = "||||<color:ff0000>||||||";
- %BBB.MarkList[3] = "|||<color:ff0000>|||||||";
- %BBB.MarkList[2] = "||<color:ff0000>||||||||";
- %BBB.MarkList[1] = "|<color:ff0000>|||||||||";
- %BBB.RoleColor["Traitor"] = "\c0";
- %BBB.RoleColor["Innocent"] = "\c2";
- %BBB.RoleColor["Detective"] = "\c1";
- }
- $BBB::Path = "Add-Ons/Gamemode_BBBRedux/";
- function BBB_Init(%dir)
- {
- %rdir = $BBB::Path @ %dir @ "/";
- echo(" *Loading scripts ("@%dir@").");
- for(%file=findFirstFile(%rdir @ "*.cs"); %file !$= ""; %file=findNextFile(%rdir @ "*.cs"))
- {
- if(!isFile(%file)) continue;
- exec(%file);
- }
- echo(" *Finished.");
- }
- BBB_Init("Systems");
- BBB_Init("PlayerScripts");
- BBB_Init("Equipment");
- if(!BBB_System.createdEquipment)
- {
- BBB_System.createEquipment("Armor","Armor","1 Credit\nDamage is reduced to 75% when purchased.",true,"Traitor","255 0 0",1,grantArmor,"","");
- 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");
- 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");
- 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");
- 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,"","");
- BBB_System.createdEquipment = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement