From e2d8b62620c29dbae023df1b7b6922c8bf6a2b13 Mon Sep 17 00:00:00 2001 From: MrPerson Date: Sat, 4 Apr 2015 03:08:24 -0700 Subject: [PATCH] Reduces penalty to movespeed from being cold It kicks in at a lower body temp and the slowdown is less harsh. You move noticeably faster than space wind, which was the goal here. --- code/__DEFINES/atmospherics.dm | 1 + code/modules/mob/living/carbon/human/species.dm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/__DEFINES/atmospherics.dm b/code/__DEFINES/atmospherics.dm index 0c121617b81..eba85018d34 100644 --- a/code/__DEFINES/atmospherics.dm +++ b/code/__DEFINES/atmospherics.dm @@ -110,3 +110,4 @@ #define PRESSURE_SUIT_REDUCTION_COEFFICIENT 0.8 //This is how much (percentual) a suit with the flag STOPSPRESSUREDMAGE reduces pressure. #define PRESSURE_HEAD_REDUCTION_COEFFICIENT 0.4 //This is how much (percentual) a helmet/hat with the flag STOPSPRESSUREDMAGE reduces pressure. +#define COLD_SLOWDOWN_FACTOR 20 //Humans are slowed by the difference between bodytemp and BODYTEMP_COLD_DAMAGE_LIMIT divided by this \ No newline at end of file diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index d66d73d0e1c..272b0230031 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -695,8 +695,8 @@ if((H.disabilities & FAT)) mspeed += 1.5 - if(H.bodytemperature < 283.222) - mspeed += (283.222 - H.bodytemperature) / 10 * (grav+0.5) + if(H.bodytemperature < BODYTEMP_COLD_DAMAGE_LIMIT) + mspeed += (BODYTEMP_COLD_DAMAGE_LIMIT - H.bodytemperature) / COLD_SLOWDOWN_FACTOR mspeed += speedmod