From d5abd91800f3b0e77dfb1793a0100518daa057e0 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Thu, 10 May 2012 01:53:17 +0100 Subject: [PATCH] TG: Fixes guns some. Can't shoot yourself as easily anymore. You can now aim at body parts with your gun. I think the reason you couldn't before was just the failure to pass the def_zone up to the parent, not sure if that was intensional or not. Revision: r3554 Author: VivianFoxfoot --- code/modules/admin/create_object.dm | 2 +- code/modules/mob/living/carbon/human/human_defense.dm | 2 +- code/modules/projectiles/gun.dm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/admin/create_object.dm b/code/modules/admin/create_object.dm index 248eebb5ab9..0e74f2cab5a 100644 --- a/code/modules/admin/create_object.dm +++ b/code/modules/admin/create_object.dm @@ -15,7 +15,7 @@ var/quick_create_object_html = null var/pathtext = null - pathtext = input("Select the path of the object you wish to create.", "Path", "/obj") in list("/obj","/obj/structure","/obj/item","/obj/machinery") + pathtext = input("Select the path of the object you wish to create.", "Path", "/obj") in list("/obj","/obj/structure","/obj/item","/obj/item/weapon","/obj/machinery") var path = text2path(pathtext) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 9ffbb5dc451..df20678c13d 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -37,7 +37,7 @@ emp_act if(check_shields(P.damage, "the [P.name]")) P.on_hit(src, 2) return 2 - return (..()) + return (..(P , def_zone)) /mob/living/carbon/human/getarmor(var/def_zone, var/type) diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index a7dccbcf285..d2abc52d7be 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -1,5 +1,5 @@ /obj/item/weapon/gun - name = "\improper Gun" + name = "gun" desc = "Its a gun. It's pretty terrible, though." icon = 'gun.dmi' icon_state = "detective"