From 9ffa4b8ee75c807995e6adb5f27fc7850e8f118b Mon Sep 17 00:00:00 2001 From: Bone White Date: Fri, 8 Aug 2014 01:39:42 +0100 Subject: [PATCH 1/2] Added procedural slow to EVA suits Slow increases as pressure around them increases. At higher than 80kPa the slow is 4 units (as compared to diona's natural slow of 5) --- .../mob/living/carbon/human/human_movement.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index 021c3bf80b3..d6513b4244e 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -4,6 +4,21 @@ if(species && species.flags & IS_SLOW) tally = 5 + //Bone White - added additional slow for wearing a rig suit. Does not stack with having IS_SLOW flag (Diona) + if(wear_suit && istype(wear_suit,/obj/item/clothing/suit/space)) + var/datum/gas_mixture/environment = loc.return_air() + var/local_pressure = environment.return_pressure() + switch (local_pressure) + if(20 to 40) + tally = 1 + if(40 to 60) + tally = 2 + if(60 to 80) + tally = 3 + if(80 to 9999999) + tally = 4 + + if (istype(loc, /turf/space)) return -1 // It's hard to be slowed down in space by... anything if(embedded_flag) From 3e285690ae445ff9ebddcdc5c6c258bc6984d556 Mon Sep 17 00:00:00 2001 From: Bone White Date: Fri, 8 Aug 2014 02:11:44 +0100 Subject: [PATCH 2/2] update for procedural eva slow --- code/modules/mob/living/carbon/human/human_movement.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index d6513b4244e..f04aa782306 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -15,7 +15,7 @@ tally = 2 if(60 to 80) tally = 3 - if(80 to 9999999) + if(80 to INFINITY) tally = 4