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

@ -773,6 +773,13 @@ AddOptions()
else
_temp = "false";
self AddMenu("set1", 11, "Bots can use killstreaks: "+_temp, ::bot_func, "killstreak", _tempDvar);
_tempDvar = getDvarInt("bots_play_ads");
if(_tempDvar)
_temp = "true";
else
_temp = "false";
self AddMenu("set1", 12, "Bots can ads: "+_temp, ::bot_func, "ads", _tempDvar);
}
bot_func(a, b)
@ -827,6 +834,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;
}
}