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

26 lines
747 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class Ext_TraitSupply extends Ext_TraitBase;
var() Texture2D SupplyIcon;
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
{
if (Data != None) Ext_TraitSupplyData(Data).SpawnSupplier(Player);
2017-10-20 02:00:49 +00:00
}
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
{
if (Data != None) Ext_TraitSupplyData(Data).RemoveSupplier();
2017-10-20 02:00:49 +00:00
}
2020-11-28 21:54:57 +00:00
2020-11-28 20:04:55 +00:00
static function PlayerDied(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
2017-10-20 02:00:49 +00:00
{
if (Data != None) Ext_TraitSupplyData(Data).RemoveSupplier();
2017-10-20 02:00:49 +00:00
}
defaultproperties
{
DefLevelCosts(0)=50
TraitData=class'Ext_TraitSupplyData'
2023-05-14 02:49:12 +00:00
2017-10-20 02:00:49 +00:00
SupplyIcon=Texture2D'UI_World_TEX.Support_Supplier_HUD'
}