mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
27 lines
294 B
Plaintext
27 lines
294 B
Plaintext
init()
|
|
{
|
|
level thread onBotConnected();
|
|
}
|
|
|
|
onBotConnected()
|
|
{
|
|
for (;;)
|
|
{
|
|
level waittill("bot_connected", bot);
|
|
|
|
bot thread setBotPing();
|
|
}
|
|
}
|
|
|
|
setBotPing()
|
|
{
|
|
self endon("disconnect");
|
|
|
|
for (;;)
|
|
{
|
|
wait 0.05;
|
|
|
|
// self SetPing(randomIntRange(40, 60));
|
|
}
|
|
}
|