Trait "Medic Pistol" applying on purchasing now
This commit is contained in:
parent
ad5fe1f54c
commit
58bb384a49
@ -6,6 +6,22 @@ static function AddDefaultInventory( KFPawn Player, Ext_PerkBase Perk, byte Leve
|
||||
Player.DefaultInventory.AddItem(class'ExtWeap_Pistol_MedicS');
|
||||
}
|
||||
|
||||
static function ApplyEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
||||
{
|
||||
local Inventory Inv;
|
||||
|
||||
Inv = Player.FindInventoryType(class'ExtWeap_Pistol_9mm');
|
||||
if( Inv!=None )
|
||||
Inv.Destroy();
|
||||
|
||||
if( Player.FindInventoryType(class'ExtWeap_Pistol_MedicS')==None )
|
||||
{
|
||||
Inv = Player.CreateInventory(class'ExtWeap_Pistol_MedicS',Player.Weapon!=None);
|
||||
if ( KFWeapon(Inv)!=None )
|
||||
KFWeapon(Inv).bGivenAtStart = true;
|
||||
}
|
||||
}
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
TraitName="Medic Pistol"
|
||||
|
Loading…
Reference in New Issue
Block a user