From 8622c2ce819db87161dcdc9958468f51fe7ba710 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 14 Feb 2017 15:48:58 +0100 Subject: [PATCH] Remove an item about to spawn as goal if somebody else picked it up before bot reaches it --- qcsrc/server/bot/default/navigation.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index bfc72d60f..5d612e10f 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -946,7 +946,10 @@ void navigation_poptouchedgoals(entity this) if(this.goalcurrent.bot_pickup_respawning) { if(!this.goalcurrent.solid) - return; + { + if(time > this.goalcurrent.scheduledrespawntime - 10) // item not yet taken (by someone else) + return; // wait for item to respawn + } this.goalcurrent.bot_pickup_respawning = false; } -- 2.39.2