Jump to content

Recommended Posts

Posted (edited)

I'm sure that many are aware that the number of small item slots can be adjusted on an armor-by-armor basis by changing the iSmallItems=N property in the DGC.ini.

 

Setting this to 2 can cause issues if combined with the Deep Pockets Perk from support, as the current Loadout UI does not support more than 5 total items. (Interestingly, the Heavy is actually hard-coded to get 2 LargeItem slots, but no pistol slot, so has 2 Large + 1 Armor + Small Items).

 

Where this number is applies is XGFacility_Lockers.GetSmallInventorySlots:

 

function int GetSmallInventorySlots(XGStrategySoldier kSoldier, int iArmor)
{
local TArmor kArmor;
local TInventory kInv;
local int iSmallSlots;

kInv = kSoldier.GetInventory();
kArmor = TACTICAL().GetTArmor(kInv.iArmor);
iSmallSlots = kArmor.iSmallItems;
iSmallSlots += kSoldier.m_kChar.aUpgrades[53];
// End:0x19B
if(TACTICAL().GetPrimaryWeapon(kInv) != 0)
{
// End:0x19B
if((kSoldier.m_kChar.eClass != 2) && TACTICAL().WeaponHasProperty(TACTICAL().GetPrimaryWeapon(kInv), 15))
{
iSmallSlots -= 1;
}
}
return iSmallSlots;
//return ReturnValue;


}

1) iSmallItems is set to the value defined by the character's armor

2) iSmallItems is incremented by the value set by Perk 53 (ePerk_DeepPockets) ... this is presumable 1 by default

3) The next set is an interesting bit of code that is currently unused.

If the character's current weapon has eWP_Encumber = 15, then iSmallSlots is REDUCED by 1 -- UNLESS the class is Heavy (2)

Currently there are no weapons that have eWP_Encumber, but it might be an interesting mechanic to play with

Finally, I see a way to enable Deep Pockets and still have armor with 2 small item slots (or more). For now, given the UI limitations, changing the return value from:

 

return iSmallSlots;

 

to:

 

return MAX(iSmallSlots, 2);

 

will prevent UI glitches. This would allow a Support with Deep Pockets to equip an armor with 1 small item slot, and still have 2 small item slots, yet not have glitches if an armor with 2 small item slots is equipped.

Edited by Amineri
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...