Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
shownames.qh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 classfield (ShowNames) .float healthvalue
void Draw_ShowNames_All ()
 entityclass (ShowNames)

Variables

bool autocvar_hud_shownames
float autocvar_hud_shownames_alpha
bool autocvar_hud_shownames_antioverlap
float autocvar_hud_shownames_antioverlap_minalpha = 0.4
float autocvar_hud_shownames_aspect
float autocvar_hud_shownames_crosshairdistance
float autocvar_hud_shownames_crosshairdistance_antioverlap
float autocvar_hud_shownames_crosshairdistance_time
int autocvar_hud_shownames_decolorize
bool autocvar_hud_shownames_enemies
float autocvar_hud_shownames_fontsize
float autocvar_hud_shownames_maxdistance
float autocvar_hud_shownames_mindistance
float autocvar_hud_shownames_offset
bool autocvar_hud_shownames_resize
bool autocvar_hud_shownames_self
bool autocvar_hud_shownames_status
float autocvar_hud_shownames_statusbar_height
float autocvar_hud_shownames_statusbar_highlight = 1

Function Documentation

◆ classfield()

classfield ( ShowNames )

References armorvalue, and pointtime.

◆ Draw_ShowNames_All()

void Draw_ShowNames_All ( )

Definition at line 223 of file shownames.qc.

224{
225 if (!autocvar_hud_shownames) return;
226 LL_EACH(shownames_ent, true, {
228 if (!entcs)
229 {
230 make_pure(it);
231 continue;
232 }
233 make_impure(it);
236 if (!entcs.has_origin) continue;
237 if (entcs.m_entcs_private)
238 {
239 it.healthvalue = entcs.healthvalue;
241 it.sameteam = true;
242 }
243 else
244 {
245 it.healthvalue = 0;
247 it.sameteam = false;
248 }
249 bool dead = entcs_IsDead(i) || entcs_IsSpectating(i);
250 if ((!it.csqcmodel_isdead || it.alpha > 0) && entcs.origin != it.origin)
251 setorigin(it, entcs.origin);
252 it.csqcmodel_isdead = dead;
253 Draw_ShowNames(it);
254 });
255}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
bool SetResourceExplicit(entity e, Resource res_type, float amount)
Sets the resource amount of an entity without calling any hooks.
RES_ARMOR
Definition ent_cs.qc:130
bool entcs_IsDead(int i)
Definition ent_cs.qh:190
#define entcs_receiver(...)
Definition ent_cs.qh:65
#define entcs_IsSpectating(i)
Definition ent_cs.qh:76
entity entcs
Definition ent_cs.qh:34
#define LL_EACH(list, cond, body)
Definition linkedlist.qh:73
#define assert(expr,...)
Definition log.qh:8
void eprint(entity e)
#define make_impure(e)
Definition oo.qh:22
#define make_pure(e)
direct use is
Definition oo.qh:13
#define getthink(e)
LinkedList shownames_ent
Definition shownames.qc:22
void Draw_ShowNames(entity this)
Definition shownames.qc:40
bool autocvar_hud_shownames
Definition shownames.qh:3

References assert, autocvar_hud_shownames, Draw_ShowNames(), entcs, entcs_IsDead(), entcs_IsSpectating, entcs_receiver, entity(), eprint(), GetResource(), getthink, LL_EACH, make_impure, make_pure, RES_ARMOR, SetResourceExplicit(), and shownames_ent.

Referenced by CSQC_UpdateView().

◆ entityclass()

entityclass ( ShowNames )

Variable Documentation

◆ autocvar_hud_shownames

bool autocvar_hud_shownames

Definition at line 3 of file shownames.qh.

Referenced by Draw_ShowNames_All().

◆ autocvar_hud_shownames_alpha

float autocvar_hud_shownames_alpha

Definition at line 15 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_antioverlap

bool autocvar_hud_shownames_antioverlap

Definition at line 19 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_antioverlap_minalpha

float autocvar_hud_shownames_antioverlap_minalpha = 0.4

Definition at line 20 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_aspect

float autocvar_hud_shownames_aspect

Definition at line 12 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_crosshairdistance

float autocvar_hud_shownames_crosshairdistance

Definition at line 5 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_crosshairdistance_antioverlap

float autocvar_hud_shownames_crosshairdistance_antioverlap

Definition at line 7 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_crosshairdistance_time

float autocvar_hud_shownames_crosshairdistance_time

Definition at line 6 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_decolorize

int autocvar_hud_shownames_decolorize

Definition at line 14 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_enemies

bool autocvar_hud_shownames_enemies

Definition at line 4 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_fontsize

float autocvar_hud_shownames_fontsize

Definition at line 13 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_maxdistance

float autocvar_hud_shownames_maxdistance

Definition at line 18 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_mindistance

float autocvar_hud_shownames_mindistance

Definition at line 17 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_offset

float autocvar_hud_shownames_offset

Definition at line 21 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_resize

bool autocvar_hud_shownames_resize

Definition at line 16 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_self

bool autocvar_hud_shownames_self

Definition at line 8 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_status

bool autocvar_hud_shownames_status

Definition at line 9 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_statusbar_height

float autocvar_hud_shownames_statusbar_height

Definition at line 10 of file shownames.qh.

Referenced by Draw_ShowNames().

◆ autocvar_hud_shownames_statusbar_highlight

float autocvar_hud_shownames_statusbar_highlight = 1

Definition at line 11 of file shownames.qh.

Referenced by Draw_ShowNames().