renamed hooks (with compatibility), added new hook: character.giveJobItems (because of how often its used) and updated hook docs
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Barotrauma
|
||||
GameServer.Log(GameServer.CharacterLogName(this) + " has died (Cause of death: " + causeOfDeath + ")", ServerLog.MessageType.Attack);
|
||||
}
|
||||
}
|
||||
GameMain.LuaCs.Hook.Call("characterDeath", this,causeOfDeathAffliction);
|
||||
GameMain.LuaCs.Hook.Call("character.death", this,causeOfDeathAffliction);
|
||||
|
||||
if (HasAbilityFlag(AbilityFlags.RetainExperienceForNewCharacter))
|
||||
{
|
||||
|
||||
@@ -293,7 +293,7 @@ namespace Barotrauma.Networking
|
||||
SendConsoleMessage("Granted all permissions to " + newClient.Name + ".", newClient);
|
||||
}
|
||||
|
||||
GameMain.LuaCs.Hook.Call("clientConnected", newClient);
|
||||
GameMain.LuaCs.Hook.Call("client.connected", newClient);
|
||||
|
||||
|
||||
SendChatMessage($"ServerMessage.JoinedServer~[client]={clName}", ChatMessageType.Server, null, changeType: PlayerConnectionChangeType.Joined);
|
||||
@@ -2899,7 +2899,7 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
if (client == null) return;
|
||||
|
||||
GameMain.LuaCs.Hook.Call("clientDisconnected", client);
|
||||
GameMain.LuaCs.Hook.Call("client.disconnected", client);
|
||||
|
||||
if (gameStarted && client.Character != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user