Merge pull request #8694 from Verkister/patch-94

A couple ghost fixes
This commit is contained in:
Spookerton
2022-08-28 09:15:40 +01:00
committed by GitHub

View File

@@ -123,7 +123,8 @@
if(ishuman(body))
var/mob/living/carbon/human/H = body
add_overlay(H.overlays_standing)
default_pixel_x = body.default_pixel_x
default_pixel_y = body.default_pixel_y
if(!T && length(latejoin))
T = pick(latejoin) //Safety in case we cannot find the body's position
if(T)
@@ -133,7 +134,7 @@
name = capitalize(pick(first_names_male)) + " " + capitalize(pick(last_names))
real_name = name
animate(src, pixel_y = 2, time = 10, loop = -1)
animate(pixel_y = default_pixel_y, time = 10, loop = -1)
. = ..()
exonet = new(src)
@@ -471,10 +472,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/observer/dead/stop_orbit()
. = ..()
//restart our floating animation after orbit is done.
pixel_y = 0
pixel_x = 0
pixel_y = default_pixel_y
pixel_x = default_pixel_x
transform = null
animate(src, pixel_y = 2, time = 10, loop = -1)
animate(pixel_y = default_pixel_y, time = 10, loop = -1)
/mob/observer/dead/proc/stop_following()
following = null