SHARE
TWEET

Untitled

a guest Dec 16th, 2017 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local PLUGIN = PLUGIN;
  2.  
  3. PLUGIN.voices = Clockwork.kernel:NewLibrary("ZombineVoices");
  4.  
  5. PLUGIN.voices.stored = {
  6.     ZombineVoices = {}
  7. };
  8.  
  9. --Function to add a Zombine Sound.
  10. function PLUGIN.voices:ZombineVoices(faction, command, phrase, sound, female, menu)
  11.     self.stored.ZombineVoices[#self.stored.ZombineVoices + 1] = {
  12.         command = command,
  13.         faction = faction,
  14.         phrase = phrase,
  15.         female = female,
  16.         sound = sound,
  17.         menu = menu
  18.     };
  19. end;
  20.  
  21.  
  22. Schema.voices:Add("Zombine", "ZChatter1", "Para... site...", "npc/zombine/zombine_idle1.wav");
  23. Schema.voices:Add("Zombine", "ZChatter2", "Biotics... overrun.", "npc/zombine/zombine_idle2.wav");
  24. Schema.voices:Add("Zombine", "ZChatter3", "Biotics... in the perimeter...", "npc/zombine/zombine_idle3.wav");
  25. Schema.voices:Add("Zombine", "ZChatter4", "Sector... is not... secure...", "npc/zombine/zombine_idle4.wav");
  26. Schema.voices:Add("Zombine", "ZAlert1", "Biotics... overrun.", "npc/zombine/zombine_alert1.wav");
  27. Schema.voices:Add("Zombine", "ZAlert2", "Infes... tation...", "npc/zombine/zombine_alert2.wav");
  28. Schema.voices:Add("Zombine", "ZAlert3", "Contaact...", "npc/zombine/zombine_alert5.wav");
  29. Schema.voices:Add("Zombine", "ZPain", "Gggrgh...", "npc/zombine/zombine_pain4.wav");
  30.  
  31. if (CLIENT) then
  32.     table.sort(PLUGIN.voices.stored.ZombineVoices, function(a, b) return a.command < b.command; end);
  33.    
  34.     for k, v in pairs(PLUGIN.voices.stored.ZombineVoices) do
  35.         Clockwork.directory:AddCode("Zombine", [[
  36.             <div class="auraInfoTitle">]]..string.upper(v.command)..[[</div>
  37.             <div class="auraInfoText">]]..v.phrase..[[</div>
  38.         ]], true);
  39.     end;
  40. 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