NanoAi / GLua

Garrysmod Lua Projects
10 stars 27 forks source link

Never never never use hooks in a Gamemode base #3

Closed ExtReMLapin closed 10 years ago

ExtReMLapin commented 10 years ago

Never never never do it.

ExtReMLapin commented 10 years ago

Are you kidding me

Fix your code , stop fapping on animes

NanoAi commented 10 years ago

Hello, please note that there is no need to spam this section (it all comes as one email any way.)

Thanks for the hint. The reason I closed this issue is because I stopped working on DarkScape a long time ago (the upload date on Github is wrong because I had an issue and had to reupload everything.)

However since you're showing interest I will probably remake the gamemode from scratch after I am finished with the other things I am working on.

Also mind being a bit more specific?

ExtReMLapin commented 10 years ago

https://github.com/LuaTenshi/GLua/search?l=lua&q=hook.Add&ref=cmdform

Don't use hooks, run the functions using the functions

example:

function GM:HUDPain() self:MainHUD() RandomRadar() end

Sorry for the spam :<

By the way, it's just an optimisation tip, it's not really required because it takes time to include all functions one by one. And i was just browsing random repos.

Have a nice day !