|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "ammo.qh"#include <client/draw.qh>#include <client/items/items.qh>#include <client/view.qh>#include <common/mutators/mutator/nades/_mod.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(), GetAmmoStat(), HUD_Panel_DrawProgressBar(), Resource::m_icon, 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, color, DRAWFLAG_NORMAL, eX, HUD_Panel_DrawProgressBar(), panel_fg_alpha, and vector.
Referenced by DrawAmmoNades().
| void HUD_Ammo | ( | ) |
Definition at line 108 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, ceil(), default_order_resources, draw_beginBoldFont, DrawAmmoItem(), entity(), hud, HUD_GetRowCount(), HUD_NORMAL, HUD_Panel_DrawBg, HUD_Panel_LoadCvars(), HUD_Scale_Disable(), HUD_Scale_Enable(), IL_EACH, IT_UNLIMITED_AMMO, nade_prevframe, nade_prevstatus, nade_statuschange_time, panel_bg_padding, panel_pos, panel_size, spectatee_status, STAT, time, vec2, vector, and viewmodels.
Definition at line 12 of file ammo.qc.
References HUD_Write_Cvar.
| int nade_prevframe |
Definition at line 105 of file ammo.qc.
Referenced by HUD_Ammo().
| int nade_prevstatus |
Definition at line 104 of file ammo.qc.
Referenced by HUD_Ammo().
| float nade_statuschange_time |
Definition at line 106 of file ammo.qc.
Referenced by HUD_Ammo().