Hammer (component)
The hammer was a component of a flintlock rifle. 

To fire a flintlock, the rifle's hammer would strike the  to cause a spark, which ignited the gunpowder, and fired the projectile. 

When James T. Kirk instructed  and his men on how to use a flintlock, he explained the process during his demonstration. ()

External link 
 

Weapon components