...
class MMK_AssistantGunner : SoldierWB
{
class transportMagazines { magazine=M60; count=4 };
transportMaxMagazines=4;
transportMaxWeapons=0;
WeaponSlots = "..."
(...)
};
This is the general appearence of my addon. It's objective is to carry machinegun magazines as it was a AmmoTruck, so that the machine gunners could pick some ammo whenever they needed.
However, it has a serious bug:
Everytime I need M60 magazines (lets say I don't have anything), I can pick more than what really exists. So, if the Assistant Gunner has 4xM60mags, I can pick 5, and then, if I keep some with me and use others, I can pick more magazines, a infite number of them!!!
However, there still exists 4 Mags, as I empty my fourth, the others just disappear!
What shall I do?