Question: Increasing Doom Carrying Capacity?

Archive of the old editing forum
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.
Locked
Herculine
Posts: 17
Joined: Fri Jun 18, 2010 8:38 am
Contact:

Question: Increasing Doom Carrying Capacity?

Post by Herculine »

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.
User avatar
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?

Post by NeuralStunner »

Here's an example:
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.
Herculine
Posts: 17
Joined: Fri Jun 18, 2010 8:38 am
Contact:

Re: Question: Increasing Doom Carrying Capacity?

Post by Herculine »

Thanks for the examples. I'll see how that works out, and perhaps I'll try the DEHACKED method as well.
User avatar
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?

Post by NeuralStunner »

Oops, I forgot to raise the Backpack amount in the example. Fixed that.
Herculine
Posts: 17
Joined: Fri Jun 18, 2010 8:38 am
Contact:

Re: Question: Increasing Doom Carrying Capacity?

Post by Herculine »

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.
User avatar
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?

Post by NeuralStunner »

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.
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. :( You can make a new Chaingun that uses ClipPlus, and it should appear in the alternate HUD though.

Looks like DeHackEd may be the simplest way to go for this, actually.
Herculine
Posts: 17
Joined: Fri Jun 18, 2010 8:38 am
Contact:

Re: Question: Increasing Doom Carrying Capacity?

Post by Herculine »

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.
User avatar
Enjay
 
 
Posts: 27122
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Question: Increasing Doom Carrying Capacity?

Post by Enjay »

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.
User avatar
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?

Post by NeuralStunner »

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.
I thought this was handled in the Ammo or Weapon category, however looking around WhackEd2 I can't find anything.
User avatar
Enjay
 
 
Posts: 27122
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Question: Increasing Doom Carrying Capacity?

Post by Enjay »

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

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
and here is the screen responsible:

Image

[ Yay DOSBox BTW! :biggrin: ]
User avatar
SFJake
Posts: 531
Joined: Sat Nov 03, 2007 11:28 am

Re: Question: Increasing Doom Carrying Capacity?

Post by SFJake »

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.
User avatar
Enjay
 
 
Posts: 27122
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Question: Increasing Doom Carrying Capacity?

Post by Enjay »

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:

Image

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

Return to “Editing (Archive)”