Quote:
Originally Posted by FoxMulder
I thought of this but then The Sandman came into mind
I think checking to see if the active weapon is in the 0 slot would suffice.
|
Sandman stopped using ammo quite a while ago, it now has a "charge" only similar to the Sandvich.
Isn't slot 0 = inventory slot 1 the main gun slot. I've never coded for tf2.
Just dump the tf2 netprops and have a look .. or here i found a dump online
http://www.joe.to/~bl4nk/other/netprops-tf2.txt
Values on Melee Weapons i'd check:
m_iItemDefinitionIndex
m_iEntityLevel
m_iEntityQuality
m_iClip1
m_iPrimaryAmmoType