Xonotic
|
#include "weapons.qh"
#include <client/draw.qh>
#include <client/view.qh>
#include <common/wepent.qh>
Go to the source code of this file.
Macros | |
#define | HUD_WEAPONS_GET_FULL_LAYOUT() |
Functions | |
vector | Accuracy_GetColor (float accuracy) |
void | Accuracy_LoadColors () |
void | Accuracy_LoadLevels () |
void | HUD_Weapons () |
void | HUD_Weapons_Export (int fh) |
int | weaponorder_cmp (int i, int j, entity pass) |
void | weaponorder_swap (int i, int j, entity pass) |
Variables | |
string | cl_weaponpriority_old |
entity | weaponorder [REGISTRY_MAX(Weapons)] |
string | weaponorder_cmp_str |
bool | weapons_orderbyimpulse_old |
#define HUD_WEAPONS_GET_FULL_LAYOUT | ( | ) |
Definition at line 104 of file weapons.qc.
Referenced by HUD_Weapons().
Definition at line 67 of file weapons.qc.
References acc_col, acc_lev, acc_levels, color, and vector().
Referenced by HUD_Weapons().
void Accuracy_LoadColors | ( | ) |
Definition at line 55 of file weapons.qc.
References acc_col, acc_col_loadtime, acc_levels, cvar_string(), ftos(), stov(), strcat(), and time.
Referenced by HUD_Weapons().
void Accuracy_LoadLevels | ( | ) |
Definition at line 38 of file weapons.qc.
References acc_color_levels, acc_lev, acc_levels, argv(), autocvar_accuracy_color_levels, LOG_INFO, MAX_ACCURACY_LEVELS, stof(), strcpy, and tokenize_console.
void HUD_Weapons | ( | ) |
Definition at line 119 of file weapons.qc.
References Accuracy_GetColor(), Accuracy_LoadColors(), autocvar__hud_configure, autocvar_cl_weaponpriority, autocvar_hud_panel_weapons, autocvar_hud_panel_weapons_accuracy, autocvar_hud_panel_weapons_ammo, autocvar_hud_panel_weapons_ammo_alpha, autocvar_hud_panel_weapons_ammo_color, autocvar_hud_panel_weapons_ammo_full_cells, autocvar_hud_panel_weapons_ammo_full_fuel, autocvar_hud_panel_weapons_ammo_full_nails, autocvar_hud_panel_weapons_ammo_full_plasma, autocvar_hud_panel_weapons_ammo_full_rockets, autocvar_hud_panel_weapons_ammo_full_shells, autocvar_hud_panel_weapons_aspect, autocvar_hud_panel_weapons_complainbubble, autocvar_hud_panel_weapons_complainbubble_fadetime, autocvar_hud_panel_weapons_complainbubble_time, autocvar_hud_panel_weapons_dynamichud, autocvar_hud_panel_weapons_hide_ondeath, autocvar_hud_panel_weapons_label, autocvar_hud_panel_weapons_label_scale, autocvar_hud_panel_weapons_noncurrent_alpha, autocvar_hud_panel_weapons_noncurrent_scale, autocvar_hud_panel_weapons_onlyowned, autocvar_hud_panel_weapons_orderbyimpulse, autocvar_hud_panel_weapons_selection_radius, autocvar_hud_panel_weapons_selection_speed, autocvar_hud_panel_weapons_timeout, autocvar_hud_panel_weapons_timeout_effect, autocvar_hud_panel_weapons_timeout_fadebgmin, autocvar_hud_panel_weapons_timeout_fadefgmin, autocvar_hud_panel_weapons_timeout_speed_in, autocvar_hud_panel_weapons_timeout_speed_out, bound(), ceil(), cl_weaponpriority_old, color, complain_weapon, complain_weapon_time, complain_weapon_type, cvar(), DRAWFLAG_NORMAL, drawpic_aspect_skin, drawresetcliparea(), drawsetcliparea(), drawstring(), entity(), fabs(), floor(), FOREACH, frametime, ftos(), getcommandkey, heapsort(), hud, hud_configure_menu_open, HUD_Panel_DrawBg, HUD_Panel_LoadCvars(), HUD_Scale_Disable(), HUD_Scale_Enable(), HUD_WEAPONS_GET_FULL_LAYOUT, max(), min(), NULL, panel_bg_alpha, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, REGISTRY_COUNT, REGISTRY_MAX, spawnflags, spectatee_status, stov(), strcat(), strcpy, string_null, time, vec2, vector(), vid_conheight, vid_conwidth, viewmodels, W_FixWeaponOrder_BuildImpulseList(), W_FixWeaponOrder_ForceComplete(), W_NumberWeaponOrder(), weapon_accuracy, weaponorder, weaponorder_cmp(), weaponorder_cmp_str, weaponorder_swap(), weaponprevtime, weapons_orderbyimpulse_old, weapontime, WEP_FIRST, WEP_FLAG_HIDDEN, WEP_FLAG_MUTATORBLOCKED, WEP_FLAG_SPECIALATTACK, WEP_LAST, and WepSet_FromWeapon.
Definition at line 96 of file weapons.qc.
References m_id, strstrofs, TC, weaponorder, and weaponorder_cmp_str.
Referenced by HUD_Weapons().
Definition at line 87 of file weapons.qc.
References entity(), TC, and weaponorder.
Referenced by HUD_Weapons().
string cl_weaponpriority_old |
Definition at line 117 of file weapons.qc.
Referenced by HUD_Weapons().
entity weaponorder[REGISTRY_MAX(Weapons)] |
Definition at line 86 of file weapons.qc.
Referenced by HUD_Weapons(), W_GetCycleWeapon(), weaponorder_cmp(), and weaponorder_swap().
string weaponorder_cmp_str |
Definition at line 95 of file weapons.qc.
Referenced by HUD_Weapons(), and weaponorder_cmp().
bool weapons_orderbyimpulse_old |
Definition at line 118 of file weapons.qc.
Referenced by HUD_Weapons().