more
This commit is contained in:
@@ -238,6 +238,8 @@ namespace Barotrauma
|
||||
|
||||
public static Submarine GetRespawnSub()
|
||||
{
|
||||
if (GameMain.Server.RespawnManager == null)
|
||||
return null;
|
||||
return GameMain.Server.RespawnManager.RespawnShuttle;
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +137,8 @@ namespace Barotrauma
|
||||
UserData.RegisterType<AttackResult>();
|
||||
UserData.RegisterType<Entity>();
|
||||
UserData.RegisterType<MapEntity>();
|
||||
UserData.RegisterType<CauseOfDeath>();
|
||||
UserData.RegisterType<CharacterTeamType>();
|
||||
|
||||
lua = new Script(CoreModules.Preset_SoftSandbox | CoreModules.LoadMethods);
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace Barotrauma.Networking
|
||||
return;
|
||||
}
|
||||
|
||||
var should = GameMain.Lua.hook.Call("chatMessage", new DynValue[] { DynValue.NewString(txt), UserData.Create(c) });
|
||||
var should = GameMain.Lua.hook.Call("chatMessage", new DynValue[] { DynValue.NewString(txt), UserData.Create(c), UserData.Create(type) });
|
||||
|
||||
|
||||
if(should != null)
|
||||
|
||||
@@ -2226,7 +2226,6 @@ namespace Barotrauma
|
||||
|
||||
if (condition == 0.0f) { return; }
|
||||
|
||||
|
||||
#if SERVER
|
||||
var should = GameMain.Lua.hook.Call("itemUse", new DynValue[] { LuaSetup.CreateUserDataSafe(this), LuaSetup.CreateUserDataSafe(character), LuaSetup.CreateUserDataSafe(targetLimb) });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user