diff --git a/main/server.cfg b/main/server.cfg index 5b911fd..68ae961 100644 --- a/main/server.cfg +++ b/main/server.cfg @@ -558,7 +558,7 @@ set onemanarmyRefillsTubes "1" // _killstreaks set scr_killstreak_rollover "1" -set scr_killstreakHud "1" +set scr_killstreakHud "2" set scr_maxKillstreakRollover "1" set scr_killstreak_mod "0" diff --git a/userraw/maps/mp/bots/_bot_http.gsc b/userraw/maps/mp/bots/_bot_http.gsc index cb45a19..4bef0f1 100644 --- a/userraw/maps/mp/bots/_bot_http.gsc +++ b/userraw/maps/mp/bots/_bot_http.gsc @@ -16,18 +16,18 @@ doVersionCheck() if (!isDefined(remoteVersion)) { - println("Error getting remote version of Bot Warfare."); + println("Error getting remote version of Bot Warfare.\n"); return false; } if (level.bw_VERSION != remoteVersion) { - println("There is a new version of Bot Warfare!"); - println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!"); + println("There is a new version of Bot Warfare!\n"); + println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!\n"); return false; } - println("You are on the latest version of Bot Warfare!"); + println("You are on the latest version of Bot Warfare!\n"); return true; } diff --git a/userraw/scripts/bots_pvb.gsc b/userraw/scripts/bots_pvb.gsc index 3bef972..5d2f017 100644 --- a/userraw/scripts/bots_pvb.gsc +++ b/userraw/scripts/bots_pvb.gsc @@ -1,6 +1,62 @@ +#include maps\mp\_utility; +#include maps\mp\gametypes\_hud_util; +#include common_scripts\utility; +#include maps\mp\bots\_bot_utility; + init() { level thread onBotConnected(); + + level thread onSomeoneSaid(); + + level thread onBotSayVar(); + + level thread watchTeams(); +} + +watchTeams() +{ + for (;;) + { + wait 1; + + foreach (player in level.players) + { + if (player.team == "axis" && !player is_bot()) + player [[level.allies]](); + } + } +} + +onBotSayVar() +{ + SetDvar("bot_say", ""); + for (;;) + { + wait 0.05; + + toSay = GetDvar("bot_say"); + if (toSay == "") + continue; + + bot = random(getBotArray()); + + if (!isDefined(bot)) + continue; + + SetDvar("bot_say", ""); + bot sayall(toSay); + } +} + +onSomeoneSaid() +{ + for (;;) + { + level waittill("say", string, player); + + //PrintConsole(player.name + ": " + string + "\n"); + } } onBotConnected() @@ -21,6 +77,6 @@ setBotPing() { wait 0.05; - // self SetPing(randomIntRange(40, 60)); + //self SetPing(randomIntRange(40, 60)); } }