Thread: Maximum_weapons
View Single Post
Re: Maximum_weapons
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Maximum_weapons - 21-06-2004

There will be a problem, though... player weapons are stored in a bitmask. Each bit corresponds to a weapon. The reason why it is 32 and not more is that long integers are only 32-bit wide. And when you send these weapons over the network, the engine uses WRITE_LONG() which sends a long (doh!) - which is only 32 bytes.

You would have to change this value BOTH in the game DLL and in the client DLL, but ALSO change the way the weapons are stored (i.e, never use pev->weapons anymore) AND the way the weapons data is sent over the network.

It'll be quite a hack IMO 9_9



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote