mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
spaces to tab
This commit is contained in:
parent
a107c7ecb0
commit
b76738ae05
@ -12,61 +12,61 @@
|
||||
|
||||
init()
|
||||
{
|
||||
if (getDvar("bots_main_menu") == "")
|
||||
setDvar("bots_main_menu", true);
|
||||
if (getDvar("bots_main_menu") == "")
|
||||
setDvar("bots_main_menu", true);
|
||||
|
||||
if (!getDvarInt("bots_main_menu"))
|
||||
return;
|
||||
|
||||
thread watchPlayers();
|
||||
|
||||
thread watchPlayers();
|
||||
}
|
||||
|
||||
watchPlayers()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
wait 1;
|
||||
for (;;)
|
||||
{
|
||||
wait 1;
|
||||
|
||||
for (i = level.players.size - 1; i >= 0; i--)
|
||||
{
|
||||
player = level.players[i];
|
||||
for (i = level.players.size - 1; i >= 0; i--)
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if (!player is_host())
|
||||
continue;
|
||||
if (!player is_host())
|
||||
continue;
|
||||
|
||||
if (isDefined(player.menuInit) && player.menuInit)
|
||||
continue;
|
||||
if (isDefined(player.menuInit) && player.menuInit)
|
||||
continue;
|
||||
|
||||
player thread init_menu();
|
||||
}
|
||||
}
|
||||
player thread init_menu();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
kill_menu()
|
||||
{
|
||||
self notify("bots_kill_menu");
|
||||
self.menuInit = undefined;
|
||||
self notify("bots_kill_menu");
|
||||
self.menuInit = undefined;
|
||||
}
|
||||
|
||||
init_menu()
|
||||
{
|
||||
self.menuInit = true;
|
||||
|
||||
|
||||
self.menuOpen = false;
|
||||
self.menu_player = undefined;
|
||||
self.SubMenu = "Main";
|
||||
self.Curs["Main"]["X"] = 0;
|
||||
self AddOptions();
|
||||
|
||||
|
||||
self thread watchPlayerOpenMenu();
|
||||
self thread MenuSelect();
|
||||
self thread RightMenu();
|
||||
self thread LeftMenu();
|
||||
self thread UpMenu();
|
||||
self thread DownMenu();
|
||||
|
||||
|
||||
self thread watchDisconnect();
|
||||
|
||||
|
||||
self thread doGreetings();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user