Thread
:
How to detect weapon switch
View Single Post
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
01-02-2016 , 20:48 Re: How to detect weapon switch
#
5
Another idea is to just check the item definition index, put all non-stock weapons in an empty switch case, and then default will cover all the sniper rifle reskins and any new ones that are added to the game.
However if something like the star shooter is added which is actually a Machina reskin, you'll have to update it. However it will still cover the majority of these new weapon skins for the future going forward.
__________________
Owner of
TF2Data
Donate
|
Steam
|
Speed ASM
My plugins:
Updated VSH 1.55
|
Plugin Threads
|
Github
Chdata
View Public Profile
Send a private message to Chdata
Visit Chdata's homepage!
Find More Posts by Chdata