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

16 lines
287 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
{
}