On Sat, Sep 18, 2010 at 4:31 AM, Trevor 'Drak' <hlco...@wowway.com> wrote:
> Okay, so I'm getting myself deeper into the SDK. And we have these two files.
> The CHL2MP_Player class which is derived from "CHL2_Player". Now both of 
> these files contains a "PreThink" which I need to work in.
> Now on the client side there's also a "PreThink" located in 
> "c_hl2mp_player.cpp"
>
> I'm guessing If I wanted to mess with stuff that isn't only client-side I 
> could put them in ether "CHL2MP_Player" or "CHL2_Player" correct?
> Or if everything I'm doing can be done client-side, I should use the one 
> located within "c_hl2mp_player"?
>
> And one random question while I  discussing the prethink. What calls that 
> function? Looking through everything, it looks like the usercmds call it? If 
> anybody knows the answer to that.
>

PreThink and PostThink are called in prediction on the client and when
processing user commands on the server. Set a breakpoint there and
you'll see.

You put client-only to C_, server-only to C and shared to both files
(functions and so on).

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

Reply via email to