]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Mark hardwired links as trusted. No checks for dangers will be performed while walkin...
authormand1nga <mand1nga@xonotic.org>
Tue, 23 Aug 2011 22:05:31 +0000 (19:05 -0300)
committermand1nga <mand1nga@xonotic.org>
Tue, 23 Aug 2011 22:05:31 +0000 (19:05 -0300)
qcsrc/server/bot/havocbot/havocbot.qc
qcsrc/server/bot/waypoints.qc
qcsrc/server/bot/waypoints.qh

index bc0220b19d7e36f2b804c096f76639a6d8257075..bbdb16cd2b71b89fcc607d10c95a791b222e32d9 100644 (file)
@@ -763,7 +763,7 @@ void havocbot_movetogoal()
                        // (only when the bot is on the ground or jumping intentionally)
                        self.aistatus &~= AI_STATUS_DANGER_AHEAD;
 
-                       if(trace_fraction == 1 && self.jumppadcount == 0)
+                       if(trace_fraction == 1 && self.jumppadcount == 0 && !self.goalcurrent.wphardwired )
                        if(self.flags & FL_ONGROUND || self.aistatus & AI_STATUS_RUNNING || self.BUTTON_JUMP == TRUE)
                        {
                                // Look downwards
index 8aea49be512d0b6f7dfd42e8b5d40f73585ef73f..076e969685e2c30fde561aeaddec6eab7e090420 100644 (file)
@@ -539,6 +539,8 @@ void waypoint_load_links_hardwired()
 
                ++c;
                waypoint_addlink(wp_from, wp_to);
+               wp_from.wphardwired = TRUE;
+               wp_to.wphardwired = TRUE;
        }
 
        fclose(file);
index 9c84de84bb5132085cb8e32bf3c3e12f13f4789a..1bb800fd054ac5382b1a92491c2c6bf86ee0bc4e 100644 (file)
@@ -24,7 +24,7 @@ float botframe_cachedwaypointlinks;
 .float wp16mincost, wp17mincost, wp18mincost, wp19mincost, wp20mincost, wp21mincost, wp22mincost, wp23mincost;
 .float wp24mincost, wp25mincost, wp26mincost, wp27mincost, wp28mincost, wp29mincost, wp30mincost, wp31mincost;
 
-.float wpfire, wpcost, wpconsidered, wpisbox, wpflags, wplinked;
+.float wpfire, wpcost, wpconsidered, wpisbox, wpflags, wplinked, wphardwired;
 
 .vector wpnearestpoint;