Merge pull request #3798 from Citadel-Station-13/upstream-merge-32316

[MIRROR] Wall damage decal overhaul
This commit is contained in:
LetterJay
2017-11-04 22:50:29 -05:00
committed by GitHub
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)
. = ..()