inputting custom .wav files Created 19 years ago2004-08-02 18:29:48 UTC by Flaming_Death Flaming_Death

Created 19 years ago2004-08-02 18:29:48 UTC by Flaming_Death Flaming_Death

Posted 19 years ago2004-08-02 18:29:48 UTC Post #47620
how do i put a custom .wav file and use it in the game?
Posted 19 years ago2004-08-02 18:47:03 UTC Post #47622
yeh, do u have to make a pak file and edit the sentences.txt in it?
Posted 19 years ago2004-08-02 18:56:25 UTC Post #47623
Okay, I'll re-explain what I said in the shoutbox here so it doesn't disappear as quickly.

You do not need to create your own pak files for anything, as pak files are obsolete with the death of WON. Go get Steam as it will update your version of HL.

Sounds need to go into your modsound folder. This is valvesounds for use in HL, cstrikesounds for Cstrike, nspsounds for NS, and so on .

To play the sound file, use an ambient_generic. To make someone say the sound, like a Scientist, use a scripted_sentence. You'll need to add a sentence name and the file path to the sentences.txt to make it work in the latter situation. I believe we have tutorials on doing that.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 19 years ago2004-08-02 19:01:47 UTC Post #47625
how do i play the sound using a button?
Posted 19 years ago2004-08-02 19:24:08 UTC Post #47626
first you set up your scientist and ambient_generic, then in the buttons properties choose target- the name of your ambient_generic!

and then when you press the button_the sci will say the sentence
Posted 19 years ago2004-08-02 19:34:30 UTC Post #47627
If you use an ambient_generic when you want someone to say something, their mouth doesn't move and it looks odd. That's where you would use a scripted_sentence.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 19 years ago2004-08-03 19:51:44 UTC Post #47788
sentences .txt:
// fail to follow player any more
SC_STOP0 scientist/stop1
SC_STOP1 scientist/stop2
SC_STOP2 scientist/stop3
SC_STOP3 scientist/stop4

if i added another string would the scientist say it when 'fail to follow player any more' happens. ( randomly out of the 5 ) ?
Posted 19 years ago2004-08-03 19:57:12 UTC Post #47790
If you add SC_STOP4 scientist/bob then, afaik, the game would randomly select from the SC_STOP group, so if it picks SC_STOP4 then it
would play the bob file.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 19 years ago2004-08-03 20:00:15 UTC Post #47791
ah, cheers, ill try that.
Posted 19 years ago2004-08-03 20:39:01 UTC Post #47797
What if you didn't update CS 1.5 to Steam and had Steam install a new version(1.6) undependent of CS 1.5, will you still have .pak file hidden somewhere?
Posted 19 years ago2004-08-03 20:43:55 UTC Post #47798
You'll still have the CS PAK file if you didnt delete your WON version. All the same files and their updated versions are stored in the Steam GCF file, though, so its better to use them from there than the PAK file.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 19 years ago2004-08-05 03:31:51 UTC Post #48048
If you want others to hear the sounds you need to distribute them with you map/mod.
AJ AJGlorious Overlord
You must be logged in to post a response.