Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed Apr 30, 2024
1 parent 82c0c11 commit d95a649
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions maps/mp/bots/_bot_script.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
Expand Down
14 changes: 7 additions & 7 deletions maps/mp/gametypes/_bot.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ init()

thread doNonDediBots();
level thread onPlayerChat();

// todo: _bot_chat
}

Expand Down Expand Up @@ -248,7 +248,7 @@ handleBots()
onDisconnectPlayer()
{
name = self.name;

self waittill( "disconnect" );
waittillframeend;

Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit d95a649

Please sign in to comment.