From d95a6491eed8cda3d6a17d36f23463e886add58e Mon Sep 17 00:00:00 2001 From: ineed bots Date: Tue, 30 Apr 2024 12:56:21 -0600 Subject: [PATCH] small update --- maps/mp/bots/_bot_script.gsc | 6 ++++++ maps/mp/gametypes/_bot.gsc | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/maps/mp/bots/_bot_script.gsc b/maps/mp/bots/_bot_script.gsc index 13cf3fe..80e9ec1 100644 --- a/maps/mp/bots/_bot_script.gsc +++ b/maps/mp/bots/_bot_script.gsc @@ -1260,6 +1260,12 @@ bot_killstreak_think_loop() return; } + if ( maps\mp\gametypes\_hardpoints::iskillstreakweapon( curWeap ) && curWeap != "m220_tow_mp" && curWeap != "m202_flash_mp" && curWeap != "minigun_mp" ) + { + self thread changeToWeapon( self.lastnonkillstreakweapon ); + return; + } + weapon = self maps\mp\gametypes\_hardpoints::gettopkillstreak(); if ( !isdefined( weapon ) || weapon == "none" ) diff --git a/maps/mp/gametypes/_bot.gsc b/maps/mp/gametypes/_bot.gsc index 246687b..c999b35 100644 --- a/maps/mp/gametypes/_bot.gsc +++ b/maps/mp/gametypes/_bot.gsc @@ -194,7 +194,7 @@ init() thread doNonDediBots(); level thread onPlayerChat(); - + // todo: _bot_chat } @@ -248,7 +248,7 @@ handleBots() onDisconnectPlayer() { name = self.name; - + self waittill( "disconnect" ); waittillframeend; @@ -887,11 +887,11 @@ addBots_loop() if ( fillMode == 0 || fillMode == 2 ) { amount += players; - } - - if ( getdvarint( "bots_manage_fill_spec" ) ) - { - amount += spec; + + if ( getdvarint( "bots_manage_fill_spec" ) ) + { + amount += spec; + } } if ( amount < fillAmount )