Bots use c4death_mp

This commit is contained in:
ineedbots 2021-05-18 21:31:47 -06:00
parent 9b63acb5d8
commit 8e9594e3c4

View File

@ -1563,7 +1563,7 @@ canFire(curweap)
if (curweap == "riotshield_mp") if (curweap == "riotshield_mp")
return false; return false;
if (self IsUsingRemote()) if (self IsUsingRemote() || curweap == "c4death_mp")
return true; return true;
return self GetWeaponammoclip(curweap); return self GetWeaponammoclip(curweap);
@ -1577,7 +1577,7 @@ canAds(dist, curweap)
if (self IsUsingRemote()) if (self IsUsingRemote())
return false; return false;
if(curweap == "none") if(curweap == "none" || curweap == "c4death_mp")
return false; return false;
if (!getDvarInt("bots_play_ads")) if (!getDvarInt("bots_play_ads"))
@ -1616,7 +1616,7 @@ isInRange(dist, curweap)
if (self IsUsingRemote()) if (self IsUsingRemote())
return true; return true;
if((weapclass == "spread" || self.bot.is_cur_akimbo) && dist > level.bots_maxShotgunDistance) if((weapclass == "spread" || self.bot.is_cur_akimbo || curweap == "c4death_mp") && dist > level.bots_maxShotgunDistance)
return false; return false;
if (curweap == "riotshield_mp" && dist > level.bots_maxKnifeDistance) if (curweap == "riotshield_mp" && dist > level.bots_maxKnifeDistance)