+.float health, armorvalue;
+void Ent_ShowNames()
+{
+ float sf, the_entnum;
+
+ sf = ReadByte();
+ the_entnum = ReadByte();
+
+ if(sf & 1)
+ {
+ playerslots[the_entnum].origin_x = ReadShort();
+ playerslots[the_entnum].origin_y = ReadShort();
+ playerslots[the_entnum].origin_z = ReadShort();
+ print("Updated origin = ", vtos(playerslots[the_entnum].origin), " for player # ", ftos(the_entnum), "\n");
+ }
+ if(sf & 2)
+ {
+ playerslots[the_entnum].health = ReadByte();
+ playerslots[the_entnum].armorvalue = ReadByte();
+ print("Updated health/armor = ", ftos(playerslots[the_entnum].health), "/", ftos(playerslots[the_entnum].health), " for player # ", ftos(the_entnum), "\n");
+ }
+ if(sf & 4)
+ playerslots[the_entnum].netname = ReadString();
+
+ /*
+ string thename;
+ float thehealth, thearmor;
+
+ if(shownames_netname)
+ strunzone(shownames_netname);
+ thename = strzone(ReadString());
+ thehealth = ReadByte();
+ thearmor = ReadByte();
+
+ if(autocvar_hud_panel_shownames == 1 && thehealth > 0) // teammates only
+ {
+ shownames_netname = thename;
+ shownames_health = thehealth;
+ shownames_armor = thearmor;
+
+ shownames_time = time + autocvar_hud_panel_shownames_sustain;
+ }
+ else if(autocvar_hud_panel_shownames == 2)
+ {
+ shownames_netname = thename;
+ shownames_health = thehealth;
+ shownames_armor = thearmor;
+
+ shownames_time = time + autocvar_hud_panel_shownames_sustain;
+ }
+ */
+}
+