Author Topic: Ammo system with ammo items.  (Read 707 times)

It would be great if someone made an ammo system that adds a small number on the bottom right corner of the screen. It will show the amount of ammunition you have and name what it is used for. And you can pick up items that are spawned on bricks that add to your ammo. I made up a custom screenshot of what it would look like. It would be awesome if it supported a bunch of the currently made weapon add ons. I made the screenshot have bullets rockets grenades arrows and knives. The weapons those would be for is any gun any rocket using weapon grenade launchers any bow and a throwing knife weapon I guess. Heres the screen shot with the custom text added to show what I want the mod to look like. Also, I think it'd be cool if the ammo mod makes it so the ammo doesn't show up till you actually get an ammunition item. Also the item won't show up in your inventory so that you can still hold weapons, the ammo will just be picked up and disappear and add to the ammunition on the corner of the screen.

Kind of what GTAs ammo system is like? if so, then i agree.

I think I could do that, but you probably wouldn't like the results, as I would probably make a framework for an ammo system that is left to other mods to use. Something that could easily be integrated into any mod, but on it's own can't do anything.

Kind of what GTAs ammo system is like? if so, then i agree.


Here. I accidentally deleted everything once I finished, so had to restart completely, but this is a gun that uses ammo, with the ammo system removed from the gun code. Because I had to restart, you don't get the nice commented version, unfortunately, but I tried to make the function names clear enough that it is at least partly understandable. It would be fairly easy to replace the sample's spammy chat display with one that updates a GUI, and properly using image states you could easily set it up to reload one bullet at a time.

i think you misspelled amount all throughout it :D
(you have ammount)

Well, at least it's consistant. It's a result of late night, rewriting recently deleted code, and confusion with ammo, I guess.

Well, at least it's consistant. It's a result of late night, rewriting recently deleted code, and confusion with ammo, I guess.
true, now you can just do find and replace all and fix your spelling :D