m_iPrimaryAmmo tells the ammo type that a gun uses. It comes from the "primary_ammo" field of the weapon's script file (in scripts\weapon_<class name>.txt). m_iAmmo tells how much of each type of ammo a character has on them.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Xas Sent: Sunday, December 12, 2004 6:57 AM To: [EMAIL PROTECTED] Subject: [hlcoders] M_iPrimaryAmmoType Can someone explain me how works the m_iPrimaryAmmoType. How is it initialized exactly ? How the m_iAmmo array of CBaseCombatCharacter class is initialized too ? Because I'm missing something about adding a new weapon (and not replacing one). Xas. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

