Raised This Month: $ Target: $400
 0% 

call a function when certain cvar changes its value?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-01-2020 , 13:36   Re: call a function when certain cvar changes its value?
Reply With Quote #3

client_PreThink is officialy THE WORST way you can do that. That function is called 100 times each second. The least you can do is use a 1 second task or longer.

For versions prior to 1.9, you need this module - https://forums.alliedmods.net/showthread.php?t=154642
The easier/better solution is of course updating to 1.9 IMO.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode