Keeps Switching to Weapons with No Ammo
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.
Keeps Switching to Weapons with No Ammo
I posted this in another thread and didnt' get an answer so maybe it's a bug. I dunno. The original question was:
How do i tell gzdoom to stop switching to weapons with empty ammo? I was sure it was the "check ammo on weapon switch" but it happens whether this setting is set to yes or no.
It's the only option I can find that's related to this issue, so either that option isn't what I think it is, or there IS a bug. It's still 3.0.1, by the way.
How do i tell gzdoom to stop switching to weapons with empty ammo? I was sure it was the "check ammo on weapon switch" but it happens whether this setting is set to yes or no.
It's the only option I can find that's related to this issue, so either that option isn't what I think it is, or there IS a bug. It's still 3.0.1, by the way.
-
- Posts: 4949
- Joined: Sun Nov 14, 2010 12:59 am
Re: Keeps Switching to Weapons with No Ammo
What's the code of the weapon? If the weapon has the AMMO_OPTIONAL flag, the switch is allowed even if you have no ammo for it.
Re: Keeps Switching to Weapons with No Ammo
None of the guns in the mods i made use that flag. It wasn't doing this before, only recently.Blue Shadow wrote:What's the code of the weapon? If the weapon has the AMMO_OPTIONAL flag, the switch is allowed even if you have no ammo for it.
-
- Posts: 4949
- Joined: Sun Nov 14, 2010 12:59 am
Re: Keeps Switching to Weapons with No Ammo
Could you provide something to run tests on?
Re: Keeps Switching to Weapons with No Ammo
Does your weapon use secondary fire that doesn't require ammo?ImpieTwo wrote:None of the guns in the mods i made use that flag. It wasn't doing this before, only recently.Blue Shadow wrote:What's the code of the weapon? If the weapon has the AMMO_OPTIONAL flag, the switch is allowed even if you have no ammo for it.
In general this bug report is pretty inconsistent.
First of all, no sample is given. Sure developers can find your mods on the forum but they are not small self-contained samples.
GZDoom 3.0.1 is not the latest stable builds. There are lots of things changed/fixed after 3.1.0 (which is the latest) in devbuilds too.
Moreover 'recently' is a very relative term. Please post some version numbers next time.
Re: Keeps Switching to Weapons with No Ammo
Well, as I said in the op (along with the actual version number), I wasn't sure if it was a bug, and nobody answered on the other thread. I don't know what exactly would constitute a sample if all the weapons are doing it. The entire weapons section of the mod? A sample of the code? I guess I misread when people said 3.1.0 as 3.0.1 elsewhere and thought I still had the latest build._mental_ wrote:Does your weapon use secondary fire that doesn't require ammo?ImpieTwo wrote:None of the guns in the mods i made use that flag. It wasn't doing this before, only recently.Blue Shadow wrote:What's the code of the weapon? If the weapon has the AMMO_OPTIONAL flag, the switch is allowed even if you have no ammo for it.
In general this bug report is pretty inconsistent.
First of all, no sample is given. Sure developers can find your mods on the forum but they are not small self-contained samples.
GZDoom 3.0.1 is not the latest stable builds. There are lots of things changed/fixed after 3.1.0 (which is the latest) in devbuilds too.
Moreover 'recently' is a very relative term. Please post some version numbers next time.
I know one mod does use a non-ammo secondary fire, but the rest don't, so I'll double check that, and I'll quit wasting your time.
-
- Posts: 4949
- Joined: Sun Nov 14, 2010 12:59 am
Re: Keeps Switching to Weapons with No Ammo
Take one of the problematic weapons, put it in its own WAD and uploaded it here. That would be enough.
Re: Keeps Switching to Weapons with No Ammo
I'm pretty sure he had the problem pegged: it's just the one with the doesn't-use-ammo alt fire weapons. Now I just gotta figure out how you keep it from doing that, if it's possible. I know Brutal Doom and Space Pirate had a way of doing it, but I could never wrap my head around how it worked...Blue Shadow wrote:Take one of the problematic weapons, put it in its own WAD and uploaded it here. That would be enough.
-
- Posts: 4949
- Joined: Sun Nov 14, 2010 12:59 am
Re: Keeps Switching to Weapons with No Ammo
So this is not a bug after all.
Re: Keeps Switching to Weapons with No Ammo
No I don't think so. But last time I posted something like this in a different forum I was scolded for not posting it here, so I posted here this time.Blue Shadow wrote:So this is not a bug after all.