i wrote a small conversion function that converts any health over 100 into armor, and any armor over 100 into health in integers of 5 (until they both reach 100).
it is quite simple, and balancing for a rune imo.
Code:
void() k_ConvertHealthArmor =
{
local float SwapAmount
if (self.health > 100 && self.armorvalue < 100)
{
SwapAmount = self.health - 100;
if (SwapAmount > 5) SwapAmount = 5;
self.armorvalue = self.armorvalue + SwapAmount;
self.health= self.health - SwapAmount;
}
if (self.health < 100 && self.armorvalue > 100)
{
SwapAmount = self.armorvalue - 100;
if (SwapAmount > 5) SwapAmount = 5;
self.health = self.health + SwapAmount;
self.armorvalue = self.armorvalue - SwapAmount;
}
};
i don't know. just something fun
![Smile :)](./images/smilies/icon_smile.gif)
***EDITED***
2nd version
extra special super thanks to TwentySeven