Raised This Month: $51 Target: $400
 12% 

[L4D2][Solved] Disabling empty team server shutdown on Versus?


Post New Thread Reply   
 
Thread Tools Display Modes
Visual77
Veteran Member
Join Date: Jan 2009
Old 11-30-2009 , 08:52   Re: [L4D2][Solved] Disabling empty team server shutdown on Versus?
Reply With Quote #11

Quote:
Originally Posted by Bran View Post
Could someone code a simple plugin to set "sb_all_bot_team 1" when one player connects and revert back to "sb_all_bot_team 0" when server is empty?

Setiing "sb_all_bot_team 1" all the time makes the server stay in the same map, not going back to hibernation.
Try this one.

Last edited by Visual77; 12-02-2009 at 10:17. Reason: Removed atachment. Was not working
Visual77 is offline
karma`
New Member
Join Date: Oct 2009
Old 12-01-2009 , 08:34   Re: [L4D2][Solved] Disabling empty team server shutdown on Versus?
Reply With Quote #12

Can anyone report back and tell me if the above plugin works and solves this issue?
karma` is offline
Blakeocity
Senior Member
Join Date: Nov 2009
Old 12-02-2009 , 01:37   Re: [L4D2][Solved] Disabling empty team server shutdown on Versus?
Reply With Quote #13

I'm gonna try the plugin out later today.

I'll report back.
I'm also going to give the Infected Bots plugin another shot also.

As mentioned above, the fix isn't that great seeing as the map continues and the bots are stuck fighting zombies until people actually join and take over.
Blakeocity is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-02-2009 , 04:22   Re: [L4D2][Solved] Disabling empty team server shutdown on Versus?
Reply With Quote #14

So use a Plugin that not only resets that cvar but also kicks all Bots off.

PHP Code:
#include <sourcemod>

public OnClientDisconnect(client)
{
    
CreateTimer(1.5CheckServer);
}

public 
Action:CheckServer(Handle:timer)
{
    if (!
HumansConnected())
    {
        
ResetConVar(FindConVar("sb_all_bot_team"), truetrue);
        
KickAll();
        
SetConVarInt(FindConVar("sb_all_bot_team"), 1);
    }
}

stock bool:HumansConnected()
{
    for (new 
1<= MaxClientsi++)
    {
        if (
IsClientConnected(i) && !IsFakeClient(i))
        {
            return 
true;
        }
    }
    return 
false;
}

stock KickAll()
{
    for (new 
1<= MaxClientsi++)
    {
        if (
IsClientConnected(i))
        {
            
KickClientEx(i);
        }
    }

AtomicStryker is offline
Blakeocity
Senior Member
Join Date: Nov 2009
Old 12-02-2009 , 04:40   Re: [L4D2][Solved] Disabling empty team server shutdown on Versus?
Reply With Quote #15

Quote:
Try this one. Attached Files Get Plugin or Get Source (l4d_hibernation.sp - 25 views - 863 Bytes)
If the last person in the server leaves the game during the second round of a versus match, then when the someone joins again none of the gear spawns.
It works fine during the first round if the last player leaves. Just the second.

Last edited by Blakeocity; 12-02-2009 at 04:49.
Blakeocity is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 12-02-2009 , 10:31   Re: [L4D2][Solved] Disabling empty team server shutdown on Versus?
Reply With Quote #16

Can you try AtomicStryker's version then? I removed mine since it wasn't working.
Visual77 is offline
Darknezzz
Junior Member
Join Date: Aug 2009
Old 12-03-2009 , 14:03   Re: [L4D2][Solved] Disabling empty team server shutdown on Versus?
Reply With Quote #17

Quote:
Originally Posted by AtomicStryker View Post
So use a Plugin that not only resets that cvar but also kicks all Bots off.
The plug-in does not work. Command does not change.

Last edited by Darknezzz; 12-03-2009 at 16:52.
Darknezzz 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 11:42.


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