From 56438ff3c7b6ab506ef7483d3bd8f1968afbc362 Mon Sep 17 00:00:00 2001 From: Das15 <62486730+Das15@users.noreply.github.com> Date: Fri, 1 Dec 2023 20:14:35 +0100 Subject: [PATCH 1/2] Adds forceMove --- code/modules/mob/dead/observer/observer.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 887313eb4db9..c2cbbda6aaa8 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -760,9 +760,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp following = null spawn(0) // To stop the ghost flickering. - x = tx - y = ty - z = tz + forceMove(locate(tx, ty, tz)) sleep(15) /mob/dead/observer/verb/dead_teleport_mob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak From 68f6504d30eeea0f3b5d1e94e8dfbf570efa4d12 Mon Sep 17 00:00:00 2001 From: Das15 <62486730+Das15@users.noreply.github.com> Date: Fri, 1 Dec 2023 22:18:39 +0100 Subject: [PATCH 2/2] Removed unnecessary sleep / spawn --- code/modules/mob/dead/observer/observer.dm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index c2cbbda6aaa8..430f959a7718 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -758,10 +758,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(!tx || !ty || !tz) return following = null - spawn(0) - // To stop the ghost flickering. - forceMove(locate(tx, ty, tz)) - sleep(15) + forceMove(locate(tx, ty, tz)) /mob/dead/observer/verb/dead_teleport_mob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak set category = "Ghost"