Commit Graph

8 Commits

Author SHA1 Message Date
SX
dc59f608ad Suffocate faster without spacesuit + damage from 8df57b3 2020-02-05 19:04:33 +02:00
Thomas Rudin
8df57b314e damage player in vacuum 2020-02-05 16:47:08 +01:00
NatureFreshMilk
379d07a8fc luacheck and fixes / no dep on vacuum 2019-12-10 15:05:37 +01:00
Thomas Rudin
4b538d9fc1 Merge branch 'master' into timer 2019-06-25 07:05:10 +02:00
coil
4e3d5ac072 Wear spacesuit accounting for server lag
This makes spacesuit wear independent from server lag. The timer
between updates should average one second. If it is more,
multiplying by the timer value increases wear as if an update had
happened at every additional step (except the wear value would be
rounded to an integer between 0 and 65535 every time).

Because the real average is slightly higher than one second,
multiplying by the timer value decreases how long the spacesuit
lasts. With one additional step per update and steps of
0.034 seconds (the average time I get in singleplayer), that means
2 or 3 additional wear. So I also decrease armor_use to 70, which
restores the spacesuit to lasting as long as before or slightly
longer.

Also, this allows increasing the minimum timer value to two seconds
or more without needing to change the armor_use value.
2019-06-24 18:58:34 -04:00
coil
9308971cf5 Add wear only to spacesuit parts 2019-06-11 14:59:27 -04:00
Thomas Rudin
0fadfbf131 working hud 2018-11-05 10:28:19 +01:00
Thomas Rudin
b9d7a4e0b8 modules 2018-11-05 08:44:18 +01:00