Files
LuaCsForBarotraumaEP/Example/Lua/traitormod/traitorconfig.lua
Evil Factory 4c157ded2b traitormod
2021-06-17 13:06:17 -03:00

52 lines
1.7 KiB
Lua

local config = {}
local codewords = {
"pomegrenade", "tabacco", "fish", "nonsense", "europa", "clown",
"thalamus", "hungry", "renegade", "angry", "green", "flamingos", "sink",
"mask", "boomer", "sweet", "ice", "charybdis", "cult", "secret", "moloch",
"husk", "rusted", "ruins", "red", "boat", "cats", "rats", "jeepers", "bench",
"tire", "trunk", "blow sticks", "thrashers"
}
config.enableTraitors = true
config.codewords = codewords
config.amountCodewords = 2
config.traitorSpawnDelay = 60
config.nextMissionDelay = 60
config.endRoundWhenAllTraitorsDie = false
config.endRoundDelayInSeconds = 60
config.traitorShipEnabled = true -- set this to false for the respawn shuttles to work
config.traitorShipChance = 15
config.traitorShipGodModeDistance = 4000
config.enableCommunicationsOffline = true
config.communicationsOfflineChance = 15
-- Gameplay Options
config.enableSabotage = true -- allow everyone to sabotage
config.enableWifiChat = true -- deprecated
-- Traitor Selection Options
config.roundEndPercentageIncrease = 10
config.firstJoinPercentage = 10
config.traitorPercentageSet = 5
config.traitorPenalty = 5
-- >=12 players = 3 traitors, >=8 players = 2 traitors, default = 1 traitor
config.getAmountTraitors = function (amountClients)
if amountClients >= 12 then return 3 end -- if theres 12 or more players, 3 traitors will be selected
if amountClients >= 8 then return 2 end -- if theres 8 or more players, 2 traitors will be selected
if amountClients == 1 then return 0 end
return 1 -- if theres less than 8 players, there will only one traitor
end
-- shipTraitors and normal traitors will be selected equally
config.getAmountShipTraitors = config.getAmountTraitors
return config;