From 78e1059007e0af26e015d8a99ba9a37110496cd0 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 25 Aug 2003 05:12:41 +0000 Subject: [PATCH] bot kicking now works --- fbxa/bot_misc.qc | 7 +++++++ fbxa/bot_qw.qc | 2 ++ fbxa/libfrikbot.h | 1 + 3 files changed, 10 insertions(+) diff --git a/fbxa/bot_misc.qc b/fbxa/bot_misc.qc index 8180a8b..dce12ba 100644 --- a/fbxa/bot_misc.qc +++ b/fbxa/bot_misc.qc @@ -117,6 +117,13 @@ Sets bot's name and colors [ty disconnect]; } +-(void)add +{ + if (!bot_array) + bot_array = [[Array alloc] init]; + [bot_array addItem: self]; +} + /* fov diff --git a/fbxa/bot_qw.qc b/fbxa/bot_qw.qc index e5b377c..e23898b 100644 --- a/fbxa/bot_qw.qc +++ b/fbxa/bot_qw.qc @@ -327,6 +327,8 @@ void () BotImpulses = if (!(self = [super initWithEntity:e])) return NIL; + [self add]; + players[cl_no] = self; b_clientno = cl_no + 1; diff --git a/fbxa/libfrikbot.h b/fbxa/libfrikbot.h index 9577700..6160799 100644 --- a/fbxa/libfrikbot.h +++ b/fbxa/libfrikbot.h @@ -137,6 +137,7 @@ typedef struct bot_data_t bot_data_t; -(integer)fov:(entity)targ; +(void)kick; +-(void)add; @end @interface Bot (Move)