Raised This Month: $ Target: $400
 0% 

[TF2] Whitelist Override


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yttrium
New Member
Join Date: Jun 2015
Old 06-29-2015 , 20:36   [TF2] Whitelist Override
Reply With Quote #1

Hey there, I've been trying to figure out how to do something but I don't think it can be done without a simply SM plugin. Unfortunately, even though I understand Source scripting, I've never touched SM coding in my life.

Basically, what I'm trying to do is have a plugin that can enable a special whitelist when a command is executed (let's say, whitelist_enable) and then disable it again when another command is used (whitelist_disable). Using the standard TF2 whitelist syntax is a huge plus.

What I'm trying to do is use a different whitelist during the pregame of competitive TF2 matches. One possible solution would be to have a modified whitelist that allowed the items I wanted, and then using SoapDM's configs that run whenever the match starts (which disable SoapDM) I could change the whitelist as soon as that script runs with a simple mp_tournament_whitelist cvar. However, there's no way to tell which original whitelist was loaded, and so this wouldn't quite work for multiple different formats. For example, if a 6s config was loaded, and soap_off.cfg was set to run mp_tournament_whitelist item_whitelist_ugc_6v6.txt, that would all be fine and dandy, but then if we tried to host a Highlander game, it would need to be manually altered to swap the whitelist to item_whitelist_ugc_HL.txt.

With this plugin, I could simply enable and disable the override without changing the original whitelist cvar, preserving the intended gamemode even across multiple modes.

tl;dr I want taunts in pregame pls halp
yttrium is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-30-2015 , 17:14   Re: [TF2] Whitelist Override
Reply With Quote #2

...since when it SourceMod allowed on tournament servers?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
yttrium
New Member
Join Date: Jun 2015
Old 06-30-2015 , 17:24   Re: [TF2] Whitelist Override
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
...since when it SourceMod allowed on tournament servers?
SourceMod can be loaded at all times, with the only restriction being that plugins that modify gameplay are not loaded during matches.

After all, SoapDM is allowed during pregame, and that requires SourceMod.

Specifically,

UGC 6v6 League Rules, Section 3.6: Server Plugins
Quote:
3.6. Server Plugins: No server plugin is allowed if it substantially alters the balance of gameplay, or changes essential settings in our Server Configfile commandlist. Manimod, Sourcemod, AMX Mod, TFTrue and AMXX Mod and the like are allowed as long as they do not interfere with the match. Admin mods may only be used for setting the config, checking the amount of time left, changing maps or for other routine server control. Please disable all plugins that could affect any aspect of the match, including Donator plugins. TFTrue features such should be disabled for a match. If a plugin is found to have substantially changed gameplay conditions for any match round, or (for example) a player is kicked, banned or moved to Spectator during a match due to any installed plugin, the hosting team will forfeit all points earned during that round, unless the Visiting team agrees otherwise.

Last edited by yttrium; 06-30-2015 at 17:36.
yttrium 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 05:15.


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