Barotrauma

Barotrauma

Not enough ratings
IdCard Permissions Lua
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
50.751 KB
16 Feb @ 12:59am
19 Feb @ 5:07pm
2 Change Notes ( view )

Subscribe to download
IdCard Permissions Lua

Description
Features
Remove permissions from IdCards for players who do not have certain server permissions or a certain steamid.
For example forbid all captains, security officers, medics from using their lockers.
There is also the option to handcuff them at first spawn.

Default settings
- Forbidden jobs: captain, security officer, medic
- Server Permissions: Karma Immunity
- SteamIds: none
- Handcuffs: enabled

You can edit settings in file.
%ModFolder%\Lua\Autorun\idcardpermissions.lua

Specifics of mod work
- Mod does not affect idcards of non-player characters.
- Mod does not affect idcards of disconnected players.
- All idcards are updated at the moment of their spawning. If you give permissions to a player after his spawning, idcard will be updated only in the next round, or buy a new idcard in this round.
- It is still possible to steal a card from a player or enemy sub (vanilla bug) and use it.
- If a player's nickname uses the ",id_" pattern, mod will not be able to work correctly with it (vanilla bug, you can add ",id_captain," to nickname for captain access).

Important!
Serverside only mod.
Lua For Barotrauma is required to work.
2 Comments
hanteruga5 26 Jun @ 12:18pm 
Я отключил кислород на корабле, а все баллоны спрятал в сейфе
Crystal 18 Apr @ 9:30am 
Запретил всем залазить в хим ящик и в арсенал. Теперь со мной никто не играет, спасибо!