Xonotic
|
#include "shownames.qh"
#include <client/draw.qh>
#include <client/hud/_mod.qh>
#include <client/view.qh>
#include <common/constants.qh>
#include <common/ent_cs.qh>
#include <common/net_linked.qh>
#include <common/resources/cl_resources.qh>
#include <common/teams.qh>
#include <lib/csqcmodel/cl_model.qh>
Go to the source code of this file.
Macros | |
#define | OFF_SCREEN(o) (o.z < 0 || o.x < 0 || o.y < 0 || o.x > vid_conwidth || o.y > vid_conheight) |
Functions | |
void | Draw_ShowNames (entity this) |
void | Draw_ShowNames_All () |
STATIC_INIT (shownames_ent) | |
Variables | |
vector | box_ofs |
vector | box_org |
LinkedList | shownames_ent |
const float | SHOWNAMES_FADEDELAY = 0 |
const float | SHOWNAMES_FADESPEED = 4 |
#define OFF_SCREEN | ( | o | ) | (o.z < 0 || o.x < 0 || o.y < 0 || o.x > vid_conwidth || o.y > vid_conheight) |
Referenced by Draw_ShowNames().
Definition at line 40 of file shownames.qc.
References alpha, autocvar_chase_active, autocvar_hud_panel_healtharmor_maxarmor, autocvar_hud_panel_healtharmor_maxhealth, autocvar_hud_shownames_alpha, autocvar_hud_shownames_antioverlap, autocvar_hud_shownames_antioverlap_minalpha, autocvar_hud_shownames_aspect, autocvar_hud_shownames_crosshairdistance, autocvar_hud_shownames_crosshairdistance_antioverlap, autocvar_hud_shownames_crosshairdistance_time, autocvar_hud_shownames_decolorize, autocvar_hud_shownames_enemies, autocvar_hud_shownames_fontsize, autocvar_hud_shownames_maxdistance, autocvar_hud_shownames_mindistance, autocvar_hud_shownames_offset, autocvar_hud_shownames_resize, autocvar_hud_shownames_self, autocvar_hud_shownames_status, autocvar_hud_shownames_statusbar_height, autocvar_hud_shownames_statusbar_highlight, box_ofs, box_org, boxesoverlap(), csqcmodel_isdead, current_player, drawcolorcodedstring(), drawfill(), DRAWFLAG_NORMAL, drawfontscale, entity(), eX, eY, eZ, frametime, GetResource(), HUD_Panel_DrawProgressBar(), LL_EACH, M_ARGV, max(), min(), MOVE_NOMONSTERS, MUTATOR_CALLHOOK, NULL, OFF_SCREEN, origin, player_localentnum, project_3d_to_2d(), SHOWNAMES_FADEDELAY, SHOWNAMES_FADESPEED, spectatee_status, spectatee_status_changed_time, stringwidth, sv_entnum, teamplay, textShortenToWidth(), time, trace_ent, trace_fraction, trace_networkentity, vdist, vec2, vector(), vid_conheight, vid_conwidth, view_origin, vlen(), and vlen2.
Referenced by Draw_ShowNames_All().
void Draw_ShowNames_All | ( | ) |
Definition at line 220 of file shownames.qc.
References assert, autocvar_hud_shownames, Draw_ShowNames(), entity(), eprint(), GetResource(), getthink, LL_EACH, make_impure, make_pure, setorigin(), and SetResourceExplicit().
Referenced by CSQC_UpdateView().
STATIC_INIT | ( | shownames_ent | ) |
Definition at line 23 of file shownames.qc.
References entity(), LL_NEW, LL_PUSH(), maxclients, and new_pure.
vector box_ofs |
Definition at line 35 of file shownames.qc.
Referenced by Draw_ShowNames().
vector box_org |
Definition at line 36 of file shownames.qc.
Referenced by Draw_ShowNames().
LinkedList shownames_ent |
Definition at line 22 of file shownames.qc.
const float SHOWNAMES_FADEDELAY = 0 |
Definition at line 39 of file shownames.qc.
Referenced by Draw_ShowNames().
const float SHOWNAMES_FADESPEED = 4 |
Definition at line 38 of file shownames.qc.
Referenced by Draw_ShowNames().