mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
Added ads dvar
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user