Superuser Christian Posted August 31, 2022 Superuser Share Posted August 31, 2022 A simple dynamic slots plugin for SourceMod that relies on increasing the visible maxplayers (sv_visiblemaxplayers CVar) by incrementals. The incremental value must be dividable by two. If for whatever reason the game you're using this for doesn't support sv_visiblemaxplayers, the plugin will not work. SourceMod is supported on a majority of Source Engine games such as Counter-Strike, Team Fortress 2, etc. ConVars Here is a list of the plugin's ConVars along with their descriptions and default values. // This file was auto-generated by SourceMod (v1.10.0.6537) // ConVars for plugin "dynamic_slots.smx" // Whether to include bots in player count calculations. // - // Default: "0" ds_bots_include "0" // Enables debugging (for developer mode only). Will log a SourceMod message. // - // Default: "0" ds_debug "0" // How many slots to increase by after 'ds_min' is reached until 'ds_max'. // - // Default: "2" ds_increase "2" // The maximum player count before the plugin stops doing anything. 0 = maxplayers. // - // Default: "0" ds_max "0" // The minimum amount of players required for the plugin to do anything. // - // Default: "24" ds_min "24" Installation Copy the compiled dynamic_slots.smx file into the server's addons/sourcemod/plugins directory. For compiling from source, the source code is available at scripting/dynamic_slots.sp. To enable the plugin, either restart the map, server, or execute the following SourceMod command. sm plugins load dynamic_slots Credits @Christian GitHub Repository & Source Code dynamic_slots.sp dynamic_slots.smx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.