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

FCVAR_* Question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 09-26-2008 , 21:24   FCVAR_* Question
Reply With Quote #1

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?
XARIUS is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-27-2008 , 02:39   Re: FCVAR_* Question
Reply With Quote #2

EDIT: See Below

Last edited by Antithasys; 09-27-2008 at 17:55.
Antithasys is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-27-2008 , 04:30   Re: FCVAR_* Question
Reply With Quote #3

use "FCVAR_DONTRECORD" and it won't show up in the
config files.
FeuerSturm is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 09-27-2008 , 10:10   Re: FCVAR_* Question
Reply With Quote #4

Quote:
Originally Posted by FeuerSturm View Post
use "FCVAR_DONTRECORD" and it won't show up in the
config files.
Awesome, thanks!
XARIUS is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-27-2008 , 13:18   Re: FCVAR_* Question
Reply With Quote #5

Code:
#define FCVAR_DONTRECORD        (1<<17)    /**< Don't record these command in demo files. */
Are you sure about that?
bl4nk is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-27-2008 , 13:40   Re: FCVAR_* Question
Reply With Quote #6

Quote:
Originally Posted by bl4nk View Post
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!
FeuerSturm is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 09-27-2008 , 15:04   Re: FCVAR_* Question
Reply With Quote #7

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.
XARIUS is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 09-28-2008 , 00:33   Re: FCVAR_* Question
Reply With Quote #8

Quote:
Originally Posted by bl4nk View Post
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.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Reply



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 15:23.


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