Raised This Month: $51 Target: $400
 12% 

Module: Cvar Utilities (v1.6)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-04-2012 , 19:47   Re: Module: Cvar Utilities (v1.4)
Reply With Quote #11

Updated, changelog :

v1.4 - [ 4 sept 2012 ]
New feature
Native/Stock
  • Added CvarGetDefault() native to retrieve the default value of a cvar. (value got the first time when module hooks a cvar change or from CvarRegister native).
  • Added CvarReset() native to set back the default value of a cvar. (same comment as above).
  • Added CvarRegisterBoolean() stock to register more easily a cvar where the value must be either 0 or 1.
  • Added CvarGetFlagsString() stock to get a concatenated string from a sum of cvar flags.
  • Added new status CvarStatus_Cached to know whether a cvar is cached.
  • Added new output for the default value of cvar for CvarInfo() native, CvarHookChanged() forward and callback of CvarHookChange()/CvarHookChangeAll().
Command
  • Added an alias named cu of cvarutil command, because more fast to type :p.
  • Added the ability for "info" to pass an index to select the cvar (index at left when you do a "list"), because way more fast to type :p.
  • Added a new line in the "info" output displaying the default value.
  • Added a new column "CACHED" to show in what plugin a cvar is cached using CvarCache native.
  • Added also a list of plugins where the cvar is cached in the "info" output.
Improvement
  • Added postponing of the sending of cvars change which have been hooked by the module before the Amxx plugins were fully loaded.
  • Changed the behavior of the cvars where default value was always set at map change. Meaning if you change value and restart, the value was not kept. (it's now like AMXX does)
  • When hooking a cvar, the first call (if ignoreFirstCall set to false) will now use the default value if known as the old one instead of an empty string.
  • Fast clean up in cu_amx_cvar_fix plugin.
Bug
  • Fixed [somewhow] the issue where the Amxx buffer were overwritten in this situation of a native using such buffer and called inside a cvar callback.
  • Fixed a potential re-entrancy issue when you would call set_pcvar_* natives inside a cvar callback to change it's value.
  • Fixed few minor things here and there. Don't remember what.
Command
  • Fixed the output of list where cvars not registered from plugins could be listed.
  • Fixed the output of list where a min/max cvar bound from a same plugin was displaying there was more than 1 reference.
  • Fixed the output of list where a correct [partial] plugin name provided would return always no results.
  • Fixed the output of list where plugin id would be shifted (because of CSX module loading "csstats.amxx" internally) resulting wrong name.
Native
  • Fixed PluginInfo() native where plugin id retrieved needs to be incremented by 1 if CSX module is loaded .


Not tested under linux, was too lazy.
__________________

Last edited by Arkshine; 09-04-2012 at 19:49.
Arkshine is offline
 



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 22:54.


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