From c8dd9aea1a618e612332cc646b33478aa9aebb34 Mon Sep 17 00:00:00 2001
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Tue, 19 Apr 2011 16:25:24 +0300
Subject: [PATCH] Attempt to fix multiplayer animation issue found in 0.5.1.
 This also fixes a dumb code I forgot there

---
 data/qcsrc/server/cl_player.qc | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/data/qcsrc/server/cl_player.qc b/data/qcsrc/server/cl_player.qc
index 3d2cf7a3..41dc8f40 100644
--- a/data/qcsrc/server/cl_player.qc
+++ b/data/qcsrc/server/cl_player.qc
@@ -218,10 +218,6 @@ float player_getspecies()
 
 void player_setupanimsformodel()
 {
-	// if this is the stomach model (or any model that can't be animated), don't attempt to animate
-	if(substring(self.model, strlen(self.model) - 3, 3) == "md3") // check model extension
-		return;
-
 	local string animfilename;
 	local float animfile;
 	// defaults for legacy .zym models without animinfo files
@@ -286,12 +282,9 @@ void player_setupanimsformodel()
 	else
 		dprint("File ", animfilename, " not found, assuming legacy .zym model animation timings\n");
 
-	// the line below is disabled due to issues with the stomach model, which cannot be animated.
-	// customizeentityforclient cannot let this part of the code know whether it's the stomach model or normal
-	// player model we're using. Attempting to animate the stomach model causes BIG issues, and must not be allowed.
-
-	// reset animstate now
-	//setanim(self, self.anim_idle, TRUE, FALSE, TRUE);
+	// if this is the stomach model (or any model that can't be animated), don't attempt to animate
+	if not(substring(self.model, strlen(self.model) - 3, 3) == "md3") // check model extension
+		setanim(self, self.anim_idle, TRUE, FALSE, TRUE);
 };
 
 void player_anim (void)
-- 
2.39.5