small fix

This commit is contained in:
ineed bots 2024-04-04 17:01:33 -06:00
parent f133f5f33f
commit 5301ae50ec

View File

@ -570,6 +570,12 @@ onWeaponChange()
{
first = false;
newWeapon = self getcurrentweapon();
// hack fix for botstop overridding weapon
if ( newWeapon != "none" )
{
self switchtoweapon( newWeapon );
}
}
else
{
@ -1827,6 +1833,7 @@ aim()
for ( ;; )
{
wait 0.05;
waittillframeend;
if ( level.inprematchperiod || level.gameended || self.bot.isfrozen || self isFlared() )
{