mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-09-18 16:37:25 +00:00
added knife lunge
This commit is contained in:
@@ -3900,7 +3900,7 @@ doReloadCancel()
|
||||
*/
|
||||
bot_weapon_think_loop( data )
|
||||
{
|
||||
self waittill_any_timeout( randomIntRange( 2, 4 ), "bot_force_check_switch" );
|
||||
ret = self waittill_any_timeout( randomIntRange( 2, 4 ), "bot_force_check_switch" );
|
||||
|
||||
if ( self BotIsFrozen() )
|
||||
return;
|
||||
@@ -3947,6 +3947,8 @@ bot_weapon_think_loop( data )
|
||||
return;
|
||||
}
|
||||
|
||||
force = ( ret == "bot_force_check_switch" );
|
||||
|
||||
if ( data.first )
|
||||
{
|
||||
data.first = false;
|
||||
@@ -3964,6 +3966,8 @@ bot_weapon_think_loop( data )
|
||||
if ( hasTarget )
|
||||
return;
|
||||
}
|
||||
else
|
||||
force = true;
|
||||
}
|
||||
|
||||
weaponslist = self getweaponslistall();
|
||||
@@ -3974,7 +3978,7 @@ bot_weapon_think_loop( data )
|
||||
weapon = weaponslist[randomInt( weaponslist.size )];
|
||||
weaponslist = array_remove( weaponslist, weapon );
|
||||
|
||||
if ( !self getAmmoCount( weapon ) )
|
||||
if ( !self getAmmoCount( weapon ) && !force )
|
||||
continue;
|
||||
|
||||
if ( !isWeaponPrimary( weapon ) )
|
||||
|
Reference in New Issue
Block a user