Fixed character.death not getting called on the client

This commit is contained in:
EvilFactory
2023-03-30 18:37:13 -03:00
parent 728796494e
commit ca1c294c7a
2 changed files with 1 additions and 1 deletions

View File

@@ -25,7 +25,6 @@ namespace Barotrauma
GameServer.Log(GameServer.CharacterLogName(this) + " has died (Cause of death: " + causeOfDeath + ")", ServerLog.MessageType.Attack);
}
}
GameMain.LuaCs.Hook.Call("character.death", this,causeOfDeathAffliction);
if (HasAbilityFlag(AbilityFlags.RetainExperienceForNewCharacter))
{

View File

@@ -4535,6 +4535,7 @@ namespace Barotrauma
SteamAchievementManager.OnCharacterKilled(this, CauseOfDeath);
}
GameMain.LuaCs.Hook.Call("character.death", this, causeOfDeathAffliction);
KillProjSpecific(causeOfDeath, causeOfDeathAffliction, log);
if (info != null)