Server doesn't create an entityevent if the health of a character changes very little, husk infection isn't updated after the infected character dies, clients can't create a "huskified" human NPC until the server says so
This commit is contained in:
@@ -151,6 +151,8 @@ namespace Barotrauma
|
||||
|
||||
private void CharacterDead(Character character, CauseOfDeath causeOfDeath)
|
||||
{
|
||||
if (GameMain.Client != null) return;
|
||||
|
||||
var husk = Character.Create(
|
||||
Path.Combine("Content", "Characters", "Human", "humanhusk.xml"),
|
||||
character.WorldPosition,
|
||||
@@ -177,6 +179,7 @@ namespace Barotrauma
|
||||
|
||||
character.Enabled = false;
|
||||
|
||||
Entity.Spawner.AddToRemoveQueue(character);
|
||||
Entity.Spawner.AddToSpawnedList(husk);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user