auto reload?

After watching Matt’s tutorial about reloading i realised i dont have auto reload when mag at 0 and also dont have reload cancel.

i thought about making a branch, checking if the mag has 0 ammo and on true reload but i dont know how to do that.

you could look when subtracting -1 from ammo in the fire function if you are <= 0
if so, delay 0.5 or more so it wont instant reload after last shot and then do the reload function.

hope it helps