mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-21 05:25:44 +00:00
Added c4 support
This commit is contained in:
parent
06990751c0
commit
80a00b019b
@ -487,7 +487,7 @@ watchC4Thrown(c4)
|
||||
if((level.teamBased && self.team == player.team) || player.sessionstate != "playing" || !isReallyAlive(player))
|
||||
continue;
|
||||
|
||||
if (distanceSquared(c4.origin, player.origin) > 1024)
|
||||
if (distanceSquared(c4.origin, player.origin) > 200*200)
|
||||
continue;
|
||||
|
||||
if (!bulletTracePassed(c4.origin, player.origin + (0, 0, 25), false, c4))
|
||||
|
@ -405,8 +405,6 @@ chooseRandomPerk(perkkind, primary, primaryAtts)
|
||||
continue;
|
||||
if (perk == "specialty_blastshield")
|
||||
continue;
|
||||
if (perk == "c4_mp")
|
||||
continue;
|
||||
if (perk == "frag_grenade_mp")
|
||||
continue;
|
||||
if (perk == "specialty_copycat")
|
||||
@ -2510,6 +2508,8 @@ bot_use_equipment_think()
|
||||
nade = "claymore_mp";
|
||||
if (self GetAmmoCount("flare_mp"))
|
||||
nade = "flare_mp";
|
||||
if (self GetAmmoCount("c4_mp"))
|
||||
nade = "c4_mp";
|
||||
|
||||
if (!isDefined(nade))
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user