Raised This Month: $ Target: $400
 0% 

client_prethink & posthink - clear explanation on proble


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-23-2006 , 08:02   client_prethink & posthink - clear explanation on proble
Reply With Quote #1

I dont particularly understand what prethink means... I know its a function but I dont understand what exactly its forward means... the documentation doesn't make sense to me... I am still tryin to understand it.
  • plugin_init - Forward for plugin initialization // obvious... forward for when the plugin initializes

    client_impulse - Forward for impulses. // again.. obvious... impulses are flashlight spray stuff like that

    server_changelevel - Forward for a server's changelevel. // obvious... when you change maps

    register_touch - Registers a touch action to a function. // I think that means when something touches something else?

    client_PostThink - Forward for PostThink() on a player.// what the hell is postthink???

    client_PreThink - Forward for PreThink() on a player. // and prethink???

So you can see why I am confused how/when to use client_prethink because the other stuff is self explanatory.. but this is not really to me.. could someone explain what exactly is happening when postthink and prethink occur? is it before or after an action or something? its kind of confusing without understanding that. A clear and simple response would be something in the form of...
"client_prethink basically is called when .......... happens" or
"client_prethink is triggered every time ....... occurs"

My only guess is that client_prethink means it reads the function and prethink triggers on its own based upon what is in the function but... im not completely sure... please only people who definetly know what they are talking about respond... like v3x or black rose... or brad... somebody with experience please.
SubStream is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode