]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix frozen monsters falling into the floor
authorMario <mario.mario@y7mail.com>
Sun, 15 Sep 2013 07:24:55 +0000 (17:24 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 15 Sep 2013 07:24:55 +0000 (17:24 +1000)
qcsrc/common/monsters/sv_monsters.qc

index eb8dd33c70e5fa73e90f15067f5275c3ec271b22..fe2f0a40f99dd4ddbf3fe7662fa032d8b6f13947 100644 (file)
@@ -539,10 +539,16 @@ void monster_move(float runspeed, float walkspeed, float stopspeed, float manim_
                self.SendFlags |= MSF_STATUS;
 
                movelib_beak_simple(stopspeed);
+               
+               monsters_setframe(manim_idle);
 
-               self.velocity = '0 0 0';
+               if(vlen(self.velocity) > 0)
+               {
+                       self.velocity = '0 0 0';
+                       self.SendFlags |= MSF_MOVE;
+               }
                self.enemy = world;
-               self.nextthink = time + 0.1;
+               self.nextthink = time + self.ticrate;
 
                if(self.revive_progress >= 1)
                        Unfreeze(self); // wait for next think before attacking