Changed checks to use the name variable and IsA to avoid explicit dependencies on the hunting rifle