characterdeath

This commit is contained in:
Evil Factory
2021-08-02 21:58:25 -03:00
parent 49d162fb12
commit cdda8a2ffd
3 changed files with 7 additions and 2 deletions
@@ -3748,6 +3748,10 @@ namespace Barotrauma
GameMain.NetworkMember.CreateEntityEvent(this, new object[] { NetEntityEvent.Type.Status });
}
#if SERVER
GameMain.Lua.hook.Call("characterDeath", new MoonSharp.Interpreter.DynValue[] { MoonSharp.Interpreter.UserData.Create(this) });
#endif
isDead = true;
ApplyStatusEffects(ActionType.OnDeath, 1.0f);