Jump to content

Recommended Posts

my character has 90% natural defense like the weremoose, and i also want her to not gain defense from armor as thatd be too overpowered. I just can't figure it out though, ive been trying for a entire day. I couldnt do it, id very much so appreciate it if someone could lend me a hand.

On 6/23/2025 at 8:56 PM, asperg said:

my character has 90% natural defense like the weremoose, and i also want her to not gain defense from armor as thatd be too overpowered. I just can't figure it out though, ive been trying for a entire day. I couldnt do it, id very much so appreciate it if someone could lend me a hand.

It might work, add the ignore_armor tag to your character
 

AddComponentPostInit("inventory", function(self)
    local _ApplyDamage = self.ApplyDamage

    function self:ApplyDamage(damage, attacker, weapon, spdamage, ...)
        if self.inst ~= nil and self.inst:HasTag("ignore_armor") then
            return damage * (spdamage == nil and 1 or 0), spdamage
        end

        return _ApplyDamage(self, damage, attacker, weapon, spdamage, ...)
    end
end)

 

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