I'm making a map based on the book Ice Station (Matt Reilly) and I would like it to have a weapons system similar to the owning one in Marines made by SentryIII. Where the weapon has charges, but doesn't disappear when they're used up, and you can reload without wasting ammo. I've tried doing it myself numerous times, with little success. Does anyone here know how it might be done?
I got the ammo, item combining and reloading sorted by myself, now i'm just stuck on how i make him stop attacking when he runs out of ammo... currently he just keeps shooting.