Exactly, make a pointer chain/list, let it sort by amount so that the 'best/fullest' mag is always the first one in the list. On reload you need to move the old mag back into this list if it wasn't empty. This way you can reload one mag after another and each mag holds its own amount of rounds still left in it.
-- Norbert Bogenrieder aka Beppo Lead Programmer and Project Lead [EMAIL PROTECTED] Sentry Studios - Infiltration [EMAIL PROTECTED] http://www.sentrystudios.net http://infiltration.sentrystudios.net
----- Original Message ----- From: "Draco" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, January 19, 2005 1:16 PM Subject: Re: [hlcoders] Making weapons use magazines?
Then you will have to create a pointer to a struct like ClipMemory or something. whenever you reload old clip find its ammo, do not decrease clip amount. If you want to be able to select old clips then you could make a linked list that is accessed by some sort of VGUI inventory screen, and you could load each one.
Personally, old clips sounds like a crappy idea, but that's just me, you go right ahead and try it.
********************** Draco Coder for Perfect Dark http://perfectdark.game-mod.net
_______________________________________________ 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

