]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 bd69e33246d6b3dae4593e008493f0b2582d1f63..30b700098d4a056d150ba589ce39d57b1376ff99 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)