-.float healthvalue, armorvalue, isactive, sameteam;
-void Ent_ShowNames()
-{
- float sf, the_entnum;
-
- sf = ReadByte();
- the_entnum = ReadByte();
-
- if(sf & 4) // entity is out of range/culled by pvs, i.e. we do not need any origin/status info, only the knowledge that we should ignore this ent
- {
- playerslots[the_entnum-1].isactive = FALSE;
- return;
- }
- playerslots[the_entnum-1].isactive = TRUE; // otherwise, player is in range
-
- if(sf & 1)
- {
- playerslots[the_entnum-1].origin_x = ReadShort();
- playerslots[the_entnum-1].origin_y = ReadShort();
- playerslots[the_entnum-1].origin_z = ReadShort();
- }
- if(sf & 2)
- {
- playerslots[the_entnum-1].healthvalue = ReadByte();
- playerslots[the_entnum-1].armorvalue = ReadByte();
- }
-
- if(sf & 128) // same team
- playerslots[the_entnum-1].sameteam = TRUE;
- else
- playerslots[the_entnum-1].sameteam = FALSE;
-}
-