1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
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!

Where would I go about adding custom sounds?

Discussion in 'Discussion' started by Sheeplie, Apr 2, 2014.

  1. Sheeplie

    Sheeplie Hi.

    Hello,

    I was wondering where and how I'd import custom sounds that I could then play using the /playsound command for all players to hear? Thanks.


    - Sheeplie
     
  2. diablo1675

    diablo1675 Guest

    /playsound?

    It's hardly used, ever.

    What is it specifically you're looking for. Ambient sounds, CP Sounds?
     
  3. Sheeplie

    Sheeplie Hi.

    I'd like to be able to use custom sounds to be played during events.

    Ex:

    - Music

    - Speeches

    - Extra zombie / creature custom sounds?
     
  4. Adler

    Adler cwSexySaveData:SaveSomePieceOfShit() Clockwork Customer

  5. Sheeplie

    Sheeplie Hi.

    But that would only play sounds within the Half-Life 2 game files, correct? I'm looking to import my own custom made sounds.
     
  6. Viomi

    Viomi Running ArchLinux

    You'd just have to go into the code and change the paths for the hl2 sound files to the new sound files you want.
     
  7. Sheeplie

    Sheeplie Hi.

    Yes but.. where would I add the sound files? How would I get them into my server? :S
     
  8. Viomi

    Viomi Running ArchLinux

    I think I'm confused about what you're trying to ask.

    If you want to be able to do /playsound <soundfile>, then just put the sound files in the server's sound folder, I believe.
     
  9. trurascalz

    trurascalz C16 Developer Legend

    yeah add it to the sounds folder, but make sure you do a resource.addfile lua in /lua/autorun
     
  10. Viomi

    Viomi Running ArchLinux

    Right, forgot this step.

    Do both these things and you should be set!
     
  11. Sheeplie

    Sheeplie Hi.

    Let me confirm this one last time.

    1. Drag any custom mp3 into my sounds folder (I need to know where that is, sadly.)

    2. Put the sound file on workshop and make a "addworkshopresource" in my fastDL file.

    Also, how would I find the sound file's directory path to actually play it in-game?
     
  12. Viomi

    Viomi Running ArchLinux

    So, in your server files:

    garrysmod/garrysmod/sound

    That's literally it. It should be in the same place as /models/, /materials/, /gamemodes/, etc.

    Then you just do /playsound sound/blahblah.mp3
     

Previous Readers (Total: 0)