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

22 lines
566 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class Ext_TraitAutoFire extends Ext_TraitBase;
2020-11-28 20:04:55 +00:00
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-20 02:00:49 +00:00
{
local Ext_T_AutoFireHelper H;
H = Player.Spawn(class'Ext_T_AutoFireHelper',Player);
H.AssociatedPerkClass = Perk.BasePerk;
}
2020-11-28 21:54:57 +00:00
2020-11-28 20:04:55 +00:00
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-20 02:00:49 +00:00
{
local Ext_T_AutoFireHelper H;
foreach Player.ChildActors(class'Ext_T_AutoFireHelper',H)
H.Destroy();
}
defaultproperties
{
DefLevelCosts(0)=50
}