traitormod
This commit is contained in:
@@ -20,7 +20,7 @@ local config = dofile("lua/traitormod/traitorconfig.lua")
|
|||||||
local util = dofile("lua/traitormod/util.lua")
|
local util = dofile("lua/traitormod/util.lua")
|
||||||
|
|
||||||
Game.OverrideTraitors(config.enableTraitors) -- shutup old traitors
|
Game.OverrideTraitors(config.enableTraitors) -- shutup old traitors
|
||||||
Game.AllowWifiChat(config.enableWifiChat)
|
Game.AllowWifiChat(config.enableWifiChat) -- deprecated
|
||||||
|
|
||||||
traitormod.config = config
|
traitormod.config = config
|
||||||
|
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ config.traitorShipChance = 15
|
|||||||
config.traitorShipGodModeDistance = 4000
|
config.traitorShipGodModeDistance = 4000
|
||||||
|
|
||||||
config.enableCommunicationsOffline = true
|
config.enableCommunicationsOffline = true
|
||||||
config.communicationsOfflineChance = 20
|
config.communicationsOfflineChance = 15
|
||||||
|
|
||||||
-- Gameplay Options
|
-- Gameplay Options
|
||||||
config.enableSabotage = true -- allow everyone to sabotage
|
config.enableSabotage = true -- allow everyone to sabotage
|
||||||
config.enableWifiChat = true -- allow people to wire wifi components to the chat ingame
|
config.enableWifiChat = true -- deprecated
|
||||||
|
|
||||||
-- Traitor Selection Options
|
-- Traitor Selection Options
|
||||||
config.roundEndPercentageIncrease = 10
|
config.roundEndPercentageIncrease = 10
|
||||||
@@ -41,6 +41,8 @@ config.getAmountTraitors = function (amountClients)
|
|||||||
|
|
||||||
if amountClients >= 8 then return 2 end -- if theres 8 or more players, 2 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
|
return 1 -- if theres less than 8 players, there will only one traitor
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user