this is a sample demonstration for a fps weapon, it is very broken, if you spam a lot. space to shoot, r to reload. this is a little more advanced than a regular reload engine as it dynamically shows the ammo going up, and it ends always at 4, unless you spam.
BE AWARE: this is just a sample demonstration. not anything special, so beware of any broken animations that are common based off LEFT 4 DEAD. this was a little complicated to make i dont reccomend taking this code as it is buggy