Author Topic: [Question] Expanding the SFX library.  (Read 1104 times)

CaptPatrick01

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    18
    • View Profile
on: May 20, 2018, 03:48:15 AM
Hello. I wish to ask about something regarding sound effects. In the SFX folder, there are all the sound effects/music utilized by the game. But right now it is the sound effects that I am looking at.
Is there a way to expand the amount of sounds that can be triggered by the game? Like adding an impact_shield4, 5, and 6.wav? I imagine that in an .lua somewhere it will list a library of sounds, or a bit of math.random trickery to tell the game to {play these sounds} when {thing} happens. But have been unable to find it. Is it possible to do this? Or is it just something hardcoded?



Kamo

  • Sr. Member
  • ****
  • Status:
    Offline
    Posts:
    394
  • Cuddles float better in space~
    • View Profile
on: May 20, 2018, 11:09:12 AM
I never tried to do it, so try expanding. It'd be interesting to find out if it's library-based or if the amount of sounds can vary :).
Colorize messages, with the colors of materials (from wiki) !
Ir #FFB380 Ti #FFFFFF Na #4DFF4D Tr #4D9AFF Xa #FFFF4D Og #FF8133 Av #FF2626



NerArth

  • Jr. Member
  • **
  • Status:
    Offline
    Posts:
    60
    • View Profile
on: May 20, 2018, 03:52:04 PM
Hello. I wish to ask about something regarding sound effects. In the SFX folder, there are all the sound effects/music utilized by the game. But right now it is the sound effects that I am looking at.
Is there a way to expand the amount of sounds that can be triggered by the game? Like adding an impact_shield4, 5, and 6.wav? I imagine that in an .lua somewhere it will list a library of sounds, or a bit of math.random trickery to tell the game to {play these sounds} when {thing} happens. But have been unable to find it. Is it possible to do this? Or is it just something hardcoded?

I've been trying to find a .lua that has the sound files specified for specific actions too but no luck either... :(

I do know that weapons have a sound property when they are generated, but I don't really know how it works as I haven't looked into it.



Devious

  • Hero Member
  • *****
  • Status:
    Offline
    Posts:
    579
  • Have you seen Rusty?
    • View Profile
    • Rusty's Universe and Community
on: May 20, 2018, 04:24:16 PM
I haven't found anything in the code either so I'm afraid it is hardcoded, but if you know how you might be able to override it by writing a new file, or you could try adding more files to it.

But my guess is that the specific files are also included in the code that triggers it so adding new ones won't do much.