KF2-Server-Extension/ServerExt/Classes/Ext_T_ArmorRegHelp.uc
2017-10-19 21:00:49 -05:00

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