[Heretic] Bag of Holding shouldn't give mace ammo

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

[Heretic] Bag of Holding shouldn't give mace ammo

Postby DabbingSquidward » Wed Apr 24, 2019 7:48 am

The https://doomwiki.org/wiki/Bag_of_Holding article states that said item gives a small amount of every ammo except mace spheres.

Browsing https://github.com/OpenSourcedGames/Her ... /P_INTER.C, I found this:

Code: Select allExpand view
            for(i = 0; i < NUMAMMO; i++)
               player->maxammo[i] *= 2;
            player->backpack = true;
         P_GiveAmmo(player, am_goldwand, AMMO_GWND_WIMPY);
         P_GiveAmmo(player, am_blaster, AMMO_BLSR_WIMPY);
         P_GiveAmmo(player, am_crossbow, AMMO_CBOW_WIMPY);
         P_GiveAmmo(player, am_skullrod, AMMO_SKRD_WIMPY);
         P_GiveAmmo(player, am_phoenixrod, AMMO_PHRD_WIMPY);
         P_SetMessage(player, TXT_ITEMBAGOFHOLDING, false);

The firemace really is a weird one. It isn't mentioned in the manual, it has only a 75% chance of appearing in singleplayer in one of multiple SpecialSpots and a bag of holding doesn't contain any ammo for it.
User avatar
Donut eat me pls!
Joined: 08 Nov 2017
Location: Germany
Operating System: Windows Vista/7 64-bit
Graphics Processor: nVidia with Vulkan support

Return to Bugs

Who is online

Users browsing this forum: _mental_, phantombeta and 1 guest