Fixed limbs becoming severed even if the character isn't dead, severed limbs fade out after 10 seconds

This commit is contained in:
Joonas Rikkonen
2017-06-20 21:01:59 +03:00
parent aa541695fc
commit d07649463b
3 changed files with 43 additions and 11 deletions
+2 -1
View File
@@ -1729,7 +1729,8 @@ namespace Barotrauma
GameServer.Log(Name + " attacked by " + attackingCharacter.Name+". Damage: "+attackResult.Damage+" Bleeding damage: "+attackResult.Bleeding, ServerLog.MessageType.Attack);
}
if (GameMain.Client == null &&
if (GameMain.Client == null &&
isDead &&
health - attackResult.Damage <= minHealth && Rand.Range(0.0f, 1.0f) < attack.SeverLimbsProbability)
{
foreach (LimbJoint joint in AnimController.LimbJoints)