What I did for FLF 2.0, was since a playe4 can only ever carry 7 weapons (knife, pistol, primary, secondary and 3 different types of grenades (not all classes can have all 3 though) I only transmit the data for 7 weapons at a time, ever. I don't use pev->weapons as I don't need to use the weaponbits at all the way that I transmit. Basically, I modified GetWeaponData in client.cpp so that it loops from 0-7 (the max number of weapons the player can ever pick up) and then on the client in HUD_WeaponsPostThink I figure out which weapon is which, and check which hud slot to toss it into. Also, my weapon code doesn't need any switch statements to grab data; the client utilizes GetItemInfo properly, just like the server. Saves lots of time both in adding weapons, and in code size,
-----Original Message----- From: Jeff Fearn [mailto:[EMAIL PROTECTED] Sent: November 3, 2004 6:30 PM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Anyone bypassed the max weapons limit before? Another way is to use the players class as a reference into an array of weapons. This way you can have 31 weapons for each class. If you don't have player classes then you can use the player class variable as a weapon class and achieve a similar effect. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 27/10/2004 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

