Page 1 of 1
silent railshot
Posted: Fri Jan 27, 2006 4:46
by BlackFish
can somebody give me a sample code for a silent railshot?
Posted: Fri Jan 27, 2006 5:43
by wildweasel
I would suppose the best way to silence a rail shot is to add an A_PlayWeaponSound pointer directly after the rail shot, that plays an empty sound file. I can't vouch for how well this would work though.
Posted: Fri Jan 27, 2006 13:55
by Enjay
Interesting, the monster equivallent pointer has the option to use a sound or not, but I don't see this option for the player version. I take it the monster version can't be used for the player?
If the silent rail is the only one in your mod, then including a silent railgun sound in the WAD would be an obvious option.
Posted: Fri Jan 27, 2006 13:58
by TheDarkArchon
Why the only one: If you need another sound use a state with A_FireWeaponSound immediately afterwards and make the railgun firing state 0 length.
Posted: Fri Jan 27, 2006 14:07
by Enjay
The "only one" is because if you had 2, both would be silenced by my suggestion - which was only made because WW said "I can't vouch for how well this would work though". It was really a "well, if WW's method doesn't work, the other option is..." kind of statement.
Posted: Fri Jan 27, 2006 15:06
by Paul
How about adding an empty sound and naming it "Railgf1"?
Posted: Fri Jan 27, 2006 15:40
by BlackFish
The reason I am asking for this is because I want to have a railattack that's for secondary fire with a different sound effect than my primary attack.