View Single Post
Author Message
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-19-2016 , 06:24   [Any] Change Overrides
Reply With Quote #1

[Any] Change Overrides
v. 18.0122.0

This plugin provides simple commands that can be used to examine, change, create, or remove an override without editing one of the usual cfg files and reloading the admin cache. This plugin will find its greatest usage within map and gamemode cfg files on servers running multiple gamemodes. For example, sm_jumppad is a command that should be admin-only during Death Run, but I would like to be public during FF2. In addition, this plugin may be useful for admins wishing to debug command access issues.

All commands require root access by default. You should probably not ever change this. (Do not override the override overrider.)


Example Command Usage:
  • sm_override "someOverride" [flagsNeeded / 0 / -]
    Code:
    sm_override "sm_noclip" a
    The above command would set sm_noclip to require the "a" flag. Just like in the standard overrides file, if multiple flags are specified, the user must have ALL the flags in order to have access. In addition, specifying only 0 as the flag will make the override public. Specifying a hyphen ( - ) as the flag will cause the plugin to remove any overrides on that string. Finally, specifying no further arguments after the name of the override will cause the command to display the current flags required, if the override exists, or the default flags for the command specified.

  • sm_override_group "someGroup" "someOverride" [deny/allow]
    This command sets the allow/deny permissions on a command for an admin group. For example, the following command would allow access to sm_votekick by players in the "VIP" group.
    Code:
    sm_override_group "VIP" "sm_votekick" allow
    Please note that this will only affect group members who join the server after the command use. Further, once set, a group override cannot currently be unset or changed without reloading the admin cache. Omitting the "allow" or "deny" in the command will display the current setting.

  • Both of the aformentioned commands also support command groups. Simply append a @ symbol to the front of the override string, as follows:[code]
    Code:
    sm_override "@basecommands" a



CVARS, shown with default values:
  • sm_changeOverrides_update 3 - Controls Updater compatibility
    • 0 : Completely disables Updater integration
    • 1 : Updater will notify you in Updater.log if an update becomes available.
    • 2 : Updater will automatically download any updates. They will be installed on the next server start or map change.
    • 3 : Updater will automatically download and immediately install any updates.


Installation:
To install, simply ensure that your Sourcemod installation is up to date, and place the SMX in your plugins folder.

Please also consider installing Updater. This will let you automatically keep your plugins up-to-date. Updater is NOT required for this plugin to function.
Compiling:
The plugin requires custom includes. As such, it does not compile here on the forums. Includes required to compile the plugin are:

Changelog:
Spoiler




Downloads:

If you like what you see here, please consider donating~
__________________

Last edited by ddhoward; 05-21-2018 at 20:13.
ddhoward is offline