Lua is automatically initialized when entering singleplayer campaigns (doesn't include submarine editor) and roundStart && roundEnd hooks now work in CL Lua

This commit is contained in:
Evil Factory
2022-02-14 16:19:53 -03:00
parent 0d5ba52a15
commit d3e0625ef4
5 changed files with 15 additions and 2 deletions
@@ -1761,8 +1761,6 @@ namespace Barotrauma.Networking
AddChatMessage($"ServerMessage.HowToCommunicate~[chatbutton]={GameMain.Config.KeyBindText(InputType.Chat)}~[radiobutton]={GameMain.Config.KeyBindText(InputType.RadioChat)}", ChatMessageType.Server);
GameMain.Lua.hook.Call("roundStart", new object[] { });
yield return CoroutineStatus.Success;
}