Get the item's definition index (the m_iItemDefinitionIndex
netprop), then use TF2Econ_GetItemEquipRegionGroupBits native
(from Econ Data
) to get the computed bitflags for those equip regions.
From there you can convert them back to group names by testing each set bit against each group index.
Here's an example in the schema compatibility shim that returns the names in an ArrayList
(except it'll also include names that occupy the same "shared"
group, as they're indistinguishable in the parsed data).
This sounds like an xy problem
; what are you trying to accomplish with this information?