- 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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user