Guided weapon safety template generation – a probabilistic approach