This version of mod not tested enough, so bugs expected.
VERY IMPORTANT:
If you use new lua install method your lua could be broken.
Check it by console command "reloadlua".
If you have red errors in console, your lua is broken.
Try reinstall game and install lua by classic install method.
!!!!!
Always keep your campaign files backed up!
New character save format not working without this mod!
To run this mod, as every other LuaCs mod, you must select LuaForBarotrauma server executable in 'Host Server' menu.
Campaign most probably cannot be converted back, without manual editing (xml file), or in-game shenanigans
Every bot, new hire and player is saved into _CharacterData.xml
!!!!!
Please, report bugs.
INSTALLATION:
To use mod Install "Lua For Barotrauma" and turn on "Enable CSharp Scripting" in Main Menu (Open LuaCs Settings):
https://steamcommunity.com/workshop/filedetails/?id=2559634234
Run your server by "Lua for Barotrauma - DedicatedServer" server executed file in server settings
IMPORTANT RECOMENDATIONS AND INFO:
All loot in Permadeath mode teleports to player submarine.
Set secure mode to true;
Dont use mcm spawn command to respawn existing or dead character;
Prevent characters with same name in your team (it causes bugs);
If you want to spectate use "mcm release" command.
COMMANDS:
--------------------------------------------
usage: mcm [function] [args]
[arg] = optional parameter
<arg> = mandatory parameter
--------------------------------------------
mcm [help] - show help for mcm functions
mcm list - list all controllable characters
mcm control <ID> - gain control of specific character
mcm release - release current controlled character
mcm config - Display current settings
---------Admins & Moderators only---------
mcm spawn <ID> - spawn client character
mcm delete <ID> - delete character (with inventory)
mcm autospawn <true/false> - automatic spawning for new clients
mcm release <ID> - release controlled character back to AI
mcm respawnmode <0/1/2> - turn respawn mode to (0 - MidRound, 1 - BetweenRounds, 2 - Permadeath. Effective at next round.
mcm respawn penalty <number> - set respawning penalty percentage. Disabled if <=0
mcm respawn interval <number> - time to wait before respawning
mcm useshuttle <true/false> - set whether to use a shuttle. Effective at next round.
mcm shuttle <shuttleName> - use the given shuttle for respawn. Effective at next round.
mcm shuttle maxtransporttime <number> - respawn shuttle time to catch up with the main sub. Effective at next round.
mcm shuttles - list of available shuttles
mcm reserve - show characters stocked in reserve
mcm reserve put <ID> - put character in reserve
mcm reserve get <ID> - get character from reserve
mcm logging <0-4> sets logging level (0 - None, 1 - Error, 2 - Warn, 3 - Info, 4 - Trace)
mcm secure <true/false> - allow only admins/moderators to gain control
KNOWN BUGS:
https://steamcommunity.com/workshop/filedetails/discussion/3584105566/614304582405026668/
Features
For the mod to work, the server must use the Lua executable file
All game clients, without exception, must be patched with client-side Lua files
The mod accepts commands from the chat (not from the F3 console). Mod commands start with the word 'mcm'
Mod works ONLY in multiplayer campaign
In order for players to appear in the game in the middle of a round, the administrator must enable autospawn of players: mcm client autospawn true, or spawn them manually: mcm spawn <id>. To get the player's id, type: mcm list
If secure mode is enabled, only administrators can freely switch between characters
Crew reserve feature allow you to load/unload characters at any time during the campaign. Check the details on the update notes.
To keep in mind
NOT CONFIRNED: Be careful with new respawning mechanic, when doing a level transition. Dead bots don't respawn. Character killed count as bots if you play another character whilst your main is dead! To avoid that, look for other mods.
Respawn interval and maxtransporttime refers to timeout on first person dead and time to arrive to main sub on respawn shuttle.
Original OUTDATED Mod: https://steamcommunity.com/sharedfiles/filedetails/?id=2775613786