From aa93265b55ffca03f2394dd87e8ce8df6627ec2b Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 1 Mar 2012 14:24:20 +0100 Subject: [PATCH] don't spam "Frame %d missing" messages if player model is static for whatever reason --- qcsrc/client/csqcmodel_hooks.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index d7eddbcd8..8762592cd 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -243,6 +243,8 @@ float CSQCPlayer_FallbackFrame(float f) { if(frameduration(self.modelindex, f) > 0) return f; // goooooood + if(frameduration(self.modelindex, 1) <= 0) + return f; // this is a static model. We can't fix it if we wanted to switch(f) { case 23: return 11; // anim_melee -> anim_shoot -- 2.39.2