Jump to content

[SourceMod] Dynamic Slots


Christian
 Share

Recommended Posts

  • Superuser

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

 

GitHub Repository & Source Code

dynamic_slots.sp dynamic_slots.smx

Link to comment
Share on other sites

  • The title was changed to [SourceMod] Dynamic Slots

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site you agree to the Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.