View Single Post
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-17-2019 , 21:46   Re: [TF2] How to Get Saxxy Classname?
Reply With Quote #4

Thanks nosoop! The TF2Econ_GetItemClassName works great.

Use case: I use it to troubleshoot weapon specific problems within the Uber Upgrades plugin because it uses weapon classes to determine upgrade menus that are displayed to the client.

Example Problem: In my most recent example an Engineer claimed the buildings upgrade menu wouldn't appear when he used the Prinny Machete (a saxxy class weapon).

Typical troubleshooting step: I use the !getweapon command from Joined Senses Attribute Setter plugin to determine a players weapon class. I noticed the weapon indexes being returned were sometimes wrong, and also noticed that the weaponclass returned was always wrong when the player had a saxxy class weapon equipped.

While testing fixes to the plugin I realized that the SourceMod function "GetClientWeapon" and SMLIB Function "Client_GetActiveWeaponName" do not return the correct classname with saxxy class weapons. However, the TF2Econ_GetItemClassName function you provided works great. Thanks!
PC Gamer is offline