From db06d9560ada302ba8e9cd9bdbe4748427f65ac9 Mon Sep 17 00:00:00 2001 From: GlamourChariot Date: Thu, 26 Mar 2015 00:49:27 +1100 Subject: [PATCH] Fixes #456 Adds the same check that laser tag guns have for mouth shooting to practice rifles so that you can no longer suicide with them. --- code/modules/projectiles/gun.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index 89608e7e..ff8a05e0 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -249,6 +249,11 @@ mouthshoot = 0 return + if(istype(in_chamber, /obj/item/projectile/beam/practice)) + user.show_message("You feel rather silly, trying to commit suicide with a practice gun.") + mouthshoot = 0 + return + in_chamber.on_hit(M) if (in_chamber.damage_type != HALLOSS) user.apply_damage(in_chamber.damage*2.5, in_chamber.damage_type, "head", used_weapon = "Point blank shot in the mouth with \a [in_chamber]", sharp=1)