From 8098f4b88bf42397d31ad89060394234662d3b94 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 18 Oct 2008 09:53:06 +0000 Subject: [PATCH] give death animation more time to play git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3127 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendermodel.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index fc531c52..4e4c952c 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -576,18 +576,17 @@ void renderclient(playerent *d, const char *mdlname, const char *vwepname, int t if(d==player1 && d->allowmove()) return; loopv(bounceents) if(bounceents[i]->bouncetype==BT_GIB && bounceents[i]->owner==d) return; d->pitch = 0.1f; - int r = 6; anim = ANIM_DEATH; varseed += d->lastpain; basetime = d->lastpain; int t = lastmillis-d->lastpain; if(t<0 || t>20000) return; - if(t>(r-1)*100-50) + if(t>1000) { anim = ANIM_LYING_DEAD|ANIM_NOINTERP|ANIM_LOOP; - if(t>(r+10)*100) + if(t>1600) { - t -= (r+10)*100; + t -= 1600; o.z -= t*t/10000000000.0f*t; } }