X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fcsqcmodel%2Fcl_model.qc;h=7f55a3c10f13b6a62518533321513a2f3fc02196;hb=f34fd47ee0a7f283ab60592a17399ec5a500416c;hp=789f115d14ac960b3c361bac06ce8229e7960e0b;hpb=3bdee6303ce762a39c2ad67a70745668ba298043;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/csqcmodel/cl_model.qc b/qcsrc/lib/csqcmodel/cl_model.qc index 789f115d1..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) @@ -300,6 +308,6 @@ entity CSQCModel_server2csqc(int i) { if (i < maxclients) return CSQCModel_players[i]; ++i; - LOG_DEBUGF("player out of bounds: %d\n", i); + LOG_DEBUGF("player out of bounds: %d", i); return findfloat(NULL, entnum, i); }