diff --git a/fbxa/bot_qw.qc b/fbxa/bot_qw.qc index bff3c73..5080ff2 100644 --- a/fbxa/bot_qw.qc +++ b/fbxa/bot_qw.qc @@ -266,7 +266,7 @@ BotConnect = local entity cl; local Bot bot; local bot_data_t [] name; - + cl = SV_AllocClient (); if (!cl) { bprint (PRINT_HIGH, "Unable to connect a bot, server is full.\n"); @@ -385,7 +385,6 @@ void(Waypoint e1, Waypoint e2, integer flag) DeveloperLightning = {}; b_pants = name.pants; b_shirt = name.shirt; - [self updateClient]; //b_num = I bot_count++; if (skill > 3) @@ -394,6 +393,7 @@ void(Waypoint e1, Waypoint e2, integer flag) DeveloperLightning = {}; skill = 0; b_skill = skill; ishuman = FALSE; + [self updateClient]; uself = @self; @self = ent; diff --git a/fbxa/frikbot-quakeworld.diff b/fbxa/frikbot-quakeworld.diff index 6a049e5..276bc33 100644 --- a/fbxa/frikbot-quakeworld.diff +++ b/fbxa/frikbot-quakeworld.diff @@ -79,6 +79,15 @@ diff -u -r1.4 defs.qc vector(vector v) normalize = #9; void(string e) error = #10; void(string e) objerror = #11; +@@ -534,7 +535,7 @@ + // a forent of world is ignored + void(vector v1, vector v2, float nomonsters, entity forent) traceline = #16; + entity() checkclient = #17; // returns a client to look for +-entity(entity start, .string fld, string match) find = #18; ++entity(entity start, ...) find = #18; + string(string s) precache_sound = #19; + string(string s) precache_model = #20; + void(entity client, string s)stuffcmd = #21; @@ -557,7 +558,7 @@ float(entity e) checkbottom = #40; // true if self is on ground float(vector v) pointcontents = #41; // returns a CONTENT_*