diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 6f7e531b..c5009e02 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -336,8 +336,14 @@ void endmodelbatches(bool flush) VAR(dbgmbatch, 0, 0, 1); +VARP(popdeadplayers, 0, 0, 1); void rendermodel(const char *mdl, int anim, int tex, float rad, const vec &o, float yaw, float pitch, float speed, int basetime, playerent *d, modelattach *a, float scale) { + if(popdeadplayers && d && a) + { + int acv = anim&ANIM_INDEX; + if( acv == ANIM_DECAY || acv == ANIM_LYING_DEAD || acv == ANIM_CROUCH_DEATH || acv == ANIM_DEATH ) return; + } model *m = loadmodel(mdl); if(!m || (stenciling && (m->shadowdist <= 0 || anim&ANIM_TRANSLUCENT))) return;