mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
spaces to tab
This commit is contained in:
parent
a107c7ecb0
commit
b76738ae05
@ -12,40 +12,40 @@
|
|||||||
|
|
||||||
init()
|
init()
|
||||||
{
|
{
|
||||||
if (getDvar("bots_main_menu") == "")
|
if (getDvar("bots_main_menu") == "")
|
||||||
setDvar("bots_main_menu", true);
|
setDvar("bots_main_menu", true);
|
||||||
|
|
||||||
if (!getDvarInt("bots_main_menu"))
|
if (!getDvarInt("bots_main_menu"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
thread watchPlayers();
|
thread watchPlayers();
|
||||||
}
|
}
|
||||||
|
|
||||||
watchPlayers()
|
watchPlayers()
|
||||||
{
|
{
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
wait 1;
|
wait 1;
|
||||||
|
|
||||||
for (i = level.players.size - 1; i >= 0; i--)
|
for (i = level.players.size - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
player = level.players[i];
|
player = level.players[i];
|
||||||
|
|
||||||
if (!player is_host())
|
if (!player is_host())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (isDefined(player.menuInit) && player.menuInit)
|
if (isDefined(player.menuInit) && player.menuInit)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
player thread init_menu();
|
player thread init_menu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
kill_menu()
|
kill_menu()
|
||||||
{
|
{
|
||||||
self notify("bots_kill_menu");
|
self notify("bots_kill_menu");
|
||||||
self.menuInit = undefined;
|
self.menuInit = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
init_menu()
|
init_menu()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user