Well...... it's kinda stupid, but if you _wanted_ to have different names
for the <user variables>, you could just do soem #defines.


>From: "Scott Velasquez" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: [hlcoders] Extending weapon_data_t
>Date: Sun, 17 Mar 2002 18:34:38 -0600
>
>Yes, changing code in weaponinfo.h would require an engine recompile for
>which you have no source.
>
>-scott
>
>----- Original Message -----
>From: "Chris Glein" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, March 17, 2002 12:28 PM
>Subject: [hlcoders] Extending weapon_data_t
>
>
> > I'm trying to add some information that I want to encode and send over
>to
> > the client by storing it in the weapon_data_t structure.  You know, that
> > struct that holds stuff like m_iId, m_iClip, m_flTimeWeaponIdle, etc.
>and
>is
> > sent over with the local_state struct.
> >
> > Well, if I try to do this, and add the entry to the delta.lst, I get
> > something like this when I run:
> > Couldn't find offset for <whatever variable I was trying to add>!!!
> >
> > I did a bit of research, and rumor has it that I *can't* extend this
>struct
> > at all.  They're hardcoded into the engine somewhere.  Thus why it
>couldn't
> > find the offset in the structure - it uses a different one than what's
>in
> > common/weaponinfo.h (or, rather, that one just shouldn't be changed).
>Is
> > this the case?  Or am I missing a step somewhere?
> >
> > -PNB
> >
> > _______________________________________________
> > 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
>


_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

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

Reply via email to