Don't allow bots to move towards a dropped weapon until it's on the ground
authorterencehill <piuntn@gmail.com>
Thu, 29 Dec 2016 15:29:21 +0000 (16:29 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 29 Dec 2016 15:29:21 +0000 (16:29 +0100)
qcsrc/server/weapons/throwing.qc

index bd69e33..30b7000 100644 (file)
@@ -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)