X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=blobdiff_plain;f=data%2Fqcsrc%2Fserver%2Fcl_player.qc;h=41dc8f40dca6a1dba7f53d1ab1e7abd1987302a2;hp=36542cf7a760f29c6e0363399b7386803bf3008a;hb=c8dd9aea1a618e612332cc646b33478aa9aebb34;hpb=86c29ef22161f4fc4eb93a89cf46dfd6870613a7 diff --git a/data/qcsrc/server/cl_player.qc b/data/qcsrc/server/cl_player.qc index 36542cf7..41dc8f40 100644 --- a/data/qcsrc/server/cl_player.qc +++ b/data/qcsrc/server/cl_player.qc @@ -282,16 +282,17 @@ 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) { + // 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; + updateanim(self); if (self.weaponentity) updateanim(self.weaponentity); @@ -745,7 +746,6 @@ void ClearSelectedPlayer() } } -.float dropweapon_check; void UpdateSelectedPlayer() { entity selected;