Question: Increasing Doom Carrying Capacity?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Question: Increasing Doom Carrying Capacity?
I'm trying to increase DoomGuy's ammo carrying capacity. As Enjay has kindly told me, this must be done by modifying each ammo type in the DECORATE lump.
But I've tried several different ways today and keep getting either nothing or results like total inability to pick up any ammo at all.
Could someone please post an example of what the code block should look like for one of the ammo types, like the clip, so that it will increase carry capacity beyond 400?
Many thanks.
But I've tried several different ways today and keep getting either nothing or results like total inability to pick up any ammo at all.
Could someone please post an example of what the code block should look like for one of the ammo types, like the clip, so that it will increase carry capacity beyond 400?
Many thanks.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Question: Increasing Doom Carrying Capacity?
Here's an example:
If you don't plan to change weapons or the player, this is one thing DeHackEd is still useful for.
Spoiler:You can't inherit from Clip, because you'd just be making a new pickup for the same ammo type. The only way (Decorate-wise) is to redefine it with a new name, and change any references (In Player classes and Weapons) from the old one to the new one.
If you don't plan to change weapons or the player, this is one thing DeHackEd is still useful for.
Last edited by NeuralStunner on Sun May 15, 2011 7:41 pm, edited 2 times in total.
Re: Question: Increasing Doom Carrying Capacity?
Thanks for the examples. I'll see how that works out, and perhaps I'll try the DEHACKED method as well.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Question: Increasing Doom Carrying Capacity?
Oops, I forgot to raise the Backpack amount in the example. Fixed that.
Re: Question: Increasing Doom Carrying Capacity?
Spoiler:I did it just like this, but there is no change in the inventory number and when I pick up a box nothing gets added to the number as if it wasn't there.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Question: Increasing Doom Carrying Capacity?
I think that unless you have a weapon that uses the ammo type, it won't show. Also I forgot that the default status bar is pretty much hard-coded to the original ammo types.Herculine wrote:I did it just like this, but there is no change in the inventory number and when I pick up a box nothing gets added to the number as if it wasn't there.

Looks like DeHackEd may be the simplest way to go for this, actually.
Re: Question: Increasing Doom Carrying Capacity?
I've got it working with DeHacked now. The only small glitch is that you start the game with those max limits rather than getting the increase when you pick up your first backpack of the game.
I suppose I need to take what I can get, though.
I suppose I need to take what I can get, though.
Re: Question: Increasing Doom Carrying Capacity?
It's been a long time since I did things with DeHacked but you should be able to set things up so that the game still doubles your ammo capacity when you pick up a back pack. Unfortunately, I don't remeber the details.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Question: Increasing Doom Carrying Capacity?
I thought this was handled in the Ammo or Weapon category, however looking around WhackEd2 I can't find anything.Enjay wrote:It's been a long time since I did things with DeHacked but you should be able to set things up so that the game still doubles your ammo capacity when you pick up a back pack. Unfortunately, I don't remeber the details.
Re: Question: Increasing Doom Carrying Capacity?
OK, I reinstalled dehacked to check. On the F4 Misc screen the bottom area deals with weapons and ammo. Use PgDn/PgUp to select a weapon that uses the ammo type that you want to change. Go to the field called "Init. max ammo" and change it to the number you want. Note, this is the initial maximum ammo - ie the maximum ammo that you can have without a backpack. When you pick up a backpack, the number that you entered will be doubled.
As an example, this dehacked patch doubles the number of bullets that you can carry from 200/400 to 400/800
and here is the screen responsible:

[ Yay DOSBox BTW!
]
As an example, this dehacked patch doubles the number of bullets that you can carry from 200/400 to 400/800
Code: Select all
Patch File for DeHackEd v3.0
# Note: Use the pound sign ('#') to start comment lines.
Doom version = 19
Patch format = 6
Ammo 0 (Bullets)
Max ammo = 400

[ Yay DOSBox BTW!

Re: Question: Increasing Doom Carrying Capacity?
Just use WhackEd. Geeze, why are people even usign Dehacked anymore. Especially the ZDoom folks, WhackEd ammo editing always worked perfectly and backpacks double the new amount. I never had the slightest issues with it.
Re: Question: Increasing Doom Carrying Capacity?
Personally I hardly ever use either now. I used to use dehacked a lot and knew it inside out. By the time Whacked had matured, Zdoom had advanced to the point that dehacked patches were basically pointless for anything I was doing. So, on the rare occasions when I need to make a dehacked patch I have the choice whether to use the old DOS program which I know is limited but I know inside out or the more modern program that I am less familiar with and which I will never use enough to become familiar enough with to be able to use as quickly as the old program.
But, yeah, I use both and to specifically mention the appropriate bit of Whacked:

Using that to change the 200 to 400 makes a patch which is essentially the same as the one made by dehacked.
But, yeah, I use both and to specifically mention the appropriate bit of Whacked:

Using that to change the 200 to 400 makes a patch which is essentially the same as the one made by dehacked.