mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-09-02 01:37:26 +00:00
chance
This commit is contained in:
@@ -1440,7 +1440,11 @@ bot_use_tube_think()
|
|||||||
{
|
{
|
||||||
wait randomintRange(2, 4);
|
wait randomintRange(2, 4);
|
||||||
|
|
||||||
if (randomInt(100) < 20)
|
chance = self.pers["bots"]["behavior"]["nade"] / 2;
|
||||||
|
if (chance > 20)
|
||||||
|
chance = 20;
|
||||||
|
|
||||||
|
if (randomInt(100) < chance)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
tube = self getValidTube();
|
tube = self getValidTube();
|
||||||
@@ -1558,7 +1562,11 @@ bot_use_equipment_think()
|
|||||||
{
|
{
|
||||||
wait randomintRange(2, 4);
|
wait randomintRange(2, 4);
|
||||||
|
|
||||||
if (randomInt(100) < 20)
|
chance = self.pers["bots"]["behavior"]["nade"] / 2;
|
||||||
|
if (chance > 20)
|
||||||
|
chance = 20;
|
||||||
|
|
||||||
|
if (randomInt(100) < chance)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
nade = undefined;
|
nade = undefined;
|
||||||
@@ -1650,7 +1658,11 @@ bot_use_grenade_think()
|
|||||||
{
|
{
|
||||||
wait randomintRange(2, 4);
|
wait randomintRange(2, 4);
|
||||||
|
|
||||||
if (randomInt(100) < 20)
|
chance = self.pers["bots"]["behavior"]["nade"] / 2;
|
||||||
|
if (chance > 20)
|
||||||
|
chance = 20;
|
||||||
|
|
||||||
|
if (randomInt(100) < chance)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
nade = self getValidGrenade();
|
nade = self getValidGrenade();
|
||||||
@@ -1747,7 +1759,11 @@ bot_jav_loc_think()
|
|||||||
{
|
{
|
||||||
wait randomintRange(2, 4);
|
wait randomintRange(2, 4);
|
||||||
|
|
||||||
if (randomInt(100) < 20)
|
chance = self.pers["bots"]["behavior"]["nade"] / 2;
|
||||||
|
if (chance > 20)
|
||||||
|
chance = 20;
|
||||||
|
|
||||||
|
if (randomInt(100) < chance)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!self GetAmmoCount("javelin_mp"))
|
if (!self GetAmmoCount("javelin_mp"))
|
||||||
|
Reference in New Issue
Block a user