mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-21 00:55:44 +00:00
readd bots
This commit is contained in:
parent
fb168485ea
commit
d269beebe9
@ -79,10 +79,8 @@ init()
|
|||||||
|
|
||||||
thread fixGamemodes();
|
thread fixGamemodes();
|
||||||
thread onPlayerConnect();
|
thread onPlayerConnect();
|
||||||
|
|
||||||
thread diffBots();
|
thread handleBots();
|
||||||
thread teamBots();
|
|
||||||
thread addBots();
|
|
||||||
|
|
||||||
thread doNonDediBots();
|
thread doNonDediBots();
|
||||||
}
|
}
|
||||||
@ -102,6 +100,21 @@ onPlayerConnect()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Starts the threads for bots.
|
||||||
|
*/
|
||||||
|
handleBots()
|
||||||
|
{
|
||||||
|
thread diffBots();
|
||||||
|
thread teamBots();
|
||||||
|
addBots();
|
||||||
|
|
||||||
|
while(!level.intermission)
|
||||||
|
wait 0.05;
|
||||||
|
|
||||||
|
setDvar("bots_manage_add", getBotArray().size);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
When a bot disconnects.
|
When a bot disconnects.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user