small update

This commit is contained in:
ineed bots 2024-04-30 12:56:21 -06:00
parent 82c0c1152d
commit d95a6491ee
2 changed files with 13 additions and 7 deletions

View File

@ -1260,6 +1260,12 @@ bot_killstreak_think_loop()
return; 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(); weapon = self maps\mp\gametypes\_hardpoints::gettopkillstreak();
if ( !isdefined( weapon ) || weapon == "none" ) if ( !isdefined( weapon ) || weapon == "none" )

View File

@ -194,7 +194,7 @@ init()
thread doNonDediBots(); thread doNonDediBots();
level thread onPlayerChat(); level thread onPlayerChat();
// todo: _bot_chat // todo: _bot_chat
} }
@ -248,7 +248,7 @@ handleBots()
onDisconnectPlayer() onDisconnectPlayer()
{ {
name = self.name; name = self.name;
self waittill( "disconnect" ); self waittill( "disconnect" );
waittillframeend; waittillframeend;
@ -887,11 +887,11 @@ addBots_loop()
if ( fillMode == 0 || fillMode == 2 ) if ( fillMode == 0 || fillMode == 2 )
{ {
amount += players; amount += players;
}
if ( getdvarint( "bots_manage_fill_spec" ) )
if ( getdvarint( "bots_manage_fill_spec" ) ) {
{ amount += spec;
amount += spec; }
} }
if ( amount < fillAmount ) if ( amount < fillAmount )