diff --git a/MWSE/mods/celediel/ASinkingFeeling/config.lua b/MWSE/mods/celediel/ASinkingFeeling/config.lua index 3688f8e..d9f2a6c 100644 --- a/MWSE/mods/celediel/ASinkingFeeling/config.lua +++ b/MWSE/mods/celediel/ASinkingFeeling/config.lua @@ -1,6 +1,6 @@ local common = require("celediel.ASinkingFeeling.common") -local defaultConfig = {enabled = true, debug = false, downPullMultiplier = 100, mode = common.modes.equippedArmour} +local defaultConfig = {enabled = true, debug = false, playerOnly = false, downPullMultiplier = 100, mode = common.modes.equippedArmour} local config = mwse.loadConfig(common.configString, defaultConfig) return config \ No newline at end of file diff --git a/MWSE/mods/celediel/ASinkingFeeling/main.lua b/MWSE/mods/celediel/ASinkingFeeling/main.lua index 608db51..5f1995e 100644 --- a/MWSE/mods/celediel/ASinkingFeeling/main.lua +++ b/MWSE/mods/celediel/ASinkingFeeling/main.lua @@ -45,6 +45,9 @@ local function sinkInWater(e) -- no creatures if mobile.actorType == tes3.actorType.creature then return end + -- if configured to be player only, bail if not player + if config.playerOnly and mobile.actorType ~= tes3.actorType.player then return end + local downPull = 0 -- calculate the down-pull with the configured formula diff --git a/MWSE/mods/celediel/ASinkingFeeling/mcm.lua b/MWSE/mods/celediel/ASinkingFeeling/mcm.lua index 7dcfebf..5d2b08b 100644 --- a/MWSE/mods/celediel/ASinkingFeeling/mcm.lua +++ b/MWSE/mods/celediel/ASinkingFeeling/mcm.lua @@ -19,6 +19,12 @@ category:createYesNoButton({ variable = createTableVar("enabled") }) +category:createYesNoButton({ + label = "Player-only", + description = "The mod only affects the player, not other actors.", + variable = createTableVar("playerOnly") +}) + category:createDropdown({ label = "Down-pull formula", description = "Formula used to calculate down-pull amount.\n\nOptions are: Equipped Armour, Equipment Weight, Encumbrance\n\n" ..