Template:Shared weapon functions