Jump to content

Recommended Posts

Hello everyone. Is here anyone able and wiilling to make a mod (or editted script or whatever is necessary) with weaker Wilson please? I´m thinking about Wilson with some of Wes´ stats, namely:

  • Lower health/hunger/sanity
  • Damage penalty
  • Faster freezing/overheating
  • Attracting lightning more than others
  • Slower recovery from grogginess
  • Less efficient while using tools

You might say "play as Wes then" but Wes sux :D I love Wilson, his quotes, beard and everything...Everyone has a fav character.

 

*Maybe an idea for future updates? - adding an option for each character to play their weaker counterparts? Some challenging mode.

  • Like 1

So I managed to set health/hunger/sanity to 75 with "GLOBAL.TUNING.WILSON_SANITY = 75" etc. I tried to copy and modify other lines from Wes´ or tuning.lua scripts but it didn´t work at all.

Spoiler

Something like

GLOBAL.TUNING.WILSON_LIGHTNING_TARGET_CHANCE = 0.6
GLOBAL.TUNING.WILSON_DAMAGE_MULT = .75
GLOBAL.TUNING.WILSON_GROGGINESS_DECAY_RATE = 0.01 * 0.75, --GROGGINESS_DECAY_RATE = .01
GLOBAL.TUNING.WILSON_WORKEFFECTIVENESS_MODIFIER = 0.75
GLOBAL.TUNING.WES_HOUND_TARGET_MULT = 2.0

Any ideas how to make it work, please?

10 hours ago, Filip_G said:

So I managed to set health/hunger/sanity to 75 with "GLOBAL.TUNING.WILSON_SANITY = 75" etc. I tried to copy and modify other lines from Wes´ or tuning.lua scripts but it didn´t work at all.

  Hide contents

Something like

GLOBAL.TUNING.WILSON_LIGHTNING_TARGET_CHANCE = 0.6
GLOBAL.TUNING.WILSON_DAMAGE_MULT = .75
GLOBAL.TUNING.WILSON_GROGGINESS_DECAY_RATE = 0.01 * 0.75, --GROGGINESS_DECAY_RATE = .01
GLOBAL.TUNING.WILSON_WORKEFFECTIVENESS_MODIFIER = 0.75
GLOBAL.TUNING.WES_HOUND_TARGET_MULT = 2.0

Any ideas how to make it work, please?

Copy this into your modmain

local TUNING = GLOBAL.TUNING
local ACTIONS = GLOBAL.ACTIONS
AddPrefabPostInit("wilson", function(inst)
    if not GLOBAL.TheWorld.ismastersim then
        return inst
    end
    inst.components.health:SetMaxHealth(TUNING.WES_HEALTH)
    inst.components.hunger:SetMax(TUNING.WES_HUNGER)
    inst.components.sanity:SetMax(TUNING.WES_SANITY)

    inst.components.temperature.inherentinsulation = -TUNING.INSULATION_TINY
    inst.components.temperature.inherentsummerinsulation = -TUNING.INSULATION_TINY

    inst.components.grogginess.decayrate = TUNING.WES_GROGGINESS_DECAY_RATE

    inst.components.playerlightningtarget:SetHitChance(TUNING.WES_LIGHTNING_TARGET_CHANCE)

    inst.components.workmultiplier:AddMultiplier(ACTIONS.CHOP, TUNING.WES_WORKEFFECTIVENESS_MODIFIER, inst)
    inst.components.workmultiplier:AddMultiplier(ACTIONS.MINE, TUNING.WES_WORKEFFECTIVENESS_MODIFIER, inst)
    inst.components.workmultiplier:AddMultiplier(ACTIONS.HAMMER, TUNING.WES_WORKEFFECTIVENESS_MODIFIER, inst)

    if inst.components.efficientuser == nil then
        inst:AddComponent("efficientuser")
    end
    inst.components.efficientuser:AddMultiplier(ACTIONS.CHOP, TUNING.WES_WORKEFFECTIVENESS_MODIFIER, inst)
    inst.components.efficientuser:AddMultiplier(ACTIONS.MINE, TUNING.WES_WORKEFFECTIVENESS_MODIFIER, inst)
    inst.components.efficientuser:AddMultiplier(ACTIONS.HAMMER, TUNING.WES_WORKEFFECTIVENESS_MODIFIER, inst)
    inst.components.efficientuser:AddMultiplier(ACTIONS.ATTACK, TUNING.WES_DAMAGE_MULT, inst)
    inst.components.combat.damagemultiplier = TUNING.WES_DAMAGE_MULT

end)

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...