From 401f018b769792359787f22f8a22858a4fef4877 Mon Sep 17 00:00:00 2001 From: sireus Date: Sun, 17 Apr 2011 16:53:48 +0000 Subject: [PATCH] use ANIM_REVERSE for playermodels going backward git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6273 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendermodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index c5009e02..e7848f73 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -607,6 +607,7 @@ void renderclient(playerent *d, const char *mdlname, const char *vwepname, int t else if(d->weaponsel==d->lastattackweapon && lastmillis-d->lastaction<300 && d->lastpain < d->lastaction) { anim = d->crouching ? ANIM_CROUCH_ATTACK : ANIM_ATTACK; speed = 300.0f/8; basetime = d->lastaction; } else if(!d->move && !d->strafe) { anim = (d->crouching ? ANIM_CROUCH_IDLE : ANIM_IDLE)|ANIM_LOOP; } else { anim = (d->crouching ? ANIM_CROUCH_WALK : ANIM_RUN)|ANIM_LOOP; speed = 1860/d->maxspeed; } + if(d->move < 0) anim |= ANIM_REVERSE; modelattach a[3]; int numattach = 0; if(vwepname)