Added replicate and notify parameters to ResetConVar() - these were already available for SetConVarX()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401307
This commit is contained in:
Scott Ehlert
2007-08-10 09:16:58 +00:00
parent a53d103507
commit ac03126022
2 changed files with 44 additions and 27 deletions
+14 -9
View File
@@ -468,6 +468,20 @@ native GetConVarString(Handle:convar, String:value[], maxlength);
*/
native SetConVarString(Handle:convar, const String:value[], bool:replicate=false, bool:notify=false);
/**
* Resets the console variable to its default value.
*
* @param convar Handle to the convar.
* @param replicate If set to true, the new convar value will be set on all clients.
* This will only work if the convar has the FCVAR_REPLICATED flag
* and actually exists on clients.
* @param notify If set to true, clients will be notified that the convar has changed.
* This will only work if the convar has the FCVAR_NOTIFY flag.
* @noreturn
* @error Invalid or corrupt Handle.
*/
native ResetConVar(Handle:convar, bool:replicate=false, bool:notify=false);
/**
* Returns the bitstring of flags on a console variable.
*
@@ -521,15 +535,6 @@ native SetConVarBounds(Handle:convar, ConVarBounds:type, bool:set, Float:value=0
*/
native GetConVarName(Handle:convar, const String:name[], maxlength);
/**
* Resets the console variable to its default value.
*
* @param convar Handle to the convar.
* @noreturn
* @error Invalid or corrupt Handle.
*/
native ResetConVar(Handle:convar);
funcenum ConVarQueryFinished
{
/**