- health/oxygen syncing with the new -100.0 - 100.0 range taken into account

- enemies die when their health reaches 0.0 (instead of -100.0)
- HUD, chatbox etc disabled when the character is unconscious
This commit is contained in:
Regalis
2016-03-26 18:09:17 +02:00
parent 277762a72a
commit 6c0927a564
5 changed files with 137 additions and 132 deletions
@@ -95,6 +95,7 @@ namespace Barotrauma
//unequip diving suit if running out of oxygen
if (Character.Oxygen < 50.0f && Character.AnimController.CurrentHull!=null &&
Character.AnimController.CurrentHull.OxygenPercentage > 20.0f &&
Character.AnimController.CurrentHull.Volume < Character.AnimController.CurrentHull.FullVolume*0.3f)
{
var divingSuit = Character.Inventory.FindItem("Diving Suit");