A library for guns, mostly personal use but you can also use it
Look at the bottom of source code for implementation, docs will be there one day
Controls:
- Leftclick/attack - shoot.
- Rightclick/place on block - reload.
- Z/Zoom key - zoom.
- Shift/Crouch + Rightclick/place on block - attachments.