Page 1 of 1

Custom weapon has no sound

Posted: Thu Aug 31, 2017 8:19 pm
by vAethor
Running the risk of angering the mods for posting another topic right after the first. So if I am breaking any etiquette let me know and maybe merge the two custom weapon issues threads I posted.

I fixed the previous issue of the gun not even showing up, and now I have added a custom projectile that replaces the vanilla rocket. But the problem is, it is completely silent.

Code: Select all

Actor GaussRocket : Rocket replaces Rocket
{
	SeeSound "GAUSS1"
}
I have my custom sound in the Sounds directory in my PK3. But when I fire my custom gun, no sound at all.

I tried commenting out the SeeSound line of code and adding PlaySound in the fire state for the actual weapon, with the custom sound I wanted, but that also didn't work: It just played the vanilla rocket sound instead of my sound.

I also tried renaming the sound DSGSS1, also no luck.

I am really excited to be finally making my own weapons. I feel like I am almost there.

Re: Custom weapon has no sound

Posted: Thu Aug 31, 2017 8:21 pm
by wildweasel
Did you define the sound in a SNDINFO lump? In this case it'd be trivial to define, just add a single line to SNDINFO like this:

Code: Select all

weapons/gauss GAUSS1
and then use the SNDINFO name in SeeSound:

Code: Select all

SeeSound "weapons/gauss"

Re: Custom weapon has no sound

Posted: Thu Aug 31, 2017 8:33 pm
by vAethor
I actually was reading up on SNDINFO while I waited for a reply here. I honestly am glad I posted here, and I'm glad you mentioned SNDINFO, because it was just right outside my ability to understand myself.

But now I got it working, thanks.

Hey, before I say it's all solved I'd like to know if I should simply use one forum thread to answer all my custom weapons-related questions, because it doesn't sit right with me that I keep posting so much just to help creating one weapon. But if there is not a problem, I will keep going.