diff --git a/source/src/md2.h b/source/src/md2.h index 63018783..0fa1900f 100644 --- a/source/src/md2.h +++ b/source/src/md2.h @@ -185,9 +185,7 @@ struct md2 : vertmodel glPushMatrix(); glTranslatef(x, y, z); glRotatef(yaw+180, 0, 0, 1); - glTranslatef(0, 0, 1.9f*scale); glRotatef(pitch, 0, -1, 0); - glTranslatef(0, 0, -1.9f*scale); if(anim&ANIM_MIRROR || scale!=1) glScalef(anim&ANIM_MIRROR ? -scale : scale, scale, scale); parts[0]->render(anim, varseed, speed, basetime, d); glPopMatrix(); diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 8ceeb02b..44c5b684 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -238,13 +238,7 @@ void renderclient(playerent *d, char *mdlname, char *vwepname, int tex) { anim = ANIM_ATTACK; speed = 300.0f/8; basetime = d->lastaction; } else if(!d->move && !d->strafe) { anim = ANIM_IDLE|ANIM_LOOP; } else { anim = ANIM_RUN|ANIM_LOOP; speed = 1860/d->maxspeed; } - - float pitch = -d->pitch/4; - int animo = ANIM_CROUCH_IDLE; - float secs = lastmillis/1000.0f; - if((int)secs%2) { pitch = 0; animo = anim; } - else { pitch = 360*(secs - (int)secs); } - rendermodel(mdlname, animo|ANIM_LOOP, tex, 1.5f, d->o.x, d->o.y, mz, d->yaw+90, -pitch/*d->pitch/4*/, speed, basetime, d, vwepname); + rendermodel(mdlname, anim, tex, 1.5f, d->o.x, d->o.y, mz, d->yaw+90, d->pitch/4, speed, basetime, d, vwepname); } extern int democlientnum;