Forum
CS2D Scripts Hooks systemHooks system
8 Antworten 1
Zitat
You can put everything in the same hooked function, don't hook multiple functions to the same hook dude.
Sure, but it makes code harder to read.
Zitat
Well, that's why the priority function does exists.
Still,I didn't see any scripts using it. This fact causes some bugs and "conflicts".
aleksix hat geschrieben
Sure, but it makes code harder to read.
Still,I didn't see any scripts using it. This fact causes some bugs and "conflicts".
Zitat
You can put everything in the same hooked function, don't hook multiple functions to the same hook dude.
Sure, but it makes code harder to read.
Zitat
Well, that's why the priority function does exists.
Still,I didn't see any scripts using it. This fact causes some bugs and "conflicts".
If you just throw everything in the same hook, it looks way better. And don't ever use multiple addhooks in one script, it looks terrible and people can tell you're a noob.
aleksix hat geschrieben
Backward-engineering is not that good. Someone would like to change the code. Even a good,well-documented code can be rather tricky to learn/remember.
Where the fuck are you trying to go with this post.
1