SHARE
TWEET

Untitled

a guest Dec 25th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Schema.voices = Clockwork.kernel:FindLibrary("Voices");
  2. Schema.voices.stored = {
  3.     zombineVoices = {}
  4. };
  5.  
  6. -- A function to add a Zombine Sound.
  7. function Schema.voices:AddZombine(faction, command, phrase, sound, menu)
  8.     self.stored.zombineVoices[#self.stored.zombineVoices + 1] = {
  9.         command = command,
  10.         faction = faction,
  11.         phrase = phrase,
  12.         sound = sound,
  13.         menu = menu
  14.     };
  15. end;
  16.  
  17.  
  18. Schema.voices:AddZombine("Zombine", "ZChatter1", "Para... site...", "npc/zombine/zombine_idle1.wav");
  19. Schema.voices:AddZombine("Zombine", "ZChatter2", "Biotics... overrun.", "npc/zombine/zombine_idle2.wav");
  20. Schema.voices:AddZombine("Zombine", "ZChatter3", "Biotics... in the perimeter...", "npc/zombine/zombine_idle3.wav");
  21. Schema.voices:AddZombine("Zombine", "ZChatter4", "Sector... is not... secure...", "npc/zombine/zombine_idle4.wav");
  22. Schema.voices:AddZombine("Zombine", "ZAlert1", "Biotics... overrun.", "npc/zombine/zombine_alert1.wav");
  23. Schema.voices:AddZombine("Zombine", "ZAlert2", "Infes... tation...", "npc/zombine/zombine_alert2.wav");
  24. Schema.voices:AddZombine("Zombine", "ZAlert3", "Contaact...", "npc/zombine/zombine_alert5.wav");
  25. Schema.voices:AddZombine("Zombine", "ZPain", "Gggrgh...", "npc/zombine/zombine_pain4.wav");
  26.  
  27. if (CLIENT) then
  28.     table.sort(Schema.voices.stored.zombineVoices, function(a, b) return a.command < b.command; end);
  29.    
  30.     for k, v in pairs(Schema.voices.stored.zombineVoices) do
  31.         Clockwork.directory:AddCode("Zombine", [[
  32.             <div class="auraInfoTitle">]]..string.upper(v.command)..[[</div>
  33.             <div class="auraInfoText">]]..v.phrase..[[</div>
  34.         ]], true);
  35.     end;
  36. end;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top