KF2-Server-Extension/ServerExt/Classes/Ext_T_ArmorRegHelp.uc

16 lines
291 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
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
{
}