You'll need to You can also use
CTFPlayer::GetEntityForLoadoutSlot() to access loadout slots (which are different from weapon slots).
I've been meaning to push a PR to Powerlord's upstream source for support of the latest version of the game, but
my fork of his TF2 Wearable Tools API supports accessing wearables in weapon slots and removing them.
__________________