36 lines
958 B
Ucode
36 lines
958 B
Ucode
Class Ext_TraitUnCloak extends Ext_TraitBase;
|
|
|
|
var array<float> RadiusValues;
|
|
|
|
static function ApplyEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
|
{
|
|
local Ext_T_UnCloakHelper H;
|
|
|
|
H = Player.Spawn(class'Ext_T_UnCloakHelper',Player);
|
|
if( H!=None )
|
|
H.HandleRadius = Default.RadiusValues[Level-1];
|
|
}
|
|
static function CancelEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
|
{
|
|
local Ext_T_UnCloakHelper H;
|
|
|
|
foreach Player.ChildActors(class'Ext_T_UnCloakHelper',H)
|
|
H.Destroy();
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
TraitName="Cloak Detection"
|
|
NumLevels=5
|
|
DefLevelCosts(0)=5
|
|
DefLevelCosts(1)=7
|
|
DefLevelCosts(2)=10
|
|
DefLevelCosts(3)=15
|
|
DefLevelCosts(4)=25
|
|
Description="Detect cloaked stalkers with radius for each level:|Lv1-5: 3m, 5m, 7m, 10m, 15m"
|
|
RadiusValues.Add(300)
|
|
RadiusValues.Add(500)
|
|
RadiusValues.Add(700)
|
|
RadiusValues.Add(1000)
|
|
RadiusValues.Add(1500)
|
|
} |