Fixed character.death not getting called on the client
This commit is contained in:
@@ -25,7 +25,6 @@ namespace Barotrauma
|
|||||||
GameServer.Log(GameServer.CharacterLogName(this) + " has died (Cause of death: " + causeOfDeath + ")", ServerLog.MessageType.Attack);
|
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))
|
if (HasAbilityFlag(AbilityFlags.RetainExperienceForNewCharacter))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4535,6 +4535,7 @@ namespace Barotrauma
|
|||||||
SteamAchievementManager.OnCharacterKilled(this, CauseOfDeath);
|
SteamAchievementManager.OnCharacterKilled(this, CauseOfDeath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GameMain.LuaCs.Hook.Call("character.death", this, causeOfDeathAffliction);
|
||||||
KillProjSpecific(causeOfDeath, causeOfDeathAffliction, log);
|
KillProjSpecific(causeOfDeath, causeOfDeathAffliction, log);
|
||||||
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user