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

[L4D2] Auto Enable/Disable "sb_all_bot_game" v1.1【2024-02-17】


Post New Thread Reply   
 
Thread Tools Display Modes
Author
little_froy
Senior Member
Join Date: May 2021
Plugin ID:
8582
Plugin Version:
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Old 11-02-2023 , 03:29   [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.1【2024-02-17】
Reply With Quote #1

Description
  • cvar "sb_all_bot_game" lets the server keep running even everyone idled or only bots per team in game, but after the last player left, the bots keep playing, it's uncontrollable and wasteful. so this plugin auto enable "sb_all_bot_game" on the first player join the server, and disable it on the last player left.

Cvars
PHP Code:
auto_all_bot_game_enable "1" 
Know Issues

-this plugin will force server hibernate after disable "sb_all_bot_game".

Change log
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (auto_all_bot_game.sp - 49 views - 1.9 KB)

Last edited by little_froy; 03-29-2024 at 22:53.
little_froy is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 11-02-2023 , 14:19   Re: [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.0【2023-11-02】
Reply With Quote #2

Very nice, thanks for share..
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 11-02-2023 , 14:53   Re: [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.0【2023-11-02】
Reply With Quote #3

I tested it and it seems to work very well.

If possible, I would like to ask for your help with a question that perhaps you can help with, and give your opinion.

When I restart the Server, this cvar "sb_all_bot_game" always doesn't work on the first map.
It only starts working from the 2nd map onwards.
And then it works without problems for all the next maps.

Do you know what can cause this?
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
little_froy
Senior Member
Join Date: May 2021
Old 11-02-2023 , 15:04   Re: [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.0【2023-11-02】
Reply With Quote #4

Quote:
Originally Posted by Mi.Cura View Post
I tested it and it seems to work very well.

If possible, I would like to ask for your help with a question that perhaps you can help with, and give your opinion.

When I restart the Server, this cvar "sb_all_bot_game" always doesn't work on the first map.
It only starts working from the 2nd map onwards.
And then it works without problems for all the next maps.

Do you know what can cause this?
how did the server restart? what's the operation to restart server?
-----------------------------------------------
I tested restart the server by cheat command "crash", then "sb_all_bot_game" still work, mission won't lost if everyone idled.

Last edited by little_froy; 11-02-2023 at 16:36.
little_froy is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 11-02-2023 , 16:22   Re: [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.0【2023-11-02】
Reply With Quote #5

Well, I use sm_restart or in the control panel of my dedicated server.
But okay, that's not important. Only when I restart the server, after restarting, I change the campaign once and it is resolved.

Another comment about your plugin, it is very useful, if players leave the match, now the campaign does not get stuck on some intermediate map, it returns to the beginning.
That is great
Thank you for that.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 11-21-2023 , 20:05   Re: [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.0【2023-11-02】
Reply With Quote #6

Quote:
Originally Posted by S.A.S View Post
is it possible to make it so that when one player is playing and dies the game ends?
because if one player created the game (and played alone) and died in the game, the game does not end and the bots continue to play

But this is one of the goals of the plugin!
It's hard to understand.
Furthermore, the player who died will be revived in a nearby cabin.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 11-22-2023 , 11:21   Re: [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.0【2023-11-02】
Reply With Quote #7

Well, for me everything works fine.
Are you sure you installed the Dependencie Plugin?
I can't help anymore.
If it doesn't work, maybe it's better not to use it.
Attached Thumbnails
Click image for larger version

Name:	-L4D2-Auto-Enable-Disable-sb_all_bot_game-v1-0【2023-11-02】-AlliedModders.png
Views:	61
Size:	6.9 KB
ID:	202278  
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 11-22-2023 at 11:22.
Mi.Cura is offline
S.A.S
Member
Join Date: Jul 2023
Old 11-22-2023 , 19:20   Re: [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.0【2023-11-02】
Reply With Quote #8

I think you misunderstand what I'm writing about, so I'm waiting for an answer from the author
S.A.S is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 11-23-2023 , 08:11   Re: [L4D2] Auto Enable/Disable "sb_all_bot_game" v1.0【2023-11-02】
Reply With Quote #9

Quote:
Originally Posted by S.A.S View Post
I think you misunderstand what I'm writing about, so I'm waiting for an answer from the author
I use these 3 cvar in "server.cfg" file.

auto_all_bot_game_enable
sm_cvar allow_all_bot_survivor_team 1
sm_cvar sb_close_checkpoint_door_interval 0.25

Test it and see if it solves your problem.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura 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 06:01.


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