*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@964 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -10,6 +10,7 @@ CLIENT_OBJS= \
|
||||
clients2c.o \
|
||||
command.o \
|
||||
console.o \
|
||||
docs.o \
|
||||
editing.o \
|
||||
entities.o \
|
||||
hudgun.o \
|
||||
|
||||
+2
-1
@@ -139,4 +139,5 @@ void renderdoc(int x, int y)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -185,7 +185,9 @@ 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();
|
||||
|
||||
@@ -454,4 +454,5 @@ void show_out_of_renderloop_progress(float bar1, const char *text1, float bar2,
|
||||
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
SDL_GL_SwapBuffers();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -238,7 +238,13 @@ 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; }
|
||||
rendermodel(mdlname, anim, tex, 1.5f, d->o.x, d->o.y, mz, d->yaw+90, d->pitch/4, speed, basetime, d, vwepname);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
extern int democlientnum;
|
||||
|
||||
@@ -262,4 +262,5 @@ int draw_textblock(char *text, int x, int y, uint width)
|
||||
}
|
||||
}
|
||||
return numlines;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user