Re: [hlcoders] hi I have a question about players inventory in goldsrc

2015-07-13 Thread Matas Lesinskas
game to read, when other level loaded ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

[hlcoders] hi I have a question about players inventory in goldsrc

2015-07-13 Thread Matas Lesinskas
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

Re: [hlcoders] hi I have a question about players inventory in goldsrc

2015-07-13 Thread Sam V
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