23 lines
656 B
Ucode
23 lines
656 B
Ucode
|
Class Ext_TraitAutoFire extends Ext_TraitBase;
|
||
|
|
||
|
static function ApplyEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
||
|
{
|
||
|
local Ext_T_AutoFireHelper H;
|
||
|
|
||
|
H = Player.Spawn(class'Ext_T_AutoFireHelper',Player);
|
||
|
H.AssociatedPerkClass = Perk.BasePerk;
|
||
|
}
|
||
|
static function CancelEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
||
|
{
|
||
|
local Ext_T_AutoFireHelper H;
|
||
|
|
||
|
foreach Player.ChildActors(class'Ext_T_AutoFireHelper',H)
|
||
|
H.Destroy();
|
||
|
}
|
||
|
|
||
|
defaultproperties
|
||
|
{
|
||
|
TraitName="Auto-Fire weapons"
|
||
|
DefLevelCosts(0)=50
|
||
|
Description="Make all perked weapons fully automatic."
|
||
|
}
|