Guncode Agony 4.2: Firing Effect Intervallo (#88072)

## About The Pull Request

Firing effects now attach themselves to the firer, meaning you don't run
over or back from your own muzzle flash if you fire while running.

## Why It's Good For The Game

Look better, both when moving into and away from the effect.

## Changelog
🆑
image: Muzzle flash now is attached to your sprite, meaning you won't
run over it if you fire while moving
/🆑
This commit is contained in:
SmArtKar
2024-11-24 15:35:31 +03:00
committed by GitHub
parent 01add240a7
commit f34bd3f5c0
3 changed files with 8 additions and 2 deletions
@@ -57,6 +57,12 @@
icon_state = "firing_effect"
duration = 3
/obj/effect/temp_visual/dir_setting/firing_effect/Initialize(mapload, set_dir)
. = ..()
if (ismovable(loc))
var/atom/movable/spawned_inside = loc
spawned_inside.vis_contents += src
/obj/effect/temp_visual/dir_setting/firing_effect/setDir(newdir)
switch(newdir)
if(NORTH)