diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index 42c2067b3b..82135a5ff8 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -166,18 +166,17 @@ var/global/list/damage_icon_parts = list() //see UpdateDamageIcon() if(tail_style?.can_loaf && resting) // Only call these if we're resting? update_tail_showing() M.Scale(desired_scale_x, desired_scale_y) + M.Translate(cent_offset * desired_scale_x, (vis_height/2)*(desired_scale_y-1)) //CHOMPEdit else - var/randn = rand(1, 2) - if(randn <= 1) // randomly choose a rotation + M.Scale(desired_scale_x, desired_scale_y) + if(isnull(resting_dir)) + resting_dir = pick(FALSE, TRUE) + if(resting_dir) + M.Translate((1 / desired_scale_x * -6) + (desired_scale_x * cent_offset), 0.5) M.Turn(-90) else + M.Translate((1 / desired_scale_x * 6) + (desired_scale_x * cent_offset), 0.5) M.Turn(90) - if(species.icon_height == 64) - M.Translate(13,-22) - else - M.Translate(1,-6) - M.Scale(desired_scale_y, desired_scale_x) - M.Translate(cent_offset * desired_scale_x, (vis_height/2)*(desired_scale_y-1)) //CHOMPEdit // CHOMPEdit End layer = MOB_LAYER -0.01 // Fix for a byond bug where turf entry order no longer matters else diff --git a/modular_chomp/code/modules/mob/dead/observer/observer.dm b/modular_chomp/code/modules/mob/dead/observer/observer.dm index 3973c07616..f344993594 100644 --- a/modular_chomp/code/modules/mob/dead/observer/observer.dm +++ b/modular_chomp/code/modules/mob/dead/observer/observer.dm @@ -4,6 +4,7 @@ /mob/observer/Destroy() if(body_backup) + body_backup.moveToNullspace() //YEET qdel(body_backup) body_backup = null return ..() diff --git a/modular_chomp/code/modules/mob/living/carbon/human/human.dm b/modular_chomp/code/modules/mob/living/carbon/human/human.dm index 0f7ccac642..cd36ee1b1f 100644 --- a/modular_chomp/code/modules/mob/living/carbon/human/human.dm +++ b/modular_chomp/code/modules/mob/living/carbon/human/human.dm @@ -50,3 +50,12 @@ set desc = "Toggle glasses worn icon visibility." hide_glasses = !hide_glasses update_inv_glasses() + +/mob/living/carbon/human/verb/flip_lying() + set name = "Flip Resting Direction" + set category = "Abilities" + set desc = "Switch your horizontal direction while prone." + if(isnull(resting_dir)) + resting_dir = FALSE + resting_dir = !resting_dir + update_transform(TRUE) \ No newline at end of file diff --git a/modular_chomp/code/modules/mob/living/carbon/human/human_defines.dm b/modular_chomp/code/modules/mob/living/carbon/human/human_defines.dm index d8c8810628..00df490521 100644 --- a/modular_chomp/code/modules/mob/living/carbon/human/human_defines.dm +++ b/modular_chomp/code/modules/mob/living/carbon/human/human_defines.dm @@ -13,6 +13,7 @@ var/hide_glasses = FALSE var/speech_sound_enabled = TRUE var/nutrition_hidden = FALSE + var/resting_dir = null /mob/living/carbon/human/ai_controlled low_priority = TRUE