Merge pull request #11 from mc-oofert/patch-1
characterDeath with killer and killing affliction
This commit is contained in:
@@ -27,7 +27,7 @@ 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.Lua.hook.Call("characterDeath", new object[] { this,causeOfDeathAffliction });
|
||||||
healthUpdateTimer = 0.0f;
|
healthUpdateTimer = 0.0f;
|
||||||
|
|
||||||
if (CauseOfDeath.Killer != null && CauseOfDeath.Killer.IsTraitor && CauseOfDeath.Killer != this)
|
if (CauseOfDeath.Killer != null && CauseOfDeath.Killer.IsTraitor && CauseOfDeath.Killer != this)
|
||||||
|
|||||||
@@ -3808,10 +3808,6 @@ namespace Barotrauma
|
|||||||
GameMain.GameSession.KillCharacter(this);
|
GameMain.GameSession.KillCharacter(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if SERVER
|
|
||||||
GameMain.Lua.hook.Call("characterDeath", new object[] { this });
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
partial void KillProjSpecific(CauseOfDeathType causeOfDeath, Affliction causeOfDeathAffliction, bool log);
|
partial void KillProjSpecific(CauseOfDeathType causeOfDeath, Affliction causeOfDeathAffliction, bool log);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user