KF2-Server-Extension/ServerExt/Classes/Ext_T_ArmorRegHelp.uc
2020-11-28 23:12:58 +03:00

16 lines
289 B
Ucode

Class Ext_T_ArmorRegHelp extends Ext_T_HealthRegHelp
transient;
function Timer()
{
if (PawnOwner==None || PawnOwner.Health<=0)
Destroy();
else if (PawnOwner.Armor<PawnOwner.MaxArmor)
{
PawnOwner.Armor = Min(PawnOwner.Armor+RegCount,PawnOwner.MaxArmor);
}
}
defaultproperties
{
}