|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "itemstime.qh"Go to the source code of this file.
Macros | |
| #define | hud_panel_itemstime_hidebig autocvar_hud_panel_itemstime_hidebig |
Functions | |
| void | DrawItemsTimeItem (vector myPos, vector mySize, float ar, string item_icon, float item_time, bool item_available, float item_availableTime) |
| void | HUD_ItemsTime () |
| void | HUD_ItemsTime_Export (int fh) |
| void | IT_Write (entity e, int i, float f) |
| bool | Item_ItemsTime_Allow (GameItem it) |
| float | Item_ItemsTime_GetTime (int item) |
| void | Item_ItemsTime_ResetTimes () |
| void | Item_ItemsTime_ResetTimesForPlayer (entity e) |
| void | Item_ItemsTime_SetTime (entity e, float t) |
| void | Item_ItemsTime_SetTimesForAllPlayers () |
| void | Item_ItemsTime_SetTimesForPlayer (entity e) |
| bool | Item_ItemsTime_SpectatorOnly (GameItem it) |
| float | Item_ItemsTime_UpdateTime (entity e, float t) |
| MUTATOR_HOOKFUNCTION (itemstime, ClientConnect, CBC_ORDER_LAST) | |
| MUTATOR_HOOKFUNCTION (itemstime, MakePlayerObserver) | |
| MUTATOR_HOOKFUNCTION (itemstime, PlayerSpawn) | |
| MUTATOR_HOOKFUNCTION (itemstime, reset_map_global) | |
| NET_HANDLE (itemstime, bool isNew) | |
| REGISTER_MUTATOR (itemstime, true) | |
| STATIC_INIT (ItemsTime_Init) | |
| #define hud_panel_itemstime_hidebig autocvar_hud_panel_itemstime_hidebig |
Definition at line 53 of file itemstime.qc.
Referenced by Item_ItemsTime_SpectatorOnly().
| void DrawItemsTimeItem | ( | vector | myPos, |
| vector | mySize, | ||
| float | ar, | ||
| string | item_icon, | ||
| float | item_time, | ||
| bool | item_available, | ||
| float | item_availableTime ) |
Definition at line 207 of file itemstime.qc.
References autocvar_hud_panel_itemstime_hidespawned, autocvar_hud_panel_itemstime_iconalign, autocvar_hud_panel_itemstime_progressbar, autocvar_hud_panel_itemstime_progressbar_maxtime, autocvar_hud_panel_itemstime_progressbar_name, autocvar_hud_panel_itemstime_progressbar_reduced, autocvar_hud_panel_itemstime_text, autocvar_hud_progressbar_alpha, blink(), color, DRAWFLAG_NORMAL, drawpic_aspect_skin, drawpic_aspect_skin_expanding(), drawstring_aspect(), eX, floor(), ftos(), HUD_Panel_DrawProgressBar(), panel_fg_alpha, precache_pic(), time, vec2, and vector.
Referenced by HUD_ItemsTime().
| void HUD_ItemsTime | ( | ) |
Definition at line 287 of file itemstime.qc.
References autocvar__hud_configure, autocvar_hud_panel_itemstime, autocvar_hud_panel_itemstime_dynamicsize, autocvar_hud_panel_itemstime_hidespawned, autocvar_hud_panel_itemstime_ratio, bound(), ceil(), count, DrawItemsTimeItem(), FOREACH, hud_configure_menu_open, HUD_GetRowCount(), HUD_Panel_DrawBg, HUD_Panel_LoadCvars(), HUD_Scale_Enable(), if(), Item_ItemsTime_Allow(), Item_ItemsTime_GetTime(), ItemsTime_availableTime, max(), panel_bg_padding, panel_pos, panel_size, REGISTRY_MAX, spectatee_status, STAT, time, vec2, vector, and warmup_stage.
Definition at line 195 of file itemstime.qc.
References HUD_Write_Cvar.
Definition at line 9 of file itemstime.qc.
References entity(), IS_REAL_CLIENT, msg_entity, MSG_ONE, WriteByte(), and WriteHeader.
Referenced by Item_ItemsTime_ResetTimesForPlayer(), and Item_ItemsTime_SetTimesForPlayer().
Definition at line 66 of file itemstime.qc.
References Item_ItemsTime_SpectatorOnly().
Referenced by HUD_ItemsTime(), Item_ItemsTime_ResetTimes(), Item_ItemsTime_ResetTimesForPlayer(), Item_ItemsTime_SetTimesForPlayer(), Item_Respawn(), and Item_ScheduleRespawnIn().
Definition at line 269 of file itemstime.qc.
References autocvar__hud_configure, ItemsTime_time, and time.
Referenced by HUD_ItemsTime().
| void Item_ItemsTime_ResetTimes | ( | ) |
Definition at line 83 of file itemstime.qc.
References FOREACH, it_times, Item_ItemsTime_Allow(), and REGISTRY_MAX.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 91 of file itemstime.qc.
References entity(), FOREACH, it_times, IT_Write(), Item_ItemsTime_Allow(), and REGISTRY_MAX.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 107 of file itemstime.qc.
References autocvar_sv_itemstime, entity(), it_times, GameItem::m_id, REGISTRY_MAX, STAT, and WEPSET_SUPERWEAPONS.
Referenced by Item_Respawn(), Item_ScheduleRespawnIn(), and StartItem().
| void Item_ItemsTime_SetTimesForAllPlayers | ( | ) |
Definition at line 122 of file itemstime.qc.
References autocvar_sv_itemstime, FOREACH_CLIENT, IS_PLAYER, IS_REAL_CLIENT, Item_ItemsTime_SetTimesForPlayer(), and warmup_stage.
Referenced by Item_Respawn(), Item_ScheduleRespawnIn(), and MUTATOR_HOOKFUNCTION().
Definition at line 99 of file itemstime.qc.
References entity(), FOREACH, it_times, IT_Write(), Item_ItemsTime_Allow(), and REGISTRY_MAX.
Referenced by Item_ItemsTime_SetTimesForAllPlayers(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 58 of file itemstime.qc.
References hud_panel_itemstime_hidebig.
Referenced by Item_ItemsTime_Allow(), and Item_RespawnCountdown().
Definition at line 129 of file itemstime.qc.
References entity(), g_items, IL_EACH, STAT, time, and WEPSET_SUPERWEAPONS.
Referenced by Item_Respawn(), and Item_ScheduleRespawnIn().
| MUTATOR_HOOKFUNCTION | ( | itemstime | , |
| ClientConnect | , | ||
| CBC_ORDER_LAST | ) |
Definition at line 168 of file itemstime.qc.
References autocvar_sv_itemstime, CBC_ORDER_LAST, ClientConnect, entity(), IS_PLAYER, IS_REAL_CLIENT, Item_ItemsTime_SetTimesForPlayer(), M_ARGV, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | itemstime | , |
| MakePlayerObserver | ) |
Definition at line 161 of file itemstime.qc.
References entity(), Item_ItemsTime_SetTimesForPlayer(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | itemstime | , |
| PlayerSpawn | ) |
Definition at line 181 of file itemstime.qc.
References autocvar_sv_itemstime, entity(), Item_ItemsTime_ResetTimesForPlayer(), M_ARGV, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | itemstime | , |
| reset_map_global | ) |
Definition at line 149 of file itemstime.qc.
References g_items, IL_EACH, Item_ItemsTime_ResetTimes(), and Item_ItemsTime_SetTimesForAllPlayers().
| NET_HANDLE | ( | itemstime | , |
| bool | isNew ) |
Definition at line 23 of file itemstime.qc.
References ItemsTime_time, ReadByte(), and ReadFloat.
| REGISTER_MUTATOR | ( | itemstime | , |
| true | ) |
| STATIC_INIT | ( | ItemsTime_Init | ) |
Definition at line 34 of file itemstime.qc.
References FOREACH, ItemsTime_time, and REGISTRY_MAX.
| int autocvar_hud_panel_itemstime = 2 |
Definition at line 41 of file itemstime.qc.
Referenced by HUD_ItemsTime().
| float autocvar_hud_panel_itemstime_dynamicsize = 1 |
Definition at line 42 of file itemstime.qc.
Referenced by HUD_ItemsTime().
Definition at line 51 of file itemstime.qc.
| bool autocvar_hud_panel_itemstime_hidespawned = 1 |
Definition at line 50 of file itemstime.qc.
Referenced by DrawItemsTimeItem(), and HUD_ItemsTime().
| int autocvar_hud_panel_itemstime_iconalign |
Definition at line 45 of file itemstime.qc.
Referenced by DrawItemsTimeItem().
| bool autocvar_hud_panel_itemstime_progressbar = 0 |
Definition at line 46 of file itemstime.qc.
Referenced by DrawItemsTimeItem().
| float autocvar_hud_panel_itemstime_progressbar_maxtime = 30 |
Definition at line 47 of file itemstime.qc.
Referenced by DrawItemsTimeItem().
| string autocvar_hud_panel_itemstime_progressbar_name = "progressbar" |
Definition at line 48 of file itemstime.qc.
Referenced by DrawItemsTimeItem().
| float autocvar_hud_panel_itemstime_progressbar_reduced |
Definition at line 49 of file itemstime.qc.
Referenced by DrawItemsTimeItem().
| float autocvar_hud_panel_itemstime_ratio = 2 |
Definition at line 43 of file itemstime.qc.
Referenced by HUD_ItemsTime().
| int autocvar_hud_panel_itemstime_text = 1 |
Definition at line 52 of file itemstime.qc.
Referenced by DrawItemsTimeItem().
| float it_times[REGISTRY_MAX(Items)+1] |
Definition at line 74 of file itemstime.qc.
Referenced by Item_ItemsTime_ResetTimes(), Item_ItemsTime_ResetTimesForPlayer(), Item_ItemsTime_SetTime(), and Item_ItemsTime_SetTimesForPlayer().
| float ItemsTime_availableTime[REGISTRY_MAX(Items)+1] |
Definition at line 22 of file itemstime.qc.
Referenced by HUD_ItemsTime().
| float ItemsTime_time[REGISTRY_MAX(Items)+1] |
Definition at line 21 of file itemstime.qc.
Referenced by Item_ItemsTime_GetTime(), NET_HANDLE(), and STATIC_INIT().