Added ads dvar

This commit is contained in:
INeedBots
2020-12-13 16:47:52 -06:00
parent 376382b17e
commit b1579c0b3e
4 changed files with 17 additions and 0 deletions

View File

@ -1350,6 +1350,9 @@ canAds(dist, curweap)
if(curweap == "none")
return false;
if (!getDvarInt("bots_play_ads"))
return false;
far = level.bots_noADSDistance;
if(self _hasPerk("specialty_bulletaccuracy"))
far *= 1.4;