From a23d6a8564b7f6f70a578ba903384348e55f3bec Mon Sep 17 00:00:00 2001 From: flowtron Date: Sat, 5 Feb 2011 09:44:49 +0000 Subject: [PATCH] popdeadplayers git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6058 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendermodel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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;