Removal of "bot_add" command. Add zpak001.pk3dir/def/bot.def

This commit is contained in:
Marco Cawthorne 2024-01-26 20:52:33 -08:00
parent 29281e8101
commit 43c7bcc03b
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
3 changed files with 10 additions and 20 deletions

View File

@ -1,15 +1,19 @@
class
TFCBot:bot
TFCBot:NSBot
{
void TFCBot(void);
//virtual void CreateObjective(void);
};
void CSEv_TeamJoin_f(float f);
void CSEv_ClassJoin_f(float f);
void
TFCBot::TFCBot(void)
{
CSEv_TeamJoin_f(0);
CSEv_ClassJoin_f(0);
}
#if 0

View File

@ -14,17 +14,6 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
void CSEv_TeamJoin_f(float f);
void CSEv_ClassJoin_f(float f);
void
TFCGameRules_BotJoin(void)
{
spawnfunc_TFCBot();
CSEv_TeamJoin_f(0);
CSEv_ClassJoin_f(0);
}
void
TFCGameRules::TFCGameRules(void)
{
@ -46,13 +35,6 @@ TFCGameRules::ConsoleCommand(NSClientPlayer pp, string cmd)
tokenize(cmd);
switch (argv(0)) {
case "bot_add":
entity bot_ent = Bot_AddQuick();
if (bot_ent) {
bot_ent.think = TFCGameRules_BotJoin;
bot_ent.nextthink = time;
}
break;
default:
return (false);
}

View File

@ -0,0 +1,4 @@
entityDef bot
{
spawnclass TFCBot
}