mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user