Why does the client need to know how much ammo is in each magazine?
Surely it'd work just how it is now - with the client just knowing how much is in the 'current' magazine? Then you could handle all the multiple clip stuff purely on the server. garry On 7/16/07, Jed <[EMAIL PROTECTED]> wrote:
Yeah but we're doing it slightly different in that you can use half the ammo in a mag, reload which switches to the next and eventually if you keep reloading you come back to the first which is still half empty. Basically for each ammo type I need to define 10 magazine slots and be able to set/get how much ammo is in each. - Jed On 16/07/07, Tony omega Sergi <[EMAIL PROTECTED]> wrote: > -- > [ Picked text/plain from multipart/alternative ] > i did a magazine type thing, and didn't need to change any of that. > i just divide total ammo count by the size of the magazine to get totals. > > > On 7/15/07, Jed <[EMAIL PROTECTED]> wrote: > > > > No I agree - It sounded bad when I thought of it, hence wanting to > > feel out my lunacy with you folks. > > > > I cant do MyArray[320] as it's related to the ammo types carried by > > the player. Currently their just indexed as Ammo[x] where x is the > > ammo type defined in the game rules. > > > > I want to implement a magazine type system so for the ammo the player > > is carrying Ammo[x][y] would have x pointing to the ammo type and x to > > one of the magazines of that type being carried. > > > > - Jed > > > > On 14/07/07, Garry Newman <[EMAIL PROTECTED]> wrote: > > > Sounds like an awful idea, but can't you just do MyArray[320]. > > > > > > Also, one thing to be aware of with CNetworkArray is that if you > > > change one element it sends the whole thing - not just the element > > > that changed. > > > > > > On 7/14/07, Jed <[EMAIL PROTECTED]> wrote: > > > > OK heres a tricky one. > > > > > > > > How can I sent a 2 dimensional array as a network variable? I.e. > > > > instead of having myArray[x] I want myArray[x][y]. > > > > > > > > I've already got CNetworkArray( int, myArrray, 32 ) but how could I do > > > > a 32 x 10 array as a network var? > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > -- > -omega > -- > > _______________________________________________ > 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
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders