View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-10-2019 , 13:33   Re: To hook or not to hook, that is the question.
Reply With Quote #6

Quote:
Originally Posted by PatriotGames View Post
So, when and why would we use:
PHP Code:
g_cvMyCvar.AddChangeHook(MyCallback); 
PG
When you need instantly execute some method, e.g. change player color when cvarColor is changed.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 02-10-2019 at 13:35.
Dragokas is offline