--
[ Picked text/plain from multipart/alternative ]
Yay, I got it working! All I needed to add was this line to the class:
virtual int ObjectCaps( void ) { return BaseClass::ObjectCaps() |
FCAP_IMPULSE_USE; }
I figured that out from digging through the player class and finding the
function IsUseableEntity
----- Original Message ----
From: Jamie Femia <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, January 5, 2008 6:53:35 PM
Subject: Re: [hlcoders] NPC and Use function, Client Timed out
--
[ Picked text/plain from multipart/alternative ]
I presume you're using DEFINE_USEFUNC?... I have run into similar
problems..
a usefunc doesn't seem to get called on some of the lower level classes
I
try to base an NPC on, but if I inherit from classes further down the
line
(like CNPC_PlayerCompanion or whatever it's called) then the usefunc is
called. I'd quite like an answer to this myself...
On Jan 5, 2008 10:36 PM, Garrett <[EMAIL PROTECTED]> wrote:
> --
> [ Picked text/plain from multipart/alternative ]
> Nope, always using 215.
>
> ----- Original Message ----
> From: Tom Leighton <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Saturday, January 5, 2008 4:21:28 PM
> Subject: Re: [hlcoders] NPC and Use function, Client Timed out
>
>
> Are you running your mod as any AppID apart from 215?
>
> Garrett wrote
> > --
> > [ Picked text/plain from multipart/alternative ]
> > Hi,
> > I have two separate issues, I just thought it would be easier to
> cover them both in one email.
> > The first is I'm trying to add a Use function to an NPC (more
> specifically, an Actor), and it never seems to get called. I've put
in a
> DevMsg, which never gets printed out when I +use him, and I put in a
> breakpoint, which never gets reached when I +use him. I have no
idea why
> this isn't working.
> > Also, my second problem is whenever I'm running my mod in the
> debugger, I always get the message "Disconnect: Client timed out."
after
> about
> 15-30 seconds, making it nearly impossible to test anything at all.
> Any ideas why this keeps happening to me? I don't have this problem
> with release builds, though.
> >
> > Any help would be appreciated,
> > Garrett
> >
> >
> >
> >
> >
>
>
____________________________________________________________________________________
> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
>
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> > --
> >
> > _______________________________________________
> > 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
>
>
>
>
>
>
>
>
>
____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> --
>
> _______________________________________________
> 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
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders