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.
I implimented this for my Swarm mod a fair while back. You can d/l the source from http://www.edgefiles.com/index.php/file?id=/edgegaming.com/swarm/current/swarm2240-source.rar Jeff "Codiac" Fearn _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders