View Single Post
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 17:40   Re: [TUT] Modules and efficient scripting
Reply With Quote #31

Quote:
Originally Posted by SchlumPF* View Post
never used pev_valid(id) == 2 but i guess it is not really needed.
if you set some ents pdata you should already know whether it has pdata. but it may be usefull if you loop through different kinds of ents (classnames)
I know what it is but also never needed to check if "equals 2".

Quote:
Originally Posted by SchlumPF* View Post
a new question which came to my mind
is there any difference in
client_preThink( plr ) and register_forward( FM_PlayerPreThink, "fwdPlayerPreThink" ) ?
I guess that there isn't any difference.
__________________

Last edited by joaquimandrade; 03-29-2009 at 17:46.
joaquimandrade is offline