Ghost orbit: Replaces a spawn with a sleep and adds a post-sleep check

This commit is contained in:
MrStonedOne
2015-10-02 08:33:18 -07:00
parent 0c67263e1d
commit d57e5aa284
+2 -1
View File
@@ -223,7 +223,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
..()
//restart our floating animation after orbit is done.
pixel_y = 0
spawn (2) //orbit sets up a 2ds animation when it finishes, so we wait for that to end
sleep 2 //orbit sets up a 2ds animation when it finishes, so we wait for that to end
if (!orbiting) //make sure another orbit hasn't started
animate(src, pixel_y = 2, time = 10, loop = -1)
/mob/dead/observer/verb/jumptomob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak