mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-22 01:15:44 +00:00
Fixed infinite loop
This commit is contained in:
parent
710b40cbef
commit
337c9bb587
@ -422,6 +422,10 @@ bot_get_random_weapon(slot, rank)
|
|||||||
|
|
||||||
case "camera_spike":
|
case "camera_spike":
|
||||||
case "satchel_charge":
|
case "satchel_charge":
|
||||||
|
if(self.pers["bot"]["cod_points"] >= 2500)
|
||||||
|
continue;
|
||||||
|
break;
|
||||||
|
|
||||||
case "nightingale":
|
case "nightingale":
|
||||||
case "tabun_gas":
|
case "tabun_gas":
|
||||||
case "rottweil72":
|
case "rottweil72":
|
||||||
@ -457,12 +461,12 @@ bot_get_random_weapon(slot, rank)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( id[ "reference" ] == "claymore" && diff <= 0 )
|
if ( id[ "reference" ] == "claymore" && diff <= 0 && RandomInt( 100 ) > 20 )
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( id[ "reference" ] == "scrambler" && diff <= 0 )
|
if ( id[ "reference" ] == "scrambler" && diff <= 0 && RandomInt( 100 ) > 20 )
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user