Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AddDefaultInventory()
- {
- local KFPerk MyPerk;
- MyPerk = GetPerk();
- if( MyPerk != none )
- {
- MyPerk.AddDefaultInventory(self);
- }
- if(GetPerk().Class == class'KFPerk_Support')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Shotgun_DoubleBarrel", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_Berserker')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Edged_Katana", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_Commando')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_AssaultRifle_Bullpup", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_Demolitionist')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_GrenadeLauncher_M79", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_FieldMedic')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_SMG_Medic", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_Firebug')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Shotgun_DragonsBreath", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_Gunslinger')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Pistol_DualColt1911", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_Sharpshooter')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Bow_Crossbow", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_SWAT')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_SMG_MP5RAS", class'Class')));
- }
- if(GetPerk().Class == class'KFPerk_Survivalist')
- {
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Shotgun_Nailgun", class'Class')));
- }
- /** DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Pistol_9mm", class'Class')));
- Loading the secondary weapon in the perk again */
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Healer_Syringe", class'Class')));
- DefaultInventory.AddItem(class<Weapon>(DynamicLoadObject("KFGameContent.KFWeap_Welder", class'Class')));
- DefaultInventory.AddItem(class<Inventory>(DynamicLoadObject("KFGameContent.KFInventory_Money", class'Class')));
- Super.AddDefaultInventory();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement