characterdeath
This commit is contained in:
@@ -955,7 +955,8 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
FileName = filename,
|
FileName = filename,
|
||||||
Arguments = arguments,
|
Arguments = arguments,
|
||||||
#if !DEBUG
|
//#if !DEBUG
|
||||||
|
#if false
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
UseShellExecute = false,
|
UseShellExecute = false,
|
||||||
WindowStyle = ProcessWindowStyle.Hidden
|
WindowStyle = ProcessWindowStyle.Hidden
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ namespace Barotrauma.Networking
|
|||||||
int length = 1 + //(byte)ServerNetObject.CHAT_MESSAGE
|
int length = 1 + //(byte)ServerNetObject.CHAT_MESSAGE
|
||||||
2 + //(UInt16)NetStateID
|
2 + //(UInt16)NetStateID
|
||||||
1 + //(byte)Type
|
1 + //(byte)Type
|
||||||
Encoding.UTF8.GetBytes(Text).Length + 2;
|
(Text == null ? 0 : Encoding.UTF8.GetBytes(Text).Length) + 2;
|
||||||
|
|
||||||
if (SenderClient != null)
|
if (SenderClient != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3748,6 +3748,10 @@ namespace Barotrauma
|
|||||||
GameMain.NetworkMember.CreateEntityEvent(this, new object[] { NetEntityEvent.Type.Status });
|
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;
|
isDead = true;
|
||||||
|
|
||||||
ApplyStatusEffects(ActionType.OnDeath, 1.0f);
|
ApplyStatusEffects(ActionType.OnDeath, 1.0f);
|
||||||
|
|||||||
Reference in New Issue
Block a user