seta hud_contents_water_color "0.4 0.3 0.3"
seta hud_shownames 1 "draw names and health/armor of nearby players"
-seta hud_shownames_enemies 1 "also draw names of enemies"
+seta hud_shownames_enemies 1 "1 = draw names of enemies you point at, 2 = draw names of all enemies in view"
seta hud_shownames_status 2 "1 = draw health/armor status of teammates, 2 = same as 1, but draw health/armor icons with a question mark on enemies in teamgames"
seta hud_shownames_height 15 "height of icons"
-seta hud_shownames_aspect 8 "aspect ratio"
-seta hud_shownames_fontsize 8 "aspect ratio"
+seta hud_shownames_aspect 8 "aspect ratio of total drawing area per name"
+seta hud_shownames_fontsize 8 "font size"
// scoreboard
seta scoreboard_columns default
// entity init, TODO can this be done only once somehow?
self.the_entnum = ReadByte(); // TODO: fixme to only send once somehow
self.draw2d = Draw_ShowNames;
+ //self.movetype = MOVETYPE_FLY; // movetype needed so we can traceline?
+ self.mins = '-20 -20 -24';
+ self.maxs = '20 20 45';
sf = ReadByte();
traceline(self.origin, view_origin, 1, self);
if(trace_endpos != view_origin)
return;
+
+ /* WIP, why does trace_ent != self not work as intended here?
+ if(autocvar_hud_shownames_enemies != 2) // player has to point at enemy if so
+ {
+ traceline(view_origin, view_origin + view_forward * MAX_SHOT_DISTANCE, MOVETYPE_FLY, world);
+ print("trace_endpos: ", vtos(trace_endpos), " view_origin: ", vtos(view_origin), "\n");
+ if(trace_ent != self)
+ return;
+ }*/
}
// draw the sprite image