Xonotic
|
#include "powerups.qh"
#include <client/draw.qh>
#include <common/items/_mod.qh>
#include <common/util.qh>
Go to the source code of this file.
Functions | |
void | addPowerupItem (string name, string icon, vector color, float currentTime, float lifeTime, bool isInfinite) |
int | getPowerupItemAlign (int align, int column, int row, int columns, int rows, bool isVertical) |
void | HUD_Powerups () |
void | HUD_Powerups_Export (int fh) |
void | resetPowerupItems () |
Variables | |
float | cnt |
vector | colormod |
float | count |
float | lifetime |
string | message |
string | netname |
entity | powerupItems |
int | powerupItemsCount |
void addPowerupItem | ( | string | name, |
string | icon, | ||
vector | color, | ||
float | currentTime, | ||
float | lifeTime, | ||
bool | isInfinite | ||
) |
Definition at line 38 of file powerups.qc.
References color, entity(), name, powerupItems, powerupItemsCount, and spawn().
Definition at line 58 of file powerups.qc.
References TC.
Referenced by HUD_Powerups().
void HUD_Powerups | ( | ) |
Definition at line 75 of file powerups.qc.
References autocvar__hud_configure, autocvar_hud_panel_powerups, autocvar_hud_panel_powerups_baralign, autocvar_hud_panel_powerups_dynamichud, autocvar_hud_panel_powerups_hide_ondeath, autocvar_hud_panel_powerups_iconalign, autocvar_hud_panel_powerups_progressbar, autocvar_hud_panel_powerups_text, autocvar_hud_progressbar_alpha, bound(), ceil(), draw_beginBoldFont, draw_endBoldFont, DRAWFLAG_NORMAL, DrawNumIcon(), DrawNumIcon_expanding(), entity(), fabs(), floor(), getPowerupItemAlign(), HUD_Panel_DrawBg, HUD_Panel_DrawProgressBar(), HUD_Panel_LoadCvars(), HUD_Scale_Disable(), HUD_Scale_Enable(), MUTATOR_CALLHOOK, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, powerupItems, powerupItemsCount, resetPowerupItems(), size, spectatee_status, vec2, and vector().
void resetPowerupItems | ( | ) |
Definition at line 29 of file powerups.qc.
References entity(), powerupItems, and powerupItemsCount.
Referenced by HUD_Powerups().
float cnt |
Definition at line 24 of file powerups.qc.
Referenced by _StartItem(), a_think(), AppendItemcodes(), AuxiliaryXhair_customize(), AuxiliaryXhair_Draw2D(), basketball_touch(), ClientInit_CheckUpdate(), ClientInit_misc(), ctf_SpawnTeam(), dom_controlpoint_setup(), dompoint_captured(), dompointtouch(), DragBox_Think(), football_touch(), InitBall(), kh_Controller_Think(), kh_Key_Think(), KillIndicator_Think(), Monster_Delay_Action(), NET_HANDLE(), physical_item_damage(), physical_item_think(), physical_item_touch(), PingPLReport_Think(), Portal_RemoveLater_Think(), Projectile_Draw(), Projectile_DrawTrail(), RandomSeed_Send(), RandomSeed_Think(), relocate_spawnpoint(), ResetBall(), round_handler_Init(), round_handler_Reset(), round_handler_Think(), SendAuxiliaryXhair(), spawnfunc(), target_assault_roundend_reset(), tdm_SpawnTeam(), trigger_push_findtarget(), turret_gib_draw(), vehicles_gib_think(), W_LastWeapon(), and XonoticGametypeList_loadCvars().
vector colormod |
Definition at line 21 of file powerups.qc.
Referenced by AuxiliaryXhair_Draw2D(), bot_cmd_debug_assert_canfire(), Item_SetAlpha(), physical_item_think(), PutPlayerInServer(), and vehicles_reset_colors().
float count |
Definition at line 22 of file powerups.qc.
Referenced by bot_setnameandstuff(), buff_Init(), ClientInit_CheckUpdate(), ClientInit_misc(), cpicon_send(), Ent_RemoveProjectile(), generator_send(), GENERIC_COMMAND(), havocbot_ctf_reset_role(), HUD_Notify(), Item_ItemsTime_Allow(), KillIndicator_Think(), Local_Notification(), Local_Notification_WOVA(), Monster_Delay_Action(), NET_HANDLE(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Think(), ons_GeneratorDamage(), Projectile_Draw(), round_handler_FirstThink(), round_handler_Init(), round_handler_Reset(), round_handler_Think(), score_use(), setItemGroupCount(), spawner_use(), spawnfunc(), SUB(), target_invasion_roundend_use(), waypoint_save_hardwiredlinks(), and weapon_defaultspawnfunc().
float lifetime |
Definition at line 23 of file powerups.qc.
Referenced by basketball_touch(), buff_Respawn(), buff_Think(), buff_Touch(), InitBall(), and ResetBall().
string message |
Definition at line 19 of file powerups.qc.
Referenced by checkpoint_passed(), dom_controlpoint_setup(), door_go_up(), door_reset(), GENERIC_COMMAND(), HUD_Radar(), jumppad_push(), LinkDoors(), spawnfunc(), SUB_UseTargets_Ex(), target_checkpoint_setup(), target_items_use(), train_next(), and trigger_keylock_touch().
string netname |
Definition at line 20 of file powerups.qc.
Referenced by _StartItem(), bot_cmd_debug_assert_canfire(), bot_setnameandstuff(), Buff::Buff ::display(), CallbackChain::CallbackChain ::CallbackChain(), CheatsAllowed(), ClientConnect(), ClientDisconnect(), cpicon_construct(), ctf_SpawnTeam(), findnearest(), generator_construct(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_moveto(), havocbot_movetogoal(), havocbot_role_ons_setrole(), HUD_MinigameMenu_ClickCreate_Entry(), HUD_MinigameMenu_ClickCustomEntry(), HUD_MinigameMenu_ClickInvite_Entry(), HUD_MinigameMenu_ClickJoin_Entry(), Join(), minigame_read_owner(), minigame_SendEntity(), Monster_Spawn(), navigation_goalrating_end(), navigation_shortenpath(), navigation_unstuck(), NET_HANDLE(), player_powerups(), PlayerPostThink(), PlayerPreThink(), REGISTER_ITEM(), REGISTER_RESOURCE(), sandbox_ObjectSpawn(), spawnfunc(), SV_ParseClientCommand(), target_items_use(), tdm_SpawnTeam(), turret_construct(), turret_draw2d(), and vehicle_use().
entity powerupItems |
Definition at line 26 of file powerups.qc.
Referenced by addPowerupItem(), HUD_Powerups(), and resetPowerupItems().
int powerupItemsCount |
Definition at line 27 of file powerups.qc.
Referenced by addPowerupItem(), HUD_Powerups(), and resetPowerupItems().