Removal of "bot_add" command. Add zpak001.pk3dir/def/bot.def
This commit is contained in:
parent
29281e8101
commit
43c7bcc03b
3 changed files with 10 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
4
zpak001.pk3dir/def/bot.def
Normal file
4
zpak001.pk3dir/def/bot.def
Normal file
|
@ -0,0 +1,4 @@
|
|||
entityDef bot
|
||||
{
|
||||
spawnclass TFCBot
|
||||
}
|
Loading…
Reference in a new issue