From a400572be95acf882f7be66c130d32f212dbb161 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 4 Jan 2005 07:18:59 +0000 Subject: [PATCH] Removed some obsolete nq lerping code and gl particle rendering. both are cleaner and were already disabled. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@702 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_ents.c | 70 ----------------------------------------- 1 file changed, 70 deletions(-) diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index f0c7e747f..dec3c4f97 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -1266,51 +1266,7 @@ void CL_LinkPacketEntities (void) // if set to invisible, skip if (s1->modelindex<1) continue; -#if 0 - for (spnum = 0; spnum < cl.splitclients; spnum++) - { - if (s1->number == cl.viewentity[spnum]) - { -// float a1, a2; - cl.simvel[spnum][0] = 0; - cl.simvel[spnum][1] = 0; - cl.simvel[spnum][2] = 0; - - // f = 1-(realtime-cl.lerpents[s1->number].lerptime)*10; - f = 1-(cl.time-cl.lerpents[s1->number].lerptime)/cl.lerpents[s1->number].lerprate; - if (f<0)f=0; - if (f>1)f=1; - - for (i=0 ; i<3 ; i++) - cl.simorg[spnum][i] = r_refdef.vieworg[i] = s1->origin[i] + - f * (cl.lerpents[s1->number].origin[i] - s1->origin[i]); -/* - for (i=0 ; i<3 ; i++) - { - a1 = cl.lerpents[s1->number].angles[i]; - a2 = s1->angles[i]; - if (a1 - a2 > 180) - a1 -= 360; - if (a1 - a2 < -180) - a1 += 360; - cl.simangles[spnum][i] = a2 + f * (a1 - a2); - } - cl.simangles[spnum][0] = cl.simangles[spnum][0]*-3; -*/ - /*for (i=0 ; i<3 ; i++) - { - a1 = cl.lerpents[s1->number].angles[i]; - a2 = s1->angles[i]; - if (a1 - a2 > 180) - a1 -= 360; - if (a1 - a2 < -180) - a1 += 360; - cl.simangles[i] = a2 + f * (a1 - a2); - }*/ - } - } -#endif // create a new entity if (cl_numvisedicts == MAX_VISEDICTS) break; // object list is full @@ -1322,33 +1278,7 @@ void CL_LinkPacketEntities (void) continue; } - /*if (qrenderer == QR_OPENGL && model->type == mod_sprite) //more efficient strcmping - there arn't that many sprites. - { - if (gl_part_inferno.value && (model->numframes == 6 || gl_part_inferno.value==2) && !strcmp(model->name, "progs/s_explod.spr")) - { - VectorCopy (s1->origin, old_origin); - for (i=0 ; inumber) - { - VectorCopy (cl_oldvisedicts[i].origin, old_origin); - break; - } - } - for (i=0 ; i<3 ; i++) - if ( abs(old_origin[i] - s1->origin[i]) > 128) - { // no trail if too far - VectorCopy (s1->origin, old_origin); - break; - } - - - R_FlameTrail(old_origin, s1->origin, (float)s1->frame/model->numframes); - model = NULL; - } - }*/ - ent = &cl_visedicts[cl_numvisedicts]; cl_numvisedicts++; ent->visframe = 0;