AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Client_PreThink (https://forums.alliedmods.net/showthread.php?t=163337)

Dr7sTyLe 07-29-2011 07:44

Client_PreThink
 
I dont if its suppose to be in this section..
can somone explain what is client_prethink ?

.Dare Devil. 07-29-2011 07:48

Re: Client_PreThink
 
it is like a botton prethink :)

i mean, see this code then you realize

PHP Code:

 
public client_PreThink(id)
{
 if(!
is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_nemesis(id)) 
  return 
PLUGIN_CONTINUE
 
if(zp_get_user_zombie_class(id) != g_zclass_ghost)
  return 
PLUGIN_CONTINUE
 
 
new nzbut get_user_button(id)
 new 
ozbut get_user_oldbutton(id)
 if((
nzbut IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(ozbut IN_JUMP))
 {
  if (
jumpznum[id] < get_pcvar_num(cvar_jumps))
  {
   
dozjump[id] = true
   jumpznum
[id]++
   return 
PLUGIN_CONTINUE
  
}
 }
 if((
nzbut IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
 {
  
jumpznum[id] = 0
  
return PLUGIN_CONTINUE
 

 return 
PLUGIN_CONTINUE



SnoW 07-29-2011 08:15

Re: Client_PreThink
 
Ignore the post above, it is nonsense.

Dr7sTyLe 07-29-2011 08:40

Re: Client_PreThink
 
Quote:

Originally Posted by SnoW (Post 1520960)
Ignore the post above, it is nonsense.

Why ?

SnoW 07-29-2011 08:48

Re: Client_PreThink
 
Quote:

Originally Posted by Dr7sTyLe (Post 1520976)
Why ?

Because I already gave a reason to why you should ignore the post I believe your question is about why the post is nonsense. It is nonsense because it does not refer to a single thing what prethink might be ( The post has no information value regarding what prethink is ).

.Dare Devil. 07-29-2011 08:51

Re: Client_PreThink
 
Quote:

Originally Posted by SnoW (Post 1520985)
Because I already gave a reason to why you should ignore the post I believe your question is about why the post is nonsense. It is nonsense because it does not refer to a single thing what prethink might be ( The post has no information value regarding what prethink is ).

So what is a client_prethink exactly :)

fireattack 07-29-2011 08:58

Re: Client_PreThink
 
https://forums.alliedmods.net/showpo...65&postcount=2

Another good link:

https://forums.alliedmods.net/search.php


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

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