Added ads dvar

This commit is contained in:
INeedBots
2020-12-13 16:57:30 -06:00
parent 72b1c6ff06
commit 987850ad44
4 changed files with 17 additions and 0 deletions

View File

@@ -762,6 +762,13 @@ AddOptions()
else
_temp = "false";
self AddMenu("set1", 10, "Bots can use killstreaks: "+_temp, ::bot_func, "killstreak", _tempDvar);
_tempDvar = getDvarInt("bots_play_ads");
if(_tempDvar)
_temp = "true";
else
_temp = "false";
self AddMenu("set1", 11, "Bots can ads: "+_temp, ::bot_func, "ads", _tempDvar);
}
bot_func(a, b)
@@ -812,6 +819,10 @@ bot_func(a, b)
setDvar("bots_play_killstreak", !b);
self iPrintln("Bots use killstreaks: " + !b);
break;
case "ads":
setDvar("bots_play_ads", !b);
self iPrintln("Bots ads: " + !b);
break;
}
}