mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
ok
This commit is contained in:
parent
40ba9523b5
commit
fc7a385a06
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user