mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 14:37:04 +01:00
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.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3554 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -246,11 +246,14 @@ proc/isInSight(var/atom/A, var/atom/B)
|
||||
|
||||
proc/doafterattack(obj/target , obj/source)
|
||||
|
||||
if (istype(target, /obj/item/weapon/storage/backpack ))
|
||||
if (istype(target, /obj/item/weapon/storage/ ))
|
||||
return 0
|
||||
|
||||
else if (locate (/obj/structure/table, source.loc))
|
||||
return 0
|
||||
|
||||
else if (!istype(target.loc, /turf/))
|
||||
return 0
|
||||
|
||||
else
|
||||
return 1
|
||||
Reference in New Issue
Block a user