Rifle mechanics