Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: boewolf on March 07, 2008, 03:22:24 am
-
After looking at the sound table, the Wiki and searching the forums, i am not sure if i can add entries to the sound table... Is this possible? I am looking to add 7 sounds at this point. I may need to add a few more. depending on if this is possible at all.
-
You can replace the empty sound entries in the table, or overwrite existing ones that you don't use.
However, I too would like to know if you can add sounds to the table as I've used all of my spare entries up.
-
I have found 11 empty slots. Under the beam sounds. can i place sounds that would usually go in the weapon sounds section?
-
The commented sections don't matter, as long as their in the right # section, #Game sounds, interface, or flyby. And I'm pretty sure you can just add to the end of the list, so since the retail file's game sounds section stops at 191, you can just start adding onto that with 192+. Just keep them in order.
http://www.hard-light.net/wiki/index.php/Sounds.tbl (http://www.hard-light.net/wiki/index.php/Sounds.tbl)
-
...
# Defines the game sounds by means of an index. Indexing must remain intact, so removing entries is not recommended. However adding new ones or altering existing ones is possible
...
-
... huh. I tried adding a sound at 192, it didn't work. All I did was extract a normal beam sound and slow it down, so I don't think it's the format.
-
Well i added following to sounds.tbl
$Name: 192 BT_dwn_6.wav, 0, 0.55, 2, 2000, 3000
And then made following -wep.tbm
#Primary Weapons
$Name: @Subach HL-7
+nocreate
$LaunchSnd: 192
#End
And done.. I got a 'new' (well recycled) effect for the weapon.
-
Score
-
$LaunchSnd: BT_dwn_6
That should work, too.
-
Wait so does a sound even need to be in the sounds.tbl to work with the SCP?
-
Yes, it should still be in sounds.tbl, but you don't have to use the numerical index to refer to it.
-
Hmm.. What happens if there are several instances of a sound in the sounds.tbl (probably chooses the first one)? All with different settings that is..