Modify Ammo Amounts, Standard Status Bar
Posted: Sun May 20, 2018 6:58 pm
Looked through Tutorials and its not there. This is a pretty basic thing and I cant find anything on it.
So lets say I want to modify standard ammo types and have those changes apparent on the normal status bar (or any status bar that references them). And change how much the standard ammo pickups give you, not the big boxes but the normal pickups. For example setting maximum energy cells to 800, or making rockets give you 2 rockets per pickup?
I can make an updated status bar with custom ammo types referenced, thats not what I want to do though, I want it to be compatible with other status bars too. Most of the custom status bars out there can read "bullets, shells, rockets, cells" and I dont mind altering the pickup sprites themselves if necessary.
What I Want To Do:
Maximum Bullets = 300
Maximum Shells = 200
Maximum Rockets = 100
Maximum Cells = 100 (they're very strong)
Because I will either be getting rid of the backpack, or changing the amount that a backpack would increase ammo capacity to.
Another idea I have is getting items that extend your maximum for specific ammo types. Is it possible to pick up an item that has the same ammo type but with a higher maximum so that it increases your maximum amount... like how the health bonuses have a 200 maximum while health normally only has 100...
Secondary to this is it possible to give you an item that alters the Inventory.MaxAmount of another custominventory item? Lets say that a Box Of Bullets is now an inventory item like the ones in heretic and activating it gives you 50 bullets. And getting a Backpack doesnt increase your ammo maximums it just allows you to carry more of these big-box ammo items. Thats what id really like to do to manage ammo capacity.
(id make the weapons check for big box items when you ran out of ammo as opposed to making the player have to activate them, possibly incorporating a reloading animation for it)
Regarding Dehacked:
I tried this trick using a dehacked lump but the game wouldn't apply the changes.
So lets say I want to modify standard ammo types and have those changes apparent on the normal status bar (or any status bar that references them). And change how much the standard ammo pickups give you, not the big boxes but the normal pickups. For example setting maximum energy cells to 800, or making rockets give you 2 rockets per pickup?
I can make an updated status bar with custom ammo types referenced, thats not what I want to do though, I want it to be compatible with other status bars too. Most of the custom status bars out there can read "bullets, shells, rockets, cells" and I dont mind altering the pickup sprites themselves if necessary.
What I Want To Do:
Maximum Bullets = 300
Maximum Shells = 200
Maximum Rockets = 100
Maximum Cells = 100 (they're very strong)
Because I will either be getting rid of the backpack, or changing the amount that a backpack would increase ammo capacity to.
Another idea I have is getting items that extend your maximum for specific ammo types. Is it possible to pick up an item that has the same ammo type but with a higher maximum so that it increases your maximum amount... like how the health bonuses have a 200 maximum while health normally only has 100...
Secondary to this is it possible to give you an item that alters the Inventory.MaxAmount of another custominventory item? Lets say that a Box Of Bullets is now an inventory item like the ones in heretic and activating it gives you 50 bullets. And getting a Backpack doesnt increase your ammo maximums it just allows you to carry more of these big-box ammo items. Thats what id really like to do to manage ammo capacity.
(id make the weapons check for big box items when you ran out of ammo as opposed to making the player have to activate them, possibly incorporating a reloading animation for it)
Regarding Dehacked:
I tried this trick using a dehacked lump but the game wouldn't apply the changes.