Advertisement
Treedestroyed

Untitled

Jul 23rd, 2019
1,729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function AddDefaultInventory()
  2. {
  3.     local KFPerk MyPerk;
  4.  
  5.     MyPerk = GetPerk();
  6.  
  7.     if( MyPerk != none )
  8.     {
  9.         MyPerk.AddDefaultInventory(self);
  10.     }
  11.    
  12.     if(GetPerk().Class == class'KFPerk_Support')
  13.     {
  14.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Shotgun_DoubleBarrel", class'Class')));
  15.     }
  16.    
  17.     if(GetPerk().Class == class'KFPerk_Berserker')
  18.     {
  19.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Edged_Katana", class'Class')));
  20.     }
  21.    
  22.     if(GetPerk().Class == class'KFPerk_Commando')
  23.     {
  24.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_AssaultRifle_Bullpup", class'Class')));
  25.     }
  26.    
  27.     if(GetPerk().Class == class'KFPerk_Demolitionist')
  28.     {
  29.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_GrenadeLauncher_M79", class'Class')));
  30.     }
  31.    
  32.     if(GetPerk().Class == class'KFPerk_FieldMedic')
  33.     {
  34.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_SMG_Medic", class'Class')));
  35.     }
  36.    
  37.     if(GetPerk().Class == class'KFPerk_Firebug')
  38.     {
  39.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Shotgun_DragonsBreath", class'Class')));
  40.     }
  41.    
  42.     if(GetPerk().Class == class'KFPerk_Gunslinger')
  43.     {
  44.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Pistol_DualColt1911", class'Class')));
  45.     }
  46.    
  47.     if(GetPerk().Class == class'KFPerk_Sharpshooter')
  48.     {
  49.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Bow_Crossbow", class'Class')));
  50.     }
  51.    
  52.     if(GetPerk().Class == class'KFPerk_SWAT')
  53.     {
  54.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_SMG_MP5RAS", class'Class')));
  55.     }
  56.    
  57.     if(GetPerk().Class == class'KFPerk_Survivalist')
  58.     {
  59.         DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Shotgun_Nailgun", class'Class')));
  60.     }
  61.  
  62. /** DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Pistol_9mm", class'Class')));
  63.     Loading the secondary weapon in the perk again */
  64.  
  65.     DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Healer_Syringe", class'Class')));
  66.     DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Welder", class'Class')));
  67.     DefaultInventory.AddItem(class<Inventory>(DynamicLoadObject("KFGameContent.KFInventory_Money", class'Class')));
  68.  
  69.     Super.AddDefaultInventory();
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement