Monthly Target: $400 Donations: $
 0% 

[TF2] MvM Auto-lock Server (v1.2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlaminSarge
Veteran Member
Join Date: Jul 2010
Plugin ID:
3170
Plugin Version:
1.2
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Approver:
    Plugin Description:
    Passwords the server when there's 6 people connected.
    Servers with this Plugin:
     
    Old 08-16-2012 , 23:06   [TF2] MvM Auto-lock Server (v1.2)
    Reply With Quote #1

    As in the description, once 6 people are connected, a password is set on the server (a message is printed to chat saying so).

    There's also a steamtools/connect plugin in there, but it is untested and so disabled (it's not even in the .smx when you click Get Plugin). To enable it you'll have to recompile with //#define USE_STEAMTOOLSCONNECT uncommented.

    Convars:
    mvmautolock_version 1.2 - don't touch
    mvm_password - Password to set once the server has 6 or more people. If unset, the plugin will not be enabled.

    Code:
    August 20, 2012 (v1.2)
    *Fixed a bug where a password would be set even if <6 players
    
    August 16, 2012 (v1.1)
    *Revised so that password is only removed if sv_password matches mvm_password
    *If mvm_password is changed and sv_password is the same as mvm_password, sv_password is changed to match the new value as well.
    
    August 16, 2012 (v1.0)
    *Initial release.
    Previous plugin views - 240
    Attached Files
    File Type: sp Get Plugin or Get Source (mvmautolock.sp - 402 views - 4.3 KB)
    __________________
    Bread EOTL GunMettle will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, BetheHorsemann, etc. (+SaxtonHale)
    Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia if you don't.
    Psyduck likes replays.

    Last edited by FlaminSarge; 08-20-2012 at 21:37.
    FlaminSarge is offline
    lamasniu
    Senior Member
    Join Date: Jul 2010
    Location: United Kingdom
    Old 08-17-2012 , 00:27   Re: [TF2] MvM Auto-lock Server
    Reply With Quote #2

    Working like a charm FlamminSarge. A billion thank yous!
    lamasniu is offline
    Le Awesome Nick
    Junior Member
    Join Date: Aug 2012
    Location: Under your bed
    Old 08-17-2012 , 02:44   Re: [TF2] MvM Auto-lock Server
    Reply With Quote #3

    WOW, this is what I have been looking for! Thanks!
    __________________

    Feel free to add me

    IDLE BOTS + COOL MAP SECRET
    Le Awesome Nick is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 08-17-2012 , 03:23   Re: [TF2] MvM Auto-lock Server (v1.1)
    Reply With Quote #4

    Updated it a bit.
    __________________
    Bread EOTL GunMettle will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, BetheHorsemann, etc. (+SaxtonHale)
    Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia if you don't.
    Psyduck likes replays.
    FlaminSarge is offline
    deltadude
    SourceMod Donor
    Join Date: Mar 2010
    Old 08-17-2012 , 09:35   Re: [TF2] MvM Auto-lock Server (v1.1)
    Reply With Quote #5

    Doesnt locking the server automatically remove said server from matchmaking even after its unlocked?
    __________________
    deltadude is offline
    kolya2142
    Member
    Join Date: Jun 2012
    Old 08-17-2012 , 09:51   Re: [TF2] MvM Auto-lock Server (v1.1)
    Reply With Quote #6

    I ordered mvm_password 12345, but when running, password immediately placed on the server.

    sry. WORK!

    Last edited by kolya2142; 08-17-2012 at 10:03.
    kolya2142 is offline
    Znuff
    Junior Member
    Join Date: Aug 2012
    Old 08-17-2012 , 10:02   Re: [TF2] MvM Auto-lock Server (v1.1)
    Reply With Quote #7

    Quote:
    Originally Posted by deltadude View Post
    Doesnt locking the server automatically remove said server from matchmaking even after its unlocked?
    Indeed it does.

    To put it back into MM mode, you need to put tf_mm_servermode back to 2 or whatever it was before.
    Znuff is offline
    deltadude
    SourceMod Donor
    Join Date: Mar 2010
    Old 08-17-2012 , 10:15   Re: [TF2] MvM Auto-lock Server (v1.1)
    Reply With Quote #8

    If you lock the server and unlock it, manually enter tf_mm_servermode 2 it will auto set it back to 0, so it requires a complete reboot.
    __________________
    deltadude is offline
    kolya2142
    Member
    Join Date: Jun 2012
    Old 08-17-2012 , 10:40   Re: [TF2] MvM Auto-lock Server (v1.1)
    Reply With Quote #9

    And how to change the difficulty level?

    Last edited by kolya2142; 08-17-2012 at 13:40.
    kolya2142 is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 08-17-2012 , 16:18   Re: [TF2] MvM Auto-lock Server (v1.1)
    Reply With Quote #10

    Ah, I don't know how well this works with matchmaking. The steamtools/connect bit will probably be more compatible. I'll do some testing. However, matchmaking only ever lets 6 people connect (Fletch made this pretty clear in an email) so if you set sv_visiblemaxplayers to 6 (7 or 8 if you have Replay, STV, or both), then you probably don't need this plugin and you should be fine with matchmaking.
    __________________
    Bread EOTL GunMettle will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, BetheHorsemann, etc. (+SaxtonHale)
    Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia if you don't.
    Psyduck likes replays.
    FlaminSarge is offline
    Reply


    Thread Tools
    Display Modes

    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 06:06.


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