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

[CSGO] ConVar Enforcer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
blaacky
Senior Member
Join Date: Oct 2012
Plugin ID:
4788
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Prevents any server console variables from being changed.
    Old 08-19-2015 , 01:39   [CSGO] ConVar Enforcer
    Reply With Quote #1

    For those that have ever run a server in CSGO before, they probably ended up having to use a plugin that forces their server's cvars because for some reason they just changed on their own! This plugin is meant to be an end-all fix for that problem. I know that I'm definitely not the first person to make this kind of plugin, however I can't find it on alliedmods. Do I have bad search skills or is it actually the case that no one has released a plugin that does this publicly?

    How to install
    Merge the sourcemod folder from the download with your server's sourcemod folder.

    How to use
    Inside sourcemod/configs/cvarenf.cfg, you can list cvars and the values you expect. Here is an example:

    Code:
    sv_full_alltalk 1
    sv_deadtalk 1
    sv_alltalk 1
    sv_allow_votes 0
    mp_roundtime 60
    mp_timelimit 60
    mp_limitteams 0
    mp_autoteambalance 0
    mp_freezetime 0
    bot_quota 1
    bot_quota_mode match
    sv_airaccelerate 1000
    sv_hibernate_when_empty 0
    mp_warmuptime 0
    mp_do_warmup_period 0
    mp_autokick 0
    sv_friction 4
    sv_accelerate 5
    sv_staminajumpcost 0
    sv_staminalandcost 0
    sv_infinite_ammo 1
    host_players_show 2
    mp_maxmoney 0
    mp_maxrounds 1
    sv_max_allowed_net_graph 3
    sv_enablebunnyhopping 1
    bot_controllable 0
    mp_ignore_round_win_conditions 1
    sv_allow_thirdperson 1
    It's okay to have quotes, the plugin will ignore them. Right now I'm not entirely sure that the way I'm reading the cvarenf.cfg file is the proper way to do it, but from my experience with the file system it should be okay I think

    You can reload the config file ingame through the admin menu's "Server Commands" category. Requires the config admin flag ("i"). The plugin itself is also reloadable.
    Attached Files
    File Type: zip sourcemod.zip (12.1 KB, 2742 views)
    __________________

    Last edited by blaacky; 06-14-2017 at 18:51.
    blaacky is offline
    Maxximou5
    AlliedModders Donor
    Join Date: Feb 2013
    Old 08-19-2015 , 03:08   Re: [CSGO] ConVar Enforcer
    Reply With Quote #2

    This would pretty useful for minigame, surf, or whatever game type servers.

    How would this fair with SMAC Cvar checker? Say you put sv_cheats 1, and it says no, and puts it back to 0.
    Would it just do an infinite loop? Obviously now, I should probably go and see...
    Maxximou5 is offline
    blaacky
    Senior Member
    Join Date: Oct 2012
    Old 08-19-2015 , 03:36   Re: [CSGO] ConVar Enforcer
    Reply With Quote #3

    Does SMAC enforce the server's sv_cheats value to 0? If this happens then you just simply have to not put it in the .cfg I suppose. If this becomes at all a problem then I'll have to implement a check for cvars being spammed too much.
    blaacky is offline
    Maxximou5
    AlliedModders Donor
    Join Date: Feb 2013
    Old 08-19-2015 , 04:01   Re: [CSGO] ConVar Enforcer
    Reply With Quote #4

    Oh yeah... It did not like that one bit, it banned me from the server.
    Console LOG
    Spoiler

    Error LOG
    Spoiler

    This is only a problem for those users who have plugins that hookconvars and force keep forcing it.
    However, due note that when it loaded, sv_cheats was set to 1, so it's able to set it. It just can't be changed without it flipping out.

    Last edited by Maxximou5; 08-19-2015 at 04:03. Reason: bacon pancakes!
    Maxximou5 is offline
    hamilton5
    Veteran Member
    Join Date: Oct 2012
    Location: USA
    Old 08-19-2015 , 04:46   Re: [CSGO] ConVar Enforcer
    Reply With Quote #5

    if your cvars are changing on their own you got a problem that needs fixed not another plugin *facepalm*
    hamilton5 is offline
    iGANGNAM
    AlliedModders Donor
    Join Date: Sep 2012
    Location: Lithuania
    Old 04-07-2016 , 08:33   Re: [CSGO] ConVar Enforcer
    Reply With Quote #6

    Quote:
    Originally Posted by .AdaM View Post
    Yep, some Cvars just don't stick. I even tried Map Configs and that just caused more problems as well as extended map configs.

    This actually fixed it.
    well this plugin help with some cvars, but it still doesn't work for me with warmup time...
    __________________
    iGANGNAM is offline
    The Solid lad
    Senior Member
    Join Date: Oct 2018
    Old 11-07-2018 , 01:05   Re: [CSGO] ConVar Enforcer
    Reply With Quote #7

    Does it work for CSS? Should I try it?
    The Solid lad is offline
    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 07:23.


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