Jump to content

Recommended Posts

On 7/26/2025 at 6:48 AM, Kalmado said:

Mods or commands, I like it to be 50% or maybe more

You can use this code in the console, but when a player goes into the cave or reconnects, it will stop affecting that player. Also, 1.5 might not be exactly 50%; I’ve noticed that players have a default damage resistance factor, but I’m not sure how much it is (or I could be mistaken).
 

for k, v in pairs(AllPlayers) do 
    v.components.combat.externaldamagetakenmultipliers:SetModifier(v, 1.5, "extdamage") 
end

Use this code for a mod by simply placing it into modmain.lua
 

AddPlayerPostInit(function(inst)
    if not TheWorld.ismastersim then
        return inst
    end
    inst.components.combat.externaldamagetakenmultipliers:SetModifier(inst, 1.5, "extdamage")
end)

I remember there's something similar in the health component too, but I'm not sure how these two types of damage resistance actually work. I just recall that one takes effect before armor reduces damage, and the other takes effect after armor mitigation.

  • Health 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...