On Sat, 2003-09-20 at 15:24, Tuomo Virtanen wrote:
> Is it even possible to use m_rgAmmo[m_iPrimaryAmmoType] outside of
> weapon code like in multiplay_gamerules.cpp the reason for this is
> because i need to use the values that it holds for something else also

That's perfectly fine if you have a pointer to the player. m_rgAmmo is
of course bound to a specific player (otherwise all players would have
the same ammo count). So make sure you get a pointer to the correct
player (quite likely you have one already), then you can use it.

Sebastian "ttt" Steinlechner


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

Reply via email to