From ea5b155057df34fed3c3e010119fe17a229de0cd Mon Sep 17 00:00:00 2001 From: Detective Google <48196179+Detective-Google@users.noreply.github.com> Date: Thu, 25 Jun 2020 19:39:37 -0500 Subject: [PATCH 1/2] lying down now isnt random --- code/modules/mob/living/living_mobility.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/living_mobility.dm b/code/modules/mob/living/living_mobility.dm index 32038a6102..32586c01bd 100644 --- a/code/modules/mob/living/living_mobility.dm +++ b/code/modules/mob/living/living_mobility.dm @@ -96,7 +96,14 @@ mobility_flags &= ~MOBILITY_STAND setMovetype(movement_type | CRAWLING) if(!lying) //force them on the ground - lying = pick(90, 270) + if(src.dir == 1) + lying = pick(90, 270) + if(src.dir == 2) + lying = pick(90, 270) + if(src.dir == 4) + lying = 90 + if(src.dir == 8) + lying = 270 if(has_gravity() && !buckled) playsound(src, "bodyfall", 20, 1) else From 899837324134d76f566ce369dc7e7a89b6415a52 Mon Sep 17 00:00:00 2001 From: Detective-Google <48196179+Detective-Google@users.noreply.github.com> Date: Thu, 25 Jun 2020 19:58:41 -0500 Subject: [PATCH 2/2] Update code/modules/mob/living/living_mobility.dm Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/modules/mob/living/living_mobility.dm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/living/living_mobility.dm b/code/modules/mob/living/living_mobility.dm index 32586c01bd..654a979445 100644 --- a/code/modules/mob/living/living_mobility.dm +++ b/code/modules/mob/living/living_mobility.dm @@ -96,14 +96,13 @@ mobility_flags &= ~MOBILITY_STAND setMovetype(movement_type | CRAWLING) if(!lying) //force them on the ground - if(src.dir == 1) - lying = pick(90, 270) - if(src.dir == 2) - lying = pick(90, 270) - if(src.dir == 4) - lying = 90 - if(src.dir == 8) - lying = 270 + switch(dir) + if(NORTH, SOUTH) + lying = pick(90, 270) + if(EAST) + lying = 90 + else //West + lying = 270 if(has_gravity() && !buckled) playsound(src, "bodyfall", 20, 1) else