Home | History | Annotate | Download | only in jni

Lines Matching refs:ent

251 	entity_t	*ent;
254 for (i=0,ent=cl_entities ; i<cl.num_entities ; i++,ent++)
257 if (!ent->model)
263 ,ent->model->name,ent->frame, ent->origin[0], ent->origin[1], ent->origin[2], ent->angles[0], ent->angles[1], ent->angles[2]);
444 entity_t *ent;
481 for (i=1,ent=cl_entities+1 ; i<cl.num_entities ; i++,ent++)
483 if (!ent->model)
485 if (ent->forcelink)
486 R_RemoveEfrags (ent); // just became empty
491 if (ent->msgtime != cl.mtime[0])
493 ent->model = NULL;
497 VectorCopy (ent->origin, oldorg);
499 if (ent->forcelink)
502 VectorCopy (ent->msg_origins[0], ent->origin);
503 VectorCopy (ent->msg_angles[0], ent->angles);
510 delta[j] = ent->msg_origins[0][j] - ent->msg_origins[1][j];
518 ent->origin[j] = ent->msg_origins[1][j] + f*delta[j];
520 d = ent->msg_angles[0][j] - ent->msg_angles[1][j];
525 ent->angles[j] = ent->msg_angles[1][j] + f*d;
531 if (ent->model->flags & EF_ROTATE)
532 ent->angles[1] = bobjrotate;
534 if (ent->effects & EF_BRIGHTFIELD)
535 R_EntityParticles (ent);
537 if (ent->effects & EF_DARKFIELD)
538 R_DarkFieldParticles (ent);
540 if (ent->effects & EF_MUZZLEFLASH)
545 VectorCopy (ent->origin, dl->origin);
547 AngleVectors (ent->angles, fv, rv, uv);
554 if (ent->effects & EF_BRIGHTLIGHT)
557 VectorCopy (ent->origin, dl->origin);
562 if (ent->effects & EF_DIMLIGHT)
565 VectorCopy (ent->origin, dl->origin);
570 if (ent->effects & EF_DARKLIGHT)
573 VectorCopy (ent->origin, dl->origin);
578 if (ent->effects & EF_LIGHT)
581 VectorCopy (ent->origin, dl->origin);
587 if (ent->model->flags & EF_GIB)
588 R_RocketTrail (oldorg, ent->origin, 2);
589 else if (ent->model->flags & EF_ZOMGIB)
590 R_RocketTrail (oldorg, ent->origin, 4);
591 else if (ent->model->flags & EF_TRACER)
592 R_RocketTrail (oldorg, ent->origin, 3);
593 else if (ent->model->flags & EF_TRACER2)
594 R_RocketTrail (oldorg, ent->origin, 5);
595 else if (ent->model->flags & EF_ROCKET)
597 R_RocketTrail (oldorg, ent->origin, 0);
599 VectorCopy (ent->origin, dl->origin);
603 else if (ent->model->flags & EF_GRENADE)
604 R_RocketTrail (oldorg, ent->origin, 1);
605 else if (ent->model->flags & EF_TRACER3)
606 R_RocketTrail (oldorg, ent->origin, 6);
608 ent->forcelink = false;
614 if ( ent->effects & EF_NODRAW )
619 cl_visedicts[cl_numvisedicts] = ent;