Not sure if this would work, but what about a type-cast? Example: int iValue = (int)usValue;
-Mazor -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Daniel Koppes Sent: Monday, May 13, 2002 2:47 AM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] modifying usercmd_s Um. Did you ever think to just TRY it? Would be a better answer than you'd get from here :) ----- Original Message ----- From: "Jeff Fearn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 13, 2002 6:32 PM Subject: [hlcoders] modifying usercmd_s > I was wondering if it would be possible to increase the size of > buttons in usercmd_t, from an unsigned short to an int? > > I believe I can't do it as it is part of the engine :{ > > If this is the case is there any chance of getting the SDK updated at > some stage? > > I want to add some melee attacks, and maybe make grenades off hand, > and using pev->button seems the obvious way to do it. Now pev->button > is an int, > so it seems only usercmd_t sould need to be updated. > > I know I could do this with messages, but it seems to me that this > would be > a cheaper (bandwith), and more logical, method. After all, it would > keep all > the different buttons in the one spot :} > > Jeff > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > _______________________________________________ > 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 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders