Tracers: Migrate to use new rendering system (#61963)

This fixes Emitters, beam_rifle, and more.

The great rendering refactor (#61286) changed how rendering worked.
Entities need to have a usable plane to render to. This isn't normally
a problem, as sensible defaults are set very low in the type path.
However, tracer effects use an appearance override, which was missing
the plane definition.

This adds the plane to the appearance used when apply_vars is called,
by copying it from the holding entity.
This commit is contained in:
esainane
2021-10-09 01:27:37 -07:00
committed by GitHub
parent 353fa6a13d
commit 9be17a0efc
@@ -38,6 +38,7 @@
/obj/effect/projectile/proc/apply_vars(angle_override, p_x = 0, p_y = 0, color_override, scaling = 1, new_loc, increment = 0)
var/mutable_appearance/look = new(src)
look.plane = plane
look.pixel_x = p_x
look.pixel_y = p_y
if(color_override)