Back to the Vavoom Forum Archives


Forum

Modifying/Creating weapons

Sat, 02 Aug 2008 12:46:07

Karnizero

I need to create (or modify) a Doom weapon, for example the shotgun. I have a fev sounds for that, such as firing, reloading, etc... I dont like to use Decorate, i prefer Progs, or any other only-Vavoom engine feature. The problem is: how/where i may set those sounds, so the engine can recognice them? I mean, something line "SNDINFO" or similar. I have created a new basepak.PK3, a folder names "sounds", keeping there all sounds, but when i modify the weapons and launch Vavoom, the game crashes before really start. I have used a line like this:
SHOT A 0 A_PlaySound ("Sounds/MySound")
Any tip? Thanks in advance.
Sat, 02 Aug 2008 18:08:42

Firebrand

Yes, the problem is that you can only call "final" type functions from states, what you need to do is something like this:
SHOT A 0 A_AttackSound
Just like this, then define the A_AttackSound function like this:
final void A_AttackSound()
{
	PlaySound('"sounds/mysound', CHAN_WEAPON);
}
Also, if you are going to make some different attacks for your weapons, you could include them in the same function too <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->, hope this helps you out, if you have more questions, just post <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->.
Sat, 02 Aug 2008 21:17:19

Karnizero

Bla, Bla, Bla, Bla... OK, problem soved. <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->

Back to the Vavoom Forum Archives