Thread: Too many checks
View Single Post
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 04-15-2011 , 06:16   Re: Too many checks
Reply With Quote #11

Quote:
Originally Posted by FoxMulder View Post
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
AtomicStryker is offline