AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   FCVAR_* Question (https://forums.alliedmods.net/showthread.php?t=78069)

XARIUS 09-26-2008 21:24

FCVAR_* Question
 
Is there an FCVAR_ flag I can add to my version convar so that when my config file is auto-generated, it doesn't put the version convar in the config file?

Antithasys 09-27-2008 02:39

Re: FCVAR_* Question
 
EDIT: See Below

FeuerSturm 09-27-2008 04:30

Re: FCVAR_* Question
 
use "FCVAR_DONTRECORD" and it won't show up in the
config files. :mrgreen:

XARIUS 09-27-2008 10:10

Re: FCVAR_* Question
 
Quote:

Originally Posted by FeuerSturm (Post 691453)
use "FCVAR_DONTRECORD" and it won't show up in the
config files. :mrgreen:

Awesome, thanks!

bl4nk 09-27-2008 13:18

Re: FCVAR_* Question
 
Code:

#define FCVAR_DONTRECORD        (1<<17)    /**< Don't record these command in demo files. */
Are you sure about that?

FeuerSturm 09-27-2008 13:40

Re: FCVAR_* Question
 
Quote:

Originally Posted by bl4nk (Post 691666)
Code:

#define FCVAR_DONTRECORD        (1<<17)    /**< Don't record these command in demo files. */
Are you sure about that?

Yes, i read that definition next to it, but i tried all of them and
that one did the trick.
I'm using that and it stops the global tracking cvar from being dumped
into the configfiles.

So even if it wasn't the intention of that flag, I'm happy that it does
the job I need it for! :mrgreen:

XARIUS 09-27-2008 15:04

Re: FCVAR_* Question
 
It does indeed work! I was checking game-monitor for the knifefight plugin, and noticed everyone was still running 0.1... but in reality they weren't. Once the config file was auto-generated, all newer version of the plugin version number were getting overridden by the version cvar in the config file.

teame06 09-28-2008 00:33

Re: FCVAR_* Question
 
Quote:

Originally Posted by bl4nk (Post 691666)
Code:

#define FCVAR_DONTRECORD        (1<<17)    /**< Don't record these command in demo files. */
Are you sure about that?

Yes it does. You can check SourceMod core. It in there to not add cvar into the config if that flag exists for the convar.


All times are GMT -4. The time now is 20:02.

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