Exploit Fixed: - Fixed a bug that allowed weapons to be equipped in invalid loadout slots
http://imgur.com/vBjC7ZQ
The above image is a explanation on how the exploit is done.
Issues that arise if someone uses this exploit found so far:
-Heavy can use The Buffalo Steak Sandvich to give mini-crits to his Machine Guns.
-Causes issues with other scripting you might have that involves melee weapons.
What this does:
It will detect if you spawn with no melee weapon and give you your classes default melee weapon.
Requires:
TF2Items
This code was written for me by Friagram and he has allowed me to post it publicly. If you see any issues with the code post it below.