From: terencehill Date: Thu, 29 Dec 2016 15:29:21 +0000 (+0100) Subject: Don't allow bots to move towards a dropped weapon until it's on the ground X-Git-Tag: xonotic-v0.8.2~343^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a2f0257cfc2dad39ddd1565b014dd8563e231bc;p=xonotic%2Fxonotic-data.pk3dir.git Don't allow bots to move towards a dropped weapon until it's on the ground --- diff --git a/qcsrc/server/weapons/throwing.qc b/qcsrc/server/weapons/throwing.qc index bd69e3324..30b700098 100644 --- a/qcsrc/server/weapons/throwing.qc +++ b/qcsrc/server/weapons/throwing.qc @@ -19,7 +19,10 @@ void thrown_wep_think(entity this) { this.SendFlags |= ISF_LOCATION; this.oldorigin = this.origin; + this.bot_pickup = false; } + else + this.bot_pickup = true; this.owner = NULL; float timeleft = this.savenextthink - time; if(timeleft > 1)