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

[CS:GO] BSP ConVar Custom Whitelist


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Vauff
AlliedModders Donor
Join Date: Sep 2019
Plugin ID:
7505
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 02-19-2021 , 18:51   [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #1

    BSP ConVar Custom Whitelist

    This plugin changes the file that CS:GO reads the BSP convar whitelist from to bspconvar_custom_whitelist.txt. This stops CS:GO updates from overriding the changes you make to the original file. It also adds live reloading of the file automatically on map change, or manually with sm_reloadwhitelist.

    Advanced users can also configure map specific overrides by adding new sections like so.
    Code:
    "convars"
    {
    	...
    	sv_airaccelerate		1
    	sv_autobunnyhopping		1
    
    	"de_dust2"
    	{
    		sv_airaccelerate	0
    		sv_jump_impulse		1
    	}
    	"dz_blacksite"
    	{
    		sv_autobunnyhopping	0
    	}
    }
    Installation
    • Install the plugin as you normally would, whether by compiling the .sp or using the pre-compiled .smx
    • Add the gamedata file to your SourceMod gamedata folder
    • Make a copy of bspconvar_whitelist.txt named as bspconvar_custom_whitelist.txt, and make your edits to this file
    Changelog
    Quote:
    1.1:
    - Added sm_reloadwhitelist command
    - Added support for map specific overrides

    1.0.1:
    - Added CS:GO engine check

    1.0:
    - Initial release
    GitHub

    https://github.com/Vauff/bspconvar_custom_whitelist
    Attached Files
    File Type: sp Get Plugin or Get Source (bspconvar_custom_whitelist.sp - 220 views - 2.8 KB)
    File Type: txt bspconvar_custom_whitelist.games.txt (615 Bytes, 78 views)
    __________________


    Last edited by Vauff; 02-02-2023 at 21:00.
    Vauff is offline
    NanoC
    Veteran Member
    Join Date: Jan 2016
    Location: Argentina
    Old 02-19-2021 , 19:00   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #2

    Is this the same?
    https://forums.alliedmods.net/showthread.php?p=2578442

    *Edit: Suggestion = add support for cfg/gamemode_casual.cfg
    __________________

    Last edited by NanoC; 02-19-2021 at 19:01.
    NanoC is offline
    Send a message via Skype™ to NanoC
    Vauff
    AlliedModders Donor
    Join Date: Sep 2019
    Old 02-19-2021 , 19:04   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #3

    Quote:
    Originally Posted by NanoC View Post
    This solution was ineffective because it would only hook inputs to point_servercommand entities in maps. Maps also have the SendToConsoleServer() VScript function available to them that works the same way as point_servercommand. By detouring IsWhiteListedCmd in the engine, this covers all cases.

    Quote:
    Originally Posted by NanoC View Post
    *Edit: Suggestion = add support for cfg/gamemode_casual.cfg
    There's already a built-in override for this, just make a copy called cfg/gamemode_casual_server.cfg
    __________________


    Last edited by Vauff; 02-19-2021 at 19:09.
    Vauff is offline
    NanoC
    Veteran Member
    Join Date: Jan 2016
    Location: Argentina
    Old 02-19-2021 , 19:12   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #4

    AMAZING, thanks bud
    __________________
    NanoC is offline
    Send a message via Skype™ to NanoC
    pedrotski
    Member
    Join Date: Nov 2020
    Old 02-22-2021 , 08:00   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #5

    Thank you Vauff
    __________________
    pedrotski is offline
    Vauff
    AlliedModders Donor
    Join Date: Sep 2019
    Old 07-19-2021 , 18:23   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #6

    v1.1 has been released and includes the addition of map specific overrides (thanks Snowy!) and a sm_reloadwhitelist command. Main post has been updated with updated downloads and more info.
    __________________

    Vauff is offline
    SHUFEN
    Senior Member
    Join Date: Jun 2014
    Location: Japan, Tokyo
    Old 07-19-2021 , 20:56   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #7

    Quote:
    Originally Posted by Vauff View Post
    This solution was ineffective because it would only hook inputs to point_servercommand entities in maps. Maps also have the SendToConsoleServer() VScript function available to them that works the same way as point_servercommand. By detouring IsWhiteListedCmd in the engine, this covers all cases.



    There's already a built-in override for this, just make a copy called cfg/gamemode_casual_server.cfg
    Yea, this is better than mine.
    Sorry for my negligence, that is outdated.
    My latest version is also using the way of this.
    Just use this.
    SHUFEN is offline
    Send a message via Skype™ to SHUFEN
    azalty
    AlliedModders Donor
    Join Date: Feb 2020
    Location: France
    Old 08-10-2022 , 14:01   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #8

    Thanks! Works great.
    __________________
    GitHub | Discord: @azalty | Steam
    azalty is offline
    azalty
    AlliedModders Donor
    Join Date: Feb 2020
    Location: France
    Old 10-22-2022 , 08:54   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #9

    Crashes my server after the last csgo update, probably outdated gamedata
    __________________
    GitHub | Discord: @azalty | Steam
    azalty is offline
    Vauff
    AlliedModders Donor
    Join Date: Sep 2019
    Old 02-02-2023 , 21:01   Re: [CS:GO] BSP ConVar Custom Whitelist
    Reply With Quote #10

    Gamedata updated in main post for 2023/02/02 CS:GO update, currently untested due to SM not working yet.
    __________________

    Vauff 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 08:31.


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