1. Check out the Store if you're looking to Buy HL2RP or other schemas for your server. You can click Buy Schemas on the very top navigation bar to visit the store.
  2. Use the Plugin Center to easily subscribe to and auto-install Clockwork plugins to your server, or submit and share plugins you have developed.
  3. Having trouble setting up or developing with Clockwork? Check out the Wiki or post in the Support Forum for advice from fellow users.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

HL2RP karl-police's plugin collection

Discussion in 'Plugins' started by karl-police, Apr 20, 2015.

  1. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    I know, but the "next" that doesn't mean I will only work on those things I still will work around my plugins and other, what I am searching now is a plugin that shows plyslay and plywarn? any one know where?
     
  2. vexus

    vexus ej rockwell's worst nightmare Staff Member Head Moderator Legend Clockwork Customer Active Member

    What do you mean it 'shows' /plyslay and /plywarn?
     
  3. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    I search a plugin, they call it valence admin plugin but I can't find it anywhere. It includes commands like /plyslay and /playsound or /plysethp
     
  4. SireElite

    SireElite what's the big fucking deal? Templar Active Member

    i found out that after a few day's i made my post.
    i just don't see a point for a calculator in-game, what use would it have with the resistance, combine, or citizen's?
     
  5. Sixx

    Sixx presidential #1 Staff Member Manager Legend Crusader Active Member

    The only really practical use I can see it having is when the CWU have a shop and need to work out prices for things, or when the Combine are doing residential counts. I plan to try and get a banking system up and running for our official HL2RP, so it'd be useful for things like that, too, but I'll get on that later.
     
  6. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    I am still searching valence admin mod command, maybe someone could send me a rar lnk or something?

    @Vexus Did you found something on stalker?
     
    Last edited: Oct 26, 2015
  7. Sixx

    Sixx presidential #1 Staff Member Manager Legend Crusader Active Member

    Idk if you read my post but in your code you're passing two parameters by reference and not returning them in the code.
    Code:
    --Function to add a Stalker Sound.
    function PLUGIN.voices:AddStalker(faction, command, phrase, sound, //female, menu// - what are these? )
        self.stored.stalkerSounds[#self.stored.stalkerSounds + 1] = {
            command = command,
            faction = faction,
            phrase = phrase,
            female = female,
            sound = sound,
            menu = menu
        };
    end;
    
    --Add the voice commands.
    PLUGIN.voices:AddStalker("Stalker" // faction // "Scream 1" // command // "Waaahhhh!" // phrase // , "npc/stalker/go_alert2.wav" // sound // no female or menu reference);
    
    That's probably a dumb observation and I'll get ironically Good Coder'd for posting this but I just thought I'd try anyways.
     
    • Good Coder Good Coder x 2
    • Agree Agree x 1
  8. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    @Sixx
    You also don't understand how it works.

    Stalker is the "faction"
    Scream 1 is the "command"
    "Waaah!" is the "phrase"
    .wav file is the "sound"
    the female one will only work if you add it and the menu, never knows.



    Code:
    local PLUGIN = PLUGIN;
    
    PLUGIN.voices = Clockwork.kernel:NewLibrary("HeadcrabSounds");
    
    PLUGIN.voices.stored = {
        headcrabSounds = {}
    };
    
    --Function to add a Headcrab Sound.
    function PLUGIN.voices:AddHeadcrab(faction, command, phrase, sound, female, menu)
        self.stored.headcrabSounds[#self.stored.headcrabSounds + 1] = {
            command = command,
            faction = faction,
            phrase = phrase,
            female = female,
            sound = sound,
            menu = menu
        };
    end;
    
    --Add the voice commands here.
    PLUGIN.voices:AddHeadcrab("Headcrab", "speak1", "*Purrs softly.*", "npc/headcrab/idle1.wav")
    PLUGIN.voices:AddHeadcrab("Headcrab", "speak2", "*Purrs softly.*", "npc/headcrab/idle2.wav")
    PLUGIN.voices:AddHeadcrab("Headcrab", "speak3", "*Makes a quiet squishing noise.*", "npc/headcrab/idle3.wav")
    PLUGIN.voices:AddHeadcrab("Headcrab", "pain1", "*Screams in pain.*", "npc/headcrab/pain1.wav")
    PLUGIN.voices:AddHeadcrab("Headcrab", "pain2", "*Screams in pain.*", "npc/headcrab/pain2.wav")
    PLUGIN.voices:AddHeadcrab("Headcrab", "pain3", "*Screams in pain.*", "npc/headcrab/pain3.wav")
    PLUGIN.voices:AddHeadcrab("Headcrab", "chitter", "*Makes chittering noises.*", "npc/headcrab/alert1.wav")
    
    if (CLIENT) then
        table.sort(PLUGIN.voices.stored.headcrabSounds, function(a, b) return a.command < b.command; end);
    
        for k, v in pairs(PLUGIN.voices.stored.headcrabSounds) do
            Clockwork.directory:AddCode("Headcrab", [[
                <div class="auraInfoTitle">]]..string.upper(v.command)..[[</div>
                <div class="auraInfoText">]]..v.phrase..[[</div>
            ]], true);
        end;
    end;
    Thats the code from the headcrab faction



    Code:
    PLUGIN.voices:AddHeadcrab("Headcrab", "speak1", "*Purrs softly.*", "npc/headcrab/idle1.wav")
    Code:
    PLUGIN.voices:AddStalker("Stalker", "Scream 1", "Waaahhhh!", "npc/stalker/go_alert2.wav");
    Code:
    Schema.voices:AddDispatch("Radio Random 7", "*Radio sounds*", "ambient/levels/prison/radio_random7.wav");
     
    • Informative Informative x 1
    Last edited: Oct 26, 2015
  9. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    They are on the Directory viewable, so you can see them.
    There is a folder called Stalker
    it says:

    Scream 1
    Waaahhhhh!

    So that with the voices worked, but if you say now IC "Scream 1" it will result: UU-STALKER-XXXXX: Scream 1.
    Normaly it should result UU-STALKER-XXXXX: Waaahhhhh!

    With the sound, but no it doesn't.
     
  10. duck

    duck Phant0m Legend Crusader

    Female and menu are optional. Female is the sound to play for females and IDK what menu is and I'm too lazy to go look. They're only there cause he copied and pasted.
     
  11. Sixx

    Sixx presidential #1 Staff Member Manager Legend Crusader Active Member

    Ah! Thanks for clearing that up, I'm still getting used to functions myself :D
     
  12. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    But there is still no reason why the voices should not work, well they don't work but they get shown in the directory. Do I need to remove ; from ) it looks like ); should it look like )
    Do I need to put Scream 1 to scream1 ???
     
    • Funny Funny x 1
  13. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

  14. Roth

    Roth 45 Spesiale Maatskappy Crusader Active Member

    • Useless Post
    -snip-
     
  15. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    ? I don't understand I want to know now why the voices shows in the directory but don't work by using it.
     
  16. prom queen

    prom queen Guest

    are you using some kind of voice command extender plugin?
     
  17. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    Why you don't download the plugin and look self on it
     
  18. prom queen

    prom queen Guest

    ask yourself
     
    • Winner Winner x 1
  19. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    Didn't found anything, thats why I call for help.
     
  20. karl-police

    karl-police Hotrod turret Templar Clockwork Customer Active Member

    Ladas and Gantlaman. Okay f*ck this don't waste minutes.

    A new plugin has appeared in this world, okay for blame of Sophia... that she made biggest error voice plugin ever, I fixed it!!!

    Combine Voice Plugin Download <--- V.1 maybe there is a new version but now it's new.
    Fixed Sophia's combine plugin and added every possible combine voices.
    Works with improvedvoicecommands.

    Adds alot of new divisions like, Tracker, Stab, Star, Winder.
    Adds alot of beta and leaked voice files like, Yeah, Hm, Nope, Yup, Yep.
    Adds alot of voices that ever could wish, Get against the wall!

    And alot more!!!

    This plugin took me from 14:50 until 23:17. So please give me something if you want :)
    I accept games and Steam Cards :)

    @duck
    @Rhenz
    @kurozael
    @Xenoxia
    @zoo889
     
    • Funny Funny x 2
    • Good Coder Good Coder x 2
    • Winner Winner x 1