Re: [hlcoders] Anyone bypassed the max weapons limit before?

2004-11-03 Thread Tan Theodore
Got any reference code which I can follow?
From: Jorge Rodriguez [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] Anyone bypassed the max weapons limit before?
Date: Wed, 3 Nov 2004 00:30:30 -0500
On Wed, Nov 03, 2004 at 07:14:42AM +, Tan Theodore wrote:
 The HEV suit is defined as the 31st weapon. As we know, the max weapon
 allowed is 31. Unfortunately, I have 32 including the suit.

 Is there a way to increase it? No point following the tutorial at the HL
 programming planet on increasing the max weapons to 45. It doesn't work.
 Weapons defined from 32 onwards doesn't animate or work.
The way to bypass the 32 weapon limit in HL is to combine all the
weapons into one entity. This way, the HL engine thinks that all the
weapons are the same weapon, but you specify that this one weapon look
and act differently depending on what type of weapon it is. It takes a
lot of special coding, not easy.
--
Jorge Vino Rodriguez
___
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_
Keep track of Singapore  Malaysia stock prices.
http://www.msn.com.sg/money/
___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


Re: [hlcoders] Anyone bypassed the max weapons limit before?

2004-11-03 Thread Jorge Rodriguez
On Wed, Nov 03, 2004 at 12:14:03PM +, Tan Theodore wrote:
 Got any reference code which I can follow?

Nope, sorry. You'll have to write it yourself. I can only propose the
general idea of how to do it, and the proof that it works is in TS,
because TS uses this system.

--
Jorge Vino Rodriguez

___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Anyone bypassed the max weapons limit before?

2004-11-03 Thread Jeff Fearn
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



RE: [hlcoders] Anyone bypassed the max weapons limit before?

2004-11-03 Thread Tony \omega\ Sergi
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



[hlcoders] Anyone bypassed the max weapons limit before?

2004-11-02 Thread Tan Theodore
The HEV suit is defined as the 31st weapon. As we know, the max weapon
allowed is 31. Unfortunately, I have 32 including the suit.
Is there a way to increase it? No point following the tutorial at the HL
programming planet on increasing the max weapons to 45. It doesn't work.
Weapons defined from 32 onwards doesn't animate or work.
_
Get MSN Hotmail alerts on your mobile.
http://mobile.msn.com/ac.aspx?cid=uuhp_hotmail
___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders