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.
This commit is contained in:
MrPerson
2015-04-04 03:08:24 -07:00
parent 005c519b94
commit e2d8b62620
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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
@@ -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