Player name is stored in entvars_t::netname.
Ammo is stored in CBasePlayer::m_rgAmmo, Ammo type info is stored in CBasePlayerItem::AmmoInfoArray. Weapons are stored in m_rgpPlayerItems; each index in that array is a HUD slot, the weapons are a linked list.
Weapon type info is stored in CBasePlayerItem::ItemInfoArray.
The entvars_t::weapons bitfield stores which weapons the player has, as well as whether he/she has the suit (WEAPON_SUIT).
Longjump is stored in m_fLongJump.
Items like item_antidote, item_security, etc, are stored in the m_rgItems array; the value is the number of that item the player has. The constants defined in weapons.h will let you retrieve the correct value for each.

Matas Lesinskas schreef op 10/07/2015 om 12:56:
hi I have a question about players inventory in goldsrc. How can I get every player inventory, weapons, ammo, and player name(I think I know how to get player name), I will write all data to text file and I will use it later.


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

Reply via email to