Xrays shoot everything but walls

This commit is contained in:
Jordie
2013-10-09 18:05:33 +11:00
parent 272038e2e7
commit 416cbee62c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -48,6 +48,7 @@
var/stutter = 0
var/eyeblur = 0
var/drowsy = 0
var/forcedodge = 0
proc/delete()
@@ -97,7 +98,7 @@
spawn(0)
if(A)
var/permutation = A.bullet_act(src, def_zone) // searches for return value
if(permutation == -1 || forcedodge) // the bullet passes through a dense object!
if(permutation == -1 || forcedodge || !istype(A, /turf)) // the bullet passes through a dense object!
bumped = 0 // reset bumped variable!
if(istype(A, /turf))
loc = A
+1 -1
View File
@@ -27,7 +27,7 @@
icon_state = "xray"
damage = 15
irradiate = 30
forcedodge = 1
/obj/item/projectile/beam/pulse
name = "pulse"