Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2011-09-18 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: [Tutorial] More Unique Races | Part 2 - Using Sounds  (Read 2694 times)

Offline Grim4118

  • Level 0 Beginner
  • Posts: 3
  • <3 WCS :)
Re: [TUTORIAL] More Unique Races | Part 2 - Using Sounds
« Reply #15 on: February 19, 2011, 01:16:57 PM »
is there any way to import weapons from say half life 2, into a race warcraft race??  i have an idea that sort of base around this :-\


Offline BeerMann

  • Level 2 Apprentice
  • **
  • Posts: 44
  • <3 WCS :)
Custom sounds NOT working!
« Reply #16 on: March 22, 2011, 10:05:53 PM »
ive been having a huge amount of trouble to get this to work. I need help!

Im trying to make a sound play, that everyone can hear at spawn, whenever I spawn and die. Here is the code I have...

spawncmd          = "es_delayed 0.5 es_playsound server_var(userid) custom/dt/dtspawn.wav 0.9;es wcs_restrict(userid)knifeonly;"
deathcmd           = "es_delayed 0.5 es_playsound server_var(userid) custom/dt/dtspawn.wav 0.9"

The sounds are currently the same because i havent extracted the other sound from starcraft for death sound... anyway...
The sound will not play when i spawn or die, no clue why. I have the sound file in the server files under   /hl2/sound/custom/dt

Is there any settings I need to change in order to allow custom sounds to be used other than default wcs ones?!

Final piece, I noticed this tutorial used backslashes for the file directories instead of backslashes ex: custom\dt\dtspawn.wav
is it suppossed to be a \ or a / for filepath??

any help would be greatly appreciated,
thanks for your time.

Online Kamiqawa

  • Moderator
  • Level 7 Expert
  • Posts: 416
  • Country:
Re: [TUTORIAL] More Unique Races | Part 2 - Using Sounds
« Reply #17 on: March 23, 2011, 02:06:35 AM »
Hello,

First, if you want it to be heard by all players use es_emitsound command. The syntax is quite similar to es_playsound. I'll also update my tutorial with it some time soon.

About the custom sounds... They work same way as normal sounds as long they exist on server and on player (server can force players with cl_allowdownload 1 to download those files on connect).

But with your commands the problem is propably the userid. If you haven't created a variable of your own, there will not be a server_var(userid) (?). Try to replace it with event_var(userid) and see if it will fix your issue.

Code: [Select]
spawncmd          = "es_delayed 0.5 es_playsound event_var(userid) custom/dt/dtspawn.wav 0.9;es wcs_restrict(userid)knifeonly;"
deathcmd           = "es_delayed 0.5 es_playsound event_var(userid) custom/dt/dtspawn.wav 0.9"

Here I changed the userid for you. Try that out, because otherwise the command looks just fine (if the path custom/dt/dtspawn exists and your file is a wave sound file).

Please, contact me on this topic or with private message if you still can't get it working.

Thanks and updates for tutorials (and new tutorial) is coming immediately when I can get time to finish them.
Quote from: $Diablo$
You are banana dabass... Kami tried to proof point here and you ruin it >.>



Click here for wcs content made by me.



 


Powered by EzPortal