Quote:
Originally Posted by Potato Uno
Does that work if the item is a wearable like demoknight shields or do I need to find a different item offset? (If so, what do I find?)
|
I believe so, but you'll likely need to change the net class being used for the lookup since the shield isn't a base TF weapon and has a different inheritance tree.
Replace "CTFWeaponBase" with whatever you get from GetEntityNetClass should work.
Edit: As a safety, you should probably also check that the returned offset isn't -1 (not found).