Page 1 of 1

[ZSCRIPT]Damage on Custom Armor Set Help

Posted: Thu Jan 02, 2025 1:26 pm
by Kan3x
Hello guys,

I have a custom armor set replacing the standard armor.
Every piece has its "save percent", "save amount" etc. and it (seems to) works just fine absorbing the damage and getting damaged, but I noticed one annoying thing:
When the damage is too low, the only armor piece that will absorbed and consequently damaged is the last piece that the player worn.

I tried to avoid it by having a random chance (based on the number of worn armor pieces) to skip the "absorption", hoping that it will let another armor piece to absorb the damage, but it doesn't clearly work like that.

So I wonder, is there a way to randomize the armor piece that will absorb the damage when the damage itself is too low to trigger the "absorption" on the other pieces too?

This is my AbsorbDamage() function for the armor set:
Spoiler: