How can you automatically fill the clip in a gun when given ammo without using reload?
3 replies, posted
How can you make it where if your retrieve ammo for a gun the bullet is automatically loaded into the barrel without you needing to reload?
Look at [url]http://wiki.garrysmod.com/page/Weapon/SetClip1[/url]
I am pretty sure that you need to make the gun automatic.
^That isn't relevant at all
You'll need to do what johnnyaka reccomended in junction with this:
[url]http://wiki.garrysmod.com/page/GM/HUDAmmoPickedUp[/url]
hook a function to that which automatically reroutes ammo picked up for your gun to the primary clip.
[editline]13th December 2013[/editline]
You'll probably have to clamp the value and add the surplus to the player's reserve, though
unless I'm wrong about what your weapon is supposed to do
Sorry, you need to Log In to post a reply to this thread.