]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Bot AI: reset aim when bots respawn
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index 01c8222e62de1597fb561a31590f8bcb164e9b04..8ccd64b1e1eadbd29ef50c44b5503e3b8e78c2c3 100644 (file)
@@ -622,7 +622,10 @@ void PutPlayerInServer(entity this)
        this.angles = spot.angles;
        this.angles_z = 0; // never spawn tilted even if the spot says to
        if (IS_BOT_CLIENT(this))
+       {
                this.v_angle = this.angles;
+               bot_aim_reset(this);
+       }
        this.fixangle = true; // turn this way immediately
        this.oldvelocity = this.velocity = '0 0 0';
        this.avelocity = '0 0 0';