Monthly Target: $400 Donations: $334
 83% 

[ANY] Limit human clients (TF2 MvM spectators fix)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
nowakpl
Junior Member
Join Date: Jan 2009
Plugin ID:
3169
Plugin Version:
1
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Approver:
    Plugin Description:
    This plugin will reject any connects above set limit - counting only real human clients
    Servers with this Plugin:
     
    Old 08-16-2012 , 21:32   [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #1

    Very simple plugin intended as a fix to current Team Fortress 2 Mann vs Machine problems with spectators filling a server. There is one cvar:
    sm_maxhumanclients with default value of -1 (no limit)
    set it to 6 and any client trying to connect above that limit will be rejected (not counting bots).

    Remember to also set sv_visiblemaxplayers so server gets less connects above the limit.
    Attached Files
    File Type: sp Get Plugin or Get Source (limithumanclients.sp - 521 views - 974 Bytes)

    Last edited by nowakpl; 08-17-2012 at 12:22.
    nowakpl is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: SDKHook_PostThinkPost
    Old 08-16-2012 , 21:36   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #2

    Cool.
    __________________
    Quote:
    Originally Posted by whosurdaddy972 View Post
    stfu mitchell
    Mitchell is offline
    Horsedick
    SourceMod Donor
    Join Date: Sep 2011
    Old 08-16-2012 , 23:10   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #3

    I'm assuming a spec player takes a bot spot? If that's the case then this will be much needed however I'm thinking Valve may address this in their bug update tomorrow if we are lucky.
    Horsedick is offline
    GNCMatt
    Member
    Join Date: Apr 2009
    Old 08-16-2012 , 23:47   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #4

    Be careful with this, I did something similar and it didn't work right with the queue, and most my servers are now in bad standing.
    __________________
    GNCMatt is offline
    SilentBr
    Veteran Member
    Join Date: Jan 2009
    Old 08-17-2012 , 13:50   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #5

    Changing sv_visiblemaxplayers will stop the waves sometimes. Its needed change the map to fix. I advise to not use this cvar for now.
    SilentBr is offline
    kolya2142
    Member
    Join Date: Jun 2012
    Old 08-17-2012 , 14:02   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #6

    How do I set the difficulty level on the server?
    kolya2142 is offline
    Jim E. Rustler
    BANNED
    Join Date: Jul 2012
    Old 08-17-2012 , 14:05   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #7

    Quote:
    Originally Posted by kolya2142 View Post
    How do I set the difficulty level on the server?
    To change difficulty, you have to execute the appropriate difficulty file through this command:
    Code:
    Code:
    tf_mvm_popfile "FILENAMEHERE"
    It goes like this:
    Code:
    Code:
    tf_mvm_popfile "mvm_mannworks"             //Manouvers (invasion, easy)
    tf_mvm_popfile "mvm_mannworks_advanced"    //Machine Massacre (invasion, normal)
    tf_mvm_popfile "mvm_mannworks_ironman"     //Mech Mutilation (endurance, expert)
    tf_mvm_popfile "mvm_coaltown"              //Crash Course (invasion, easy)
    tf_mvm_popfile "mvm_coaltown_advanced"     //Ctrl+Alt+Destruction (invasion, normal)
    tf_mvm_popfile "mvm_coaltown_advanced2"    //CPU Slaughter (invasion, advanced)
    tf_mvm_popfile "mvm_decoy"                 //Doe's Drill (invasion, easy)
    tf_mvm_popfile "mvm_decoy_advanced"        //Disk Deletion (invasion, advanced)
    tf_mvm_popfile "mvm_decoy_advanced2"       //Data Demolition (invasion, advanced)
    Jim E. Rustler is offline
    Powerlord
    Oh Ross.
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-17-2012 , 14:19   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #8

    Quote:
    Originally Posted by kolya2142 View Post
    How do I set the difficulty level on the server?
    Alternatively, your team can start a Change Difficulty vote. Assuming you have the game's default votes enabled.
    __________________
    My SourceMod Plugins
    PropHunt Dev Server: tf2.rbemrose.com:27015
    Testing backlog: PropHunt Redux 3.4, NativeVotes 1.0, NativeVotes MapChooser 1.7
    Powerlord is offline
    fefobiz
    SourceMod Donor
    Join Date: Jul 2012
    Old 08-17-2012 , 22:32   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #9

    Jesus, this plugin screwed up my server. As mentioned before, be careful with this.
    fefobiz is offline
    nowakpl
    Junior Member
    Join Date: Jan 2009
    Old 08-18-2012 , 07:25   Re: [ANY] Limit human clients (TF2 MvM spectators fix)
    Reply With Quote #10

    Quote:
    Originally Posted by fefobiz View Post
    Jesus, this plugin screwed up my server. As mentioned before, be careful with this.
    How did it screw up your server?
    nowakpl 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 13:43.


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