no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@821 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-01-15 23:56:54 +00:00
parent 55ad2c1f68
commit b27dbf8f93
2 changed files with 14 additions and 1 deletions
+12
View File
@@ -183,6 +183,18 @@ struct md2 : vertmodel
parts[0]->render(anim, varseed, speed, basetime, d);
glPopMatrix();
if(d)
{
glPushMatrix();
glTranslatef(x, y, z);
glRotatef(yaw+180, 0, -1, 0);
glRotatef(90, -1, 0, 0);
GLUquadricObj *bb = gluNewQuadric();
gluQuadricDrawStyle(bb, GLU_LINE);
gluCylinder(bb, d->radius, d->radius, d->eyeheight + d->aboveeye, 12, 1);
glPopMatrix();
}
if(vwepmdl)
{
((md2 *)vwepmdl)->parts[0]->index = parts.length();
+2 -1
View File
@@ -496,7 +496,8 @@ void raydamage(vec &from, vec &to, playerent *d)
else if((o = intersectclosest(from, to, i, d)))
{
playerent head = *o; // check headshot
head.eyeheight = head.aboveeye/3;
head.eyeheight = head.aboveeye/4;
head.radius = 2;
if(d->gunselect == GUN_SNIPER && intersect(&head, from, to)) gdam = guns[d->gunselect].damage * 3;
hitpush(i, gdam, o, d, from, to);