mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Merge pull request #8733 from MrPerson/cold_slowdown_speedup
Reduces penalty to movespeed from being cold
This commit is contained in:
@@ -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
|
||||
@@ -697,8 +697,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user