View Single Post
nosoop
Veteran Member
Join Date: Aug 2014
Old 05-12-2019 , 22:16   Re: [TF2] Remove all weapons from player
Reply With Quote #3

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.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 05-12-2019 at 22:16.
nosoop is offline