12-06-2007, 09:09 PM | #1 |
[AE] 0112 Ihmhi *SJB
Wiki Team
Fortress Forever Staff |
Custom Sound In Map?
I have been tooling around with Hammer for a while, but there is something I can just not figure out - how do I implement a custom sound in my map?
Specifically, I want the sound to be broadcast from a point - i.e., I would place a speaker in a map and then the sound would eminate from the script attached to it. I have got it to work by editing FF files (i.e. adding "lol.wav" to the same scripts that "unagi.wav" is in), but if I ever wanted to distribute a map I could not do that - if FF ever updated, then it would overwrite my changes and then they would have to redownload my map. As such, I would have to have everything work from completely new files and not by editing already existing files. Can anyone help? (|:
__________________
Anime: The Thread: Reloaded The one and only anime thread on these here forums. Select the pistol, and then, select your horse. |
|
12-06-2007, 09:39 PM | #2 |
Nutcracker
|
Using an ambient_generic and calling OutputEvent from the lua should do the trick. I couldn't get any custom sounds to play using only lua either. I guess it has something to do with precaching.
|
|
12-06-2007, 10:37 PM | #3 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
I did exactly what you said A1win in my latest map.
|
|
12-06-2007, 11:24 PM | #4 | |
[AE] 0112 Ihmhi *SJB
Wiki Team
Fortress Forever Staff |
Quote:
How would I use ambient_generic with a custom sound, though? I have not messed around with that particular feature of Hammer as of yet.
__________________
Anime: The Thread: Reloaded The one and only anime thread on these here forums. Select the pistol, and then, select your horse. |
|
|
12-06-2007, 11:29 PM | #5 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
Which part do you need help with? Using a custom sound or using ambient generic? Or triggering the generic with LUA?
|
|
12-07-2007, 12:29 AM | #6 |
Nutcracker
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|