Home | History | Annotate | Download | only in WinQuake

Lines Matching refs:ent

124 	int			ent;
150 ent = NUM_FOR_EDICT(entity);
152 channel = (ent<<3) | channel;
245 edict_t *ent;
258 ent = EDICT_NUM(edictnum);
271 client->edict = ent;
434 edict_t *ent;
441 ent = NEXT_EDICT(sv.edicts);
442 for (e=1 ; e<sv.num_edicts ; e++, ent = NEXT_EDICT(ent))
446 if (ent->u.v.effects == EF_NODRAW)
451 if (ent != clent) // clent is ALLWAYS sent
454 if (!ent->u.v.modelindex || !pr_strings[ent->u.v.model])
457 for (i=0 ; i < ent->num_leafs ; i++)
458 if (pvs[ent->leafnums[i] >> 3] & (1 << (ent->leafnums[i]&7) ))
461 if (i == ent->num_leafs)
476 miss = ent->u.v.origin[i] - ent->baseline.origin[i];
481 if ( ent->u.v.angles[0] != ent->baseline.angles[0] )
484 if ( ent->u.v.angles[1] != ent->baseline.angles[1] )
487 if ( ent->u.v.angles[2] != ent->baseline.angles[2] )
490 if (ent->u.v.movetype == MOVETYPE_STEP)
493 if (ent->baseline.colormap != ent->u.v.colormap)
496 if (ent->baseline.skin != ent->u.v.skin)
499 if (ent->baseline.frame != ent->u.v.frame)
502 if (ent->baseline.effects != ent->u.v.effects)
505 if (ent->baseline.modelindex != ent->u.v.modelindex)
527 MSG_WriteByte (msg, (int) ent->u.v.modelindex);
529 MSG_WriteByte (msg, (int) ent->u.v.frame);
531 MSG_WriteByte (msg, (int) ent->u.v.colormap);
533 MSG_WriteByte (msg, (int) ent->u.v.skin);
535 MSG_WriteByte (msg, (int) ent->u.v.effects);
537 MSG_WriteCoord (msg, ent->u.v.origin[0]);
539 MSG_WriteAngle(msg, ent->u.v.angles[0]);
541 MSG_WriteCoord (msg, ent->u.v.origin[1]);
543 MSG_WriteAngle(msg, ent->u.v.angles[1]);
545 MSG_WriteCoord (msg, ent->u.v.origin[2]);
547 MSG_WriteAngle(msg, ent->u.v.angles[2]);
560 edict_t *ent;
562 ent = NEXT_EDICT(sv.edicts);
563 for (e=1 ; e<sv.num_edicts ; e++, ent = NEXT_EDICT(ent))
565 ent->u.v.effects = (int)ent->u.v.effects & ~EF_MUZZLEFLASH;
576 void SV_WriteClientdataToMessage (edict_t *ent, sizebuf_t *msg)
589 if (ent->u.v.dmg_take || ent->u.v.dmg_save)
591 other = PROG_TO_EDICT(ent->u.v.dmg_inflictor);
593 MSG_WriteByte (msg, (int) ent->u.v.dmg_save);
594 MSG_WriteByte (msg, (int) ent->u.v.dmg_take);
598 ent->u.v.dmg_take = 0;
599 ent->u.v.dmg_save = 0;
608 if ( ent->u.v.fixangle )
612 MSG_WriteAngle (msg, ent->u.v.angles[i] );
613 ent->u.v.fixangle = 0;
618 if (ent->u.v.view_ofs[2] != DEFAULT_VIEWHEIGHT)
621 if (ent->u.v.idealpitch)
627 items = (int)ent->u.v.items | ((int)ent->u.v.items2 << 23);
629 val = GetEdictFieldValue(ent, "items2");
632 items = (int)ent->u.v.items | ((int)val->_float << 23);
634 items = (int)ent->u.v.items | ((int)pr_global_struct->serverflags << 28);
639 if ( (int)ent->u.v.flags & FL_ONGROUND)
642 if ( ent->u.v.waterlevel >= 2)
647 if (ent->u.v.punchangle[i])
649 if (ent->u.v.velocity[i])
653 if (ent->u.v.weaponframe)
656 if (ent->u.v.armorvalue)
659 // if (ent->u.v.weapon)
668 MSG_WriteChar (msg, (int) ent->u.v.view_ofs[2]);
671 MSG_WriteChar (msg, (int) ent->u.v.idealpitch);
676 MSG_WriteChar (msg, (int) ent->u.v.punchangle[i]);
678 MSG_WriteChar (msg, (int) ent->u.v.velocity[i]/16);
685 MSG_WriteByte (msg, (int) ent->u.v.weaponframe);
687 MSG_WriteByte (msg, (int) ent->u.v.armorvalue);
689 MSG_WriteByte (msg, SV_ModelIndex(pr_strings+ent->u.v.weaponmodel));
691 MSG_WriteShort (msg, (int) ent->u.v.health);
692 MSG_WriteByte (msg, (int) ent->u.v.currentammo);
693 MSG_WriteByte (msg, (int) ent->u.v.ammo_shells);
694 MSG_WriteByte (msg, (int) ent->u.v.ammo_nails);
695 MSG_WriteByte (msg, (int) ent->u.v.ammo_rockets);
696 MSG_WriteByte (msg, (int) ent->u.v.ammo_cells);
700 MSG_WriteByte (msg, (int) ent->u.v.weapon);
706 if ( ((int)ent->u.v.weapon) & (1<<i) )
1050 edict_t *ent;
1119 ent = EDICT_NUM(i+1);
1120 svs.clients[i].edict = ent;
1157 ent = EDICT_NUM(0);
1158 memset (&ent->u.v, 0, progs->entityfields * 4);
1159 ent->free = false;
1160 ent->u.v.model = sv.worldmodel->name - pr_strings;
1161 ent->u.v.modelindex = 1; // world model
1162 ent->u.v.solid = SOLID_BSP;
1163 ent->u.v.movetype = MOVETYPE_PUSH;