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
This commit is contained in:
sireus
2011-04-17 16:53:48 +00:00
parent 71eaca3221
commit 401f018b76
+1
View File
@@ -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)