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

Quote:
Originally Posted by ot_207 View Post
Yeah it can be improved but we can't ask for perfection in all codes. That tutorial is good as it is and people should follow it!
But it hooks spawn and it uses task. As i said in there is better. I never need to mess with models but, if someday i do, i will surely modify his code.

Basically:

It hooks spawns. That's an error. Then it uses tasks to protect problems coming from changing the models in spawn. If hooking instead the join team event you will not need tasks because you won't have 32 players changing team at the same time.

I appreciate the fact that he discovered why the SVC errors happened but, hooking spawn is stupid because after blocking the "model's reset" nothing happens on spawn so you don't need to re-set the models on spawn.
__________________

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