Turrets detect targets through metal foam.

This commit is contained in:
Mechoid
2017-10-15 13:35:29 -07:00
parent 768dc2d7c0
commit 9a04744ab6
5 changed files with 31 additions and 5 deletions

View File

@@ -410,6 +410,8 @@
return //cannot shoot yourself
if(istype(A, /obj/item/projectile))
return
if(istype(A, /obj/structure/foamedmetal)) //Turrets can detect through foamed metal, but will have to blast through it. Similar to windows, if someone runs behind it, a person should probably just not shoot.
return
if(istype(A, /mob/living) || istype(A, /obj/mecha) || istype(A, /obj/vehicle))
result = 2 //We hit someone, return 1!
return