A_CustomRailgun doesn't work properly when it comes to the sound aspect of it.
Sometimes the sound will play, other times not. You may also suddenly hear the rails as if they were fired near you when you're actually far away from the source.
[?-1893] A_CustomRailgun doesn't play sound properly
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
[?-1893] A_CustomRailgun doesn't play sound properly
Last edited by unknownna on Sun Oct 25, 2009 6:50 am, edited 1 time in total.
Re: [?-1893] A_CustomRailgun doesn't play sound properly
We can appreciate the example wad, but I loaded your wad and it just brought me to the regular Doom2 map01. No railgun, nothing.
I don't quite remember how to add one by console (but if you're gonna include an example map you should really make a one-room level with a railgun in the middle so we can easily spot your problem
).
I don't quite remember how to add one by console (but if you're gonna include an example map you should really make a one-room level with a railgun in the middle so we can easily spot your problem

-
- Posts: 3975
- Joined: Fri Jul 06, 2007 9:16 am
Re: [?-1893] A_CustomRailgun doesn't play sound properly
It says under the file
summon gmrg
Anyway, I've noticed odd railgun sounds too when playing Skulltag, sometimes it seems as if the railgun is playing the firing sound at full world volume, and sometimes not, does the sound originate from the rail shaft itself rather than the shooter? If so that could be causing it.
summon gmrg

Anyway, I've noticed odd railgun sounds too when playing Skulltag, sometimes it seems as if the railgun is playing the firing sound at full world volume, and sometimes not, does the sound originate from the rail shaft itself rather than the shooter? If so that could be causing it.
Re: [?-1893] A_CustomRailgun doesn't play sound properly
LOL, ok, could he make it even less noticeable?
All joking aside, yes, I see this behaviour too.

All joking aside, yes, I see this behaviour too.

Re: [?-1893] A_CustomRailgun doesn't play sound properly
It does. It calculates the point closest to the listener and plays the sound from there (because it's supposed to be the sound of the slug, not the weapon).CaptainToenail wrote:does the sound originate from the rail shaft itself rather than the shooter?
[I have not tried the attached wad, so I reserve judgment on whether it's working properly or not.]
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [?-1893] A_CustomRailgun doesn't play sound properly
I believe that that was the intent. But the code sure did not do that. It did calculate the distance to the trail's line properly but completely ignored the end points so the sound was played at a position where the trail never got.randy wrote:It does. It calculates the point closest to the listener and plays the sound from there (because it's supposed to be the sound of the slug, not the weapon).CaptainToenail wrote:does the sound originate from the rail shaft itself rather than the shooter?