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

[CS:GO] Bot Practice Mode (v1.0, 20.10.2018)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TeV
New Member
Join Date: Oct 2018
Plugin ID:
6305
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Lets players fight against waves of bots if there are not enough real players on the server.
    Old 10-19-2018 , 20:19   [CS:GO] Bot Practice Mode (v1.0, 20.10.2018)
    Reply With Quote #1

    Bot Practice Mode

    This plugin aims to keeps players busy with a dynamic amount of bots when there are not enough real players on the server. If someone connects to the empty server and joins a team, a bot is spawned to the opposite team. If the player wins the round against the bot, another bot is added to the bot team. If the player loses a round, the amount of bots gets reduced by 1 (cannot go below 1). Also bots' difficulty is managed depending on the player's performance against the bots. Winning multiple rounds leads to an increased difficulty, whereas losing will reduce it.

    It is possible for other players who join the server, after the practice mode has already enabled itself, to join the team with humans and fight against bots. However, if a player joins into the bots' team, then the practice mode gets disabled immediately (and bots kicked), since now there is at least 1 real human on both teams and the server can function normally.

    Features

    Code:
    - Let players fight against waves of bots if there are not enough real players on the server.
    - Vary the amount of bots and their difficulty by looking at the performance of the human team.
    CVAR list

    Code:
    bot_practice_max_bots 30		Sets the maximum number of bots that the plugin is allowed to spawn. Capped at (amount_of_slots - amount_of_human_players - 2).
    Changelog

    Code:
    20.10.2018 (v1.0)
    
    * Initial release.
    Screenshots

    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (bot_practice_mode.sp - 1735 views - 7.6 KB)

    Last edited by TeV; 10-19-2018 at 20:20.
    TeV is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 10-19-2018 , 20:48   Re: [CS:GO] Bot Practice Mode (v1.0, 20.10.2018)
    Reply With Quote #2

    Would it be possible to add like a DM mode to this?
    Like, if there are 0 players, X amount (cvar) of bots joins (both teams) and when X amount (cvar) of real players joins, the bots leaves. Maybe they could leave one by one for each new real player that joins?
    Also there wouldnt be need for any waves or reduce the amount of bots based on how the player performs in this mode.

    Example scenario:
    Players 0 - bots 10
    1 player joins - 1 bot leaves (1 player, 9 bots)
    1 player joins - 1 bot leaves (2 players, 8 bots)
    1 player joins - 1 bot leaves (3 players 7 bots)
    1 player joins - all bots leaves (4 players, 0 bots)

    Last edited by Ejziponken; 10-19-2018 at 20:53.
    Ejziponken is offline
    TeV
    New Member
    Join Date: Oct 2018
    Old 10-20-2018 , 08:09   Re: [CS:GO] Bot Practice Mode (v1.0, 20.10.2018)
    Reply With Quote #3

    What you're describing is fairly similar to the CSGO's default bot handling mode, and in my opinion, is too different from the purpose of this plugin to add. If you set "bot_quota_mode" to "fill" and "bot_quota" to "10", then there will be 10 bots on an empty server, 9 bots with 1 player, etc.

    I don't think the default system supports kicking all bots when a certain number of players is reached though. Perhaps a simple script would do the job, that would repeatedly check how many real players there are on the server and and set the bot_quota CVAR to 10 if there are < 4 players, and 0 if there are >= 4.
    TeV is offline
    ae86
    Junior Member
    Join Date: Feb 2017
    Old 10-30-2018 , 10:05   Re: [CS:GO] Bot Practice Mode (v1.0, 20.10.2018)
    Reply With Quote #4

    error
    L 10/30/2018 - 18:424: [SM] Blaming: bot_practice_mode.smx
    L 10/30/2018 - 18:424: [SM] Call stack trace:
    L 10/30/2018 - 18:424: [SM] [0] GetClientTeam
    L 10/30/2018 - 18:424: [SM] [1] Line 285, /home/forums/content/files/2/8/8/5/8/7/171898.attach::getClientCountExcludingTeam
    L 10/30/2018 - 18:424: [SM] [2] Line 273, /home/forums/content/files/2/8/8/5/8/7/171898.attach::getMaxBotQuota
    L 10/30/2018 - 18:424: [SM] [3] Line 199, /home/forums/content/files/2/8/8/5/8/7/171898.attach::OnRoundEnded
    L 10/30/2018 - 18:424: [SM] [4] Line 60, /home/forums/content/files/2/8/8/5/8/7/171898.attach::EventRoundEnd
    ae86 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 10:37.


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