Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
ViperGTS96

Exclude new ammo from backpack?

Recommended Posts

Any chance there's a way to exclude a new ammo type from the backpack?

Tried setting the values to 0 for the backpack values but no luck.

-I did do a search but haven't found anything.

Thanks.

Share this post


Link to post

1. Make sure that the ammo type inherits directly from the Ammo class, not from another ammo type.
2. Set the ammo type's Ammo.BackpackAmount to 0 and its Ammo.BackpackMaxAmount to the same value as its regular Inventory.MaxAmount.

Share this post


Link to post

I need the Inventory.maxamount to be a number tho.

Setting the actor to inherit from "Inventory" and not "Ammo" seems to do the job though.

Finally. I've been trying to get this done for a couple days, figures I figure it out shortly after I post for help.

Share this post


Link to post
ViperGTS96 said:

I need the Inventory.maxamount to be a number tho.

Of course it would be a number, I wonder what did you think I've meant. Anyway, ammo types should inherit from Ammo, otherwise some features with them might not work. Perhaps it wouldn't matter if your mod was simple enough, though.

Share this post


Link to post

I misread, my bad. It is a simple Item for use with one Weapon only so this seems to work. It's being used as a powerup for the weapon.

Share this post


Link to post

Just making sure, did you actually try something like this?

actor myAmmoType : Ammo {
  Inventory.MaxAmount 12345
  Ammo.BackpackAmount 0
  Ammo.BackpackMaxAmount 12345
  ...
Where "myAmmoType" is a name of your choice and "12345" is a number of your choice, of course.

Share this post


Link to post

actor myAmmoType : Ammo
{
Inventory.Amount 50
Inventory.MaxAmount 12345
Ammo.BackpackAmount 0
Ammo.BackpackMaxAmount 12345
}

- Is what I had before. Using idfa, and idkfa would still give me the max amount.

Share this post


Link to post

IDKFA would give you full ammo because that's what IDKFA does. Actually picking up a backpack wouldn't give you the ammo, though.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×