From 361b8d9cd6ba8dd0363b554a38dbed8b3333ee2a Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 18 Aug 2016 16:03:30 +0200 Subject: [PATCH] Update player's renderflags every frame, it fixes player's body visible for an instant when switching spectated player --- qcsrc/lib/csqcmodel/cl_model.qc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcsrc/lib/csqcmodel/cl_model.qc b/qcsrc/lib/csqcmodel/cl_model.qc index 6b8609296..7f55a3c10 100644 --- a/qcsrc/lib/csqcmodel/cl_model.qc +++ b/qcsrc/lib/csqcmodel/cl_model.qc @@ -194,6 +194,14 @@ void CSQCModel_Draw(entity this) CSQCModel_Hook_PreDraw(this, isplayer); + if(isplayer) + { + if(this.entnum == player_localentnum) + this.renderflags |= RF_EXTERNALMODEL; + else + this.renderflags &= ~RF_EXTERNALMODEL; + } + // inherit draw flags easily entity root = this; while(root.tag_entity) -- 2.39.2