These types of flintlocks were placed in and around cemeteries to stop people from vandalizing and grave robbing. Lara Croft and Indiana Jones better watch out. These cemetery guns were banned because innocent people were hurt trying to visit graves.

Here is an article about the cemetery gun: