characterdeath
This commit is contained in:
@@ -955,7 +955,8 @@ namespace Barotrauma
|
||||
{
|
||||
FileName = filename,
|
||||
Arguments = arguments,
|
||||
#if !DEBUG
|
||||
//#if !DEBUG
|
||||
#if false
|
||||
CreateNoWindow = true,
|
||||
UseShellExecute = false,
|
||||
WindowStyle = ProcessWindowStyle.Hidden
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace Barotrauma.Networking
|
||||
int length = 1 + //(byte)ServerNetObject.CHAT_MESSAGE
|
||||
2 + //(UInt16)NetStateID
|
||||
1 + //(byte)Type
|
||||
Encoding.UTF8.GetBytes(Text).Length + 2;
|
||||
(Text == null ? 0 : Encoding.UTF8.GetBytes(Text).Length) + 2;
|
||||
|
||||
if (SenderClient != null)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user