|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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) |
| void | Weapons_Draw (entity panel_switchweapon, WepSet weapons_stat, vector center, vector weapon_size, float aspect, float when, float fadetime, int rows, int columns, bool vertical_order) |
| void | Weapons_Fade (vector center) |
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 99 of file weapons.qc.
Referenced by Weapons_Draw().
Definition at line 64 of file weapons.qc.
References acc_col, acc_lev, acc_levels, accuracy, color, and vector.
Referenced by Scoreboard_AccuracyStats_Draw(), and Weapons_Draw().
| void Accuracy_LoadColors | ( | ) |
Definition at line 54 of file weapons.qc.
References acc_col, acc_col_loadtime, acc_levels, cvar_string(), ftos(), stov(), strcat(), and time.
Referenced by Scoreboard_AccuracyStats_Draw(), and Weapons_Draw().
| 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.
Referenced by HUD_Draw().
| void HUD_Weapons | ( | ) |
Definition at line 117 of file weapons.qc.
References autocvar__hud_configure, autocvar_cl_weaponpriority, autocvar_hud_panel_weapons, autocvar_hud_panel_weapons_complainbubble, autocvar_hud_panel_weapons_complainbubble_fadetime, autocvar_hud_panel_weapons_complainbubble_time, autocvar_hud_panel_weapons_hide_ondeath, autocvar_hud_panel_weapons_orderbyimpulse, 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_out, cl_weaponpriority_old, complain_weapon, complain_weapon_time, cvar(), entity(), fadetime, floor(), FOREACH, heapsort(), hud, HUD_NORMAL, HUD_Panel_LoadCvars(), max(), NULL, REGISTRY_COUNT, REGISTRY_MAX, spawnflags, spectatee_status, STAT, strcat(), strcpy, string_null, time, vector, viewmodels, W_FixWeaponOrder_BuildImpulseList(), W_FixWeaponOrder_ForceComplete(), W_NumberWeaponOrder(), weaponorder, weaponorder_cmp(), weaponorder_cmp_str, weaponorder_swap(), weaponprevtime, Weapons, weapons_orderbyimpulse_old, weapontime, WEP_FLAG_MUTATORBLOCKED, and WepSet_GetFromStat().
Definition at line 91 of file weapons.qc.
References entity(), m_id, pass, strstrofs, TC, weaponorder, and weaponorder_cmp_str.
Referenced by HUD_Weapons().
Definition at line 82 of file weapons.qc.
References entity(), pass, TC, and weaponorder.
Referenced by HUD_Weapons().
| void Weapons_Draw | ( | entity | panel_switchweapon, |
| WepSet | weapons_stat, | ||
| vector | center, | ||
| vector | weapon_size, | ||
| float | aspect, | ||
| float | when, | ||
| float | fadetime, | ||
| int | rows, | ||
| int | columns, | ||
| bool | vertical_order ) |
Definition at line 409 of file weapons.qc.
References Accuracy_GetColor(), Accuracy_LoadColors(), autocvar__hud_configure, 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_rockets, autocvar_hud_panel_weapons_ammo_full_shells, autocvar_hud_panel_weapons_complainbubble_color_donthave, autocvar_hud_panel_weapons_complainbubble_color_outofammo, autocvar_hud_panel_weapons_complainbubble_color_unavailable, autocvar_hud_panel_weapons_complainbubble_padding, autocvar_hud_panel_weapons_dynamichud, 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_selection_radius, autocvar_hud_panel_weapons_selection_speed, bound(), color, complain_weapon, complain_weapon_time, complain_weapon_type, drawfill, DRAWFLAG_NORMAL, drawpic_aspect_skin, drawresetcliparea(), drawsetcliparea, drawstring, drawstring_aspect(), entity(), fabs(), fadetime, frametime, ftos(), GetAmmoStat(), getcommandkey, HUD_Panel_DrawBg, HUD_Scale_Disable(), HUD_Scale_Enable(), HUD_WEAPONS_GET_FULL_LAYOUT, IT_UNLIMITED_AMMO, max(), min(), panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, STAT, stov(), strcat(), strtolower(), time, vec2, vector, weapon_accuracy, weaponorder, WEP_FIRST, WEP_FLAG_HIDDEN, WEP_FLAG_MUTATORBLOCKED, WEP_LAST, and WepSet_FromWeapon.
Definition at line 314 of file weapons.qc.
References autocvar__hud_configure, 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(), panel_bg_alpha, panel_fg_alpha, panel_pos, panel_size, time, vector, vid_conheight, vid_conwidth, weaponprevtime, and weapontime.
| string cl_weaponpriority_old |
Definition at line 115 of file weapons.qc.
Referenced by HUD_Weapons().
| entity weaponorder[REGISTRY_MAX(Weapons)] |
Definition at line 81 of file weapons.qc.
Referenced by HUD_Weapons(), W_CycleWeapon(), W_GetCycleWeapon(), weaponorder_cmp(), weaponorder_swap(), and Weapons_Draw().
| string weaponorder_cmp_str |
Definition at line 90 of file weapons.qc.
Referenced by HUD_Weapons(), and weaponorder_cmp().
| bool weapons_orderbyimpulse_old |
Definition at line 116 of file weapons.qc.
Referenced by HUD_Weapons().