Barotrauma 潜渊症

Barotrauma 潜渊症

评价数不足
No Items On Spawn (Lua)
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
558.894 KB
2024 年 10 月 5 日 下午 11:21
6 月 28 日 上午 6:59
3 项改动说明 ( 查看 )

订阅以下载
No Items On Spawn (Lua)

描述
This mod will only work in Multiplayer Campaign Mode

What is this:
A server-side Lua mod that removes all items but ID Card from respawned players

New characters are not affected and they will get extra starter items:
- Battery cell within headset - if BaroTraumatic is enabled
- Medical starter crate - if Neurotrauma is enabled and the character is a medic

if you want to include new character you can use this console command:
lua NoItemsOnSpawn.IncludeNewCharacter = true

It works by adding a hook "character.giveJobItems" which checks if the character has characterData. if true then remove items (new character does not have characterData)

How to install:
Check workshop description of Lua For Barotrauma