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

17 lines
419 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class Ext_TraitGrenadeSUpg extends Ext_TraitBase;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
if( Level==1 )
Perk.GrenadeClass = Perk.SuperGrenade;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Perk.GrenadeClass = Perk.Default.GrenadeClass;
}
defaultproperties
{
DefLevelCosts(0)=50
DefMinLevel=50
}