Doom Comic
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > change MaxAmount
 
Author
All times are GMT. The time now is 15:59. Post New Thread    Post A Reply
BadCompany
Junior Member


Posts: 100
Registered: 09-09


Hey,

I want change some Amounts of ammos. So I has copied the dommammo.txt from gzdoom.pk3 and insert in my new pk3-file (new mod).
The copied decorate describes the classic ammos.
In new mod, I changes the MaxAmounts...

code:
Inventory.Amount 4 Inventory.MaxAmount 50 Ammo.BackpackAmount 4 Ammo.BackpackMaxAmount 100


That's standard amount of doom shotgun. But I just raise the Amount.

code:
Inventory.Amount 8 Inventory.MaxAmount 500 Ammo.BackpackAmount 50 Ammo.BackpackMaxAmount 1000


All saved in Slumped7 and than...in the game no effect (= standard amount, no raised amount). What's wrong?

P.S. Can doom ammo allows number over 999? For Example, 1000 Shells?

Old Post 12-14-11 17:33 #
BadCompany is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
HavoX
Member


Posts: 407
Registered: 12-11


You might want to look into this or this and see if that helps.

EDIT: I never made a DECORATE file before, but I think you have to use inheritance...

Old Post 12-14-11 18:59 #
HavoX is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 7036
Registered: 07-07


Changing ammo amounts is a pain in the butt. There's something to do to improve the system because currently you're better off using a dehacked patch for that (provided you're modifying Doom ammo amounts, since dehacked won't let you change Heretic/Hexen/Strife amounts).

Simply said, ammo global properties (max amount, backpack amount, max amount with backpack) are set in the parent ammo type. The values from children types are ignored.

So if you want to change them, you have to create a new ammo type entirely.

Which means that you will also need to change the weapons so that they use these new ammo types.

Which means that, if you change a starting weapon, you will also need to change the player class so it uses these new starting weapons.

Old Post 12-14-11 19:11 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
BadCompany
Junior Member


Posts: 100
Registered: 09-09


That sucks. But I'm thankful for both you. :)

P.S. I copied the Port GZDoom und so I change some things in gzdoom.pk3. Of course, the amount changes take trough all mods.
I think if I publicate my mode (that's more like a dream :-D )so I need to insert the modified gzdoom.pk3...

Old Post 12-15-11 12:36 #
BadCompany is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 15:59. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > change MaxAmount

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory