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

2004-11-03 Thread Tony \"omega\" Sergi
DMC source.
CQuakeGun

-Original Message-
From: Jorge Rodriguez [mailto:[EMAIL PROTECTED]
Sent: November 3, 2004 2:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] Anyone bypassed the max weapons limit before?

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



---
Incoming 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


---
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



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



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 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 Matt Boone
Another way is to overload one of the iuser variables to act as a second
pev->weapons. This involves some work to determine when the user gains
and loses weapons, as well as properly transmitting the iuser variable
with enough bits to handle the number of new weapons.

Eg..

Void CBasePlayer::AddWeaponByWeaponID( int weaponid )
{
if( weaponid <= 31 )
{
pev->weapons |= ( 1 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




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



[hlcoders] HL2 Modding Resource @ HLFallout

2004-11-03 Thread Mr Bond
Hi guys,

I'm the webmaster of www.hlfallout.net (a HL2 fansite). Bahamut e-mailed
me about possibly starting up a wiki-type site for Half-Life 2/Source
development and to post my thoughts here.

We're actually already in the process of getting a site like this going
(as a sub-site of HL Fallout). The planned site will be more than a
development wiki -- it'll encompass things like forums, development news
etc. The emphasis will be on bringing mod developers and teams together
(but still being an essential resource for individual mappers, coders
etc). While it won't be set up as a standard wiki, there will be a
system in place to allow the community to contribute to the knowledge
base (whether through tutorials, simple how-to's or otherwise). We're
definitely looking for some experienced people to help form the team
(knowledge base contributions and experienced moderation is going to be
essential).

If you'd be interested in contributing to the project in any way, I'd be
glad to hear from you.

Mr Bond
Site Director - www.HLFallout.net



___
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 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 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