Xonotic
|
#include "ammo.qh"
#include <client/draw.qh>
#include <client/items/items.qh>
#include <client/view.qh>
#include <common/mutators/mutator/nades/nades.qh>
#include <common/resources/resources.qh>
#include <common/wepent.qh>
Go to the source code of this file.
Functions | |
void | DrawAmmoItem (vector myPos, vector mySize, Resource ammoType, bool isCurrent, bool isInfinite) |
void | DrawNadeProgressBar (vector myPos, vector mySize, float progress, vector color) |
void | HUD_Ammo () |
void | HUD_Ammo_Export (int fh) |
Variables | |
int | nade_prevframe |
int | nade_prevstatus |
float | nade_statuschange_time |
void DrawAmmoItem | ( | vector | myPos, |
vector | mySize, | ||
Resource | ammoType, | ||
bool | isCurrent, | ||
bool | isInfinite | ||
) |
Definition at line 35 of file ammo.qc.
References alpha, ammo, autocvar__hud_configure, autocvar_hud_panel_ammo_iconalign, autocvar_hud_panel_ammo_maxammo, autocvar_hud_panel_ammo_noncurrent_alpha, autocvar_hud_panel_ammo_noncurrent_scale, autocvar_hud_panel_ammo_progressbar, autocvar_hud_panel_ammo_progressbar_name, autocvar_hud_panel_ammo_progressbar_xoffset, autocvar_hud_panel_ammo_text, autocvar_hud_progressbar_alpha, bound(), DRAWFLAG_NORMAL, drawpic_aspect_skin, drawstring_aspect(), eX, eY, ftos(), GetAmmoPicture(), HUD_Panel_DrawProgressBar(), panel_fg_alpha, scale, TC, and vector().
Referenced by HUD_Ammo().
Definition at line 25 of file ammo.qc.
References autocvar_hud_panel_ammo_progressbar_name, autocvar_hud_panel_ammo_progressbar_xoffset, autocvar_hud_progressbar_alpha, DRAWFLAG_NORMAL, eX, HUD_Panel_DrawProgressBar(), and panel_fg_alpha.
void HUD_Ammo | ( | ) |
Definition at line 112 of file ammo.qc.
References AMMO_COUNT, Weapon::ammo_type, autocvar__hud_configure, autocvar_hud_panel_ammo, autocvar_hud_panel_ammo_dynamichud, autocvar_hud_panel_ammo_hide_ondeath, autocvar_hud_panel_ammo_onlycurrent, bound(), ceil(), draw_beginBoldFont, draw_endBoldFont, DrawAmmoItem(), entity(), hud, HUD_GetRowCount(), HUD_Panel_DrawBg, HUD_Panel_LoadCvars(), HUD_Scale_Disable(), HUD_Scale_Enable(), nade_prevframe, nade_prevstatus, nade_statuschange_time, panel_bg_padding, panel_pos, panel_size, spectatee_status, time, vec2, vector(), and viewmodels.
int nade_prevframe |
Definition at line 109 of file ammo.qc.
Referenced by HUD_Ammo().
int nade_prevstatus |
Definition at line 108 of file ammo.qc.
Referenced by HUD_Ammo().
float nade_statuschange_time |
Definition at line 110 of file ammo.qc.
Referenced by HUD_Ammo().