How to change the ammo limits when you create a New skill

Mon Sep 06, 2021 9:34 am

Hello, I'm new here and sorry for my bad english, english is not my first language.
So, I want to make a new Skill and I want to modify the limit of ammo.
For exmeple the max of bullets it's 200, but I want to change this limit to a higher number. And how to do this for backpack as well. I want to do this for all ammo type.
Thanks for answer.

Re: How to change the ammo limits when you create a New skil

Wed Sep 08, 2021 1:38 pm

There's probably a better way to do this but the one I would personally use is this:

1 - Make multiple separate weapon actors that can hold different ammo capacities (eg: Pistol_Easy, Pistol_Normal, Pistol_Hard)
2 - Make a new CustomInventory actor and use a ACS script on PickUp to give player a different weapon depending on current skill level
3 - Replace the base weapon with that CustomInventory item

Re: How to change the ammo limits when you create a New skil

Thu Sep 09, 2021 1:03 am

maxx_tnt wrote:1 - Make multiple separate weapon actors that can hold different ammo capacities (eg: Pistol_Easy, Pistol_Normal, Pistol_Hard)

You will also have to redefine the ammo types themselves, along with all their specific ammo pickups (e.g. both the ammo box and the clip will have to be defined for each skill).

maxx_tnt wrote:2 - Make a new CustomInventory actor and use a ACS script on PickUp to give player a different weapon depending on current skill level
3 - Replace the base weapon with that CustomInventory item

Note that this will break item respawning and weapon stay. Use ReplaceActor in the skill definition instead.

You will also have to assign weapon slots via Weapon.SlotNumber or in the player class defintion.

Re: How to change the ammo limits when you create a New skil

Thu Sep 09, 2021 10:45 am

You can also use SetAmmoCapacity in ACS.
You can detect the current skill with GameSkill.