how do flintlock weapons work?