]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset view angles whenever a bot respawns
authorterencehill <piuntn@gmail.com>
Tue, 25 Nov 2014 19:05:39 +0000 (20:05 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 25 Nov 2014 19:05:39 +0000 (20:05 +0100)
qcsrc/server/cl_client.qc

index 84657d6f6edba2fa1b6411420e400fa496954de3..7644895d0dc82a40fd23ea258167b2f6a498f028 100644 (file)
@@ -503,6 +503,8 @@ void PutClientInServer (void)
                self.angles = spot.angles;
 
                self.angles_z = 0; // never spawn tilted even if the spot says to
+               if(IS_BOT_CLIENT(self))
+                       self.v_angle = self.angles;
                self.fixangle = TRUE; // turn this way immediately
                self.velocity = '0 0 0';
                self.avelocity = '0 0 0';