This commit is contained in:
nicbn
2017-11-04 02:40:21 -02:00
committed by CitadelStationBot
parent 910e6b6396
commit 46c62b6293
7 changed files with 61 additions and 29 deletions
@@ -312,14 +312,10 @@
icon_state = "impact_bullet"
duration = 5
/obj/effect/temp_visual/impact_effect/Initialize(mapload, atom/target, obj/item/projectile/P)
if(target == P.original)
pixel_x = target.pixel_x + P.p_x - 16
pixel_y = target.pixel_y + P.p_y - 16
else
pixel_x = target.pixel_x + rand(2, -2)
pixel_y = target.pixel_y + rand(2, -2)
. = ..()
/obj/effect/temp_visual/impact_effect/Initialize(mapload, x, y)
pixel_x = x
pixel_y = y
return ..()
/obj/effect/temp_visual/impact_effect/red_laser
icon_state = "impact_laser"
@@ -35,3 +35,5 @@
if(set_dir)
setDir(set_dir)
. = ..()