I Hate Convars
every round start i need to reset something, using the offical API of sourcemod can only get the default value but not adujusted value of convars.
although there is a lib made by another script author to solved the problem, but why they had to do by not offical ??? I HATE Convars, |
Re: I Hate Convars [Wrong Forum section, move please]
Did you try hooking the convar?
https://sm.alliedmods.net/new-api/co.../AddChangeHook You can check the old and new values of a convar when they change. |
Re: I Hate Convars [Wrong Forum section, move please]
Quote:
|
Re: I Hate Convars
This rant doesn't really make sense, the SM API has methods to get both the default and the current value.
|
Re: I Hate Convars [Wrong Forum section, move please]
little_froy, did you mean retrieving value set by config file?
Quote:
Did you try Anomaly Fixer (or Buffer Overflow Fixer)? It doesn't specially have a native to retrieve such value (I can add if you need), but it force all ConVars to be exactly matched with the one in configs at round start. -- BTW, I'm also thinking why that still not fixed officially. I'm also thinking under alternate extension-based version - where ConVar.Default will be just replaced by values from Config file during ConVar creation time. Not nice solution, but effective. |
All times are GMT -4. The time now is 23:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.