|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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, spawn, and vector.
Referenced by StatusEffect::m_tick().
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, STAT, vec2, and vector.
Definition at line 9 of file powerups.qc.
References HUD_Write_Cvar.
| 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 a_think(), AppendItemcodes(), AuxiliaryXhair_customize(), AuxiliaryXhair_Draw2D(), basketball_touch(), beam_think(), bumble_raygun_send(), Casing_Draw(), classfield(), classfield(), ClientInit_CheckUpdate(), ClientInit_misc(), ctf_SpawnTeam(), DamageEffect_Think(), dom_controlpoint_setup(), dompoint_captured(), dompointtouch(), DragBox_Think(), Draw_GrapplingHook(), football_touch(), func_breakable_destroy(), func_breakable_setup(), func_pendulum_controller_think(), GameType_GetIcon(), GameType_GetID(), GameType_GetName(), Gib_Draw(), Gib_Touch(), InitBall(), Item_CopyFields(), ka_BallThink_Carried(), ka_TouchEvent(), kh_Controller_Think(), kh_Key_Think(), KillIndicator_Think(), laser_SendEntity(), M_Golem_Attack_Lightning_Think(), ModelEffect_Draw(), Monster_Delay_Action(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), physical_item_damage(), physical_item_think(), physical_item_touch(), PingPLReport_Think(), pointparticles_SendEntity(), Portal_RemoveLater_Think(), Projectile_Draw(), Projectile_DrawTrail(), racer_deadtouch(), racer_rocket_groundhugger(), racer_rocket_tracker(), rainsnow_SendEntity(), RandomSeed_Send(), RandomSeed_Think(), raptor_bomb_burst(), RaptorCBShellfragDraw(), relay_activators_use(), relocate_spawnpoint(), ResetBall(), round_handler_Init(), round_handler_Reset(), round_handler_Think(), SendAuxiliaryXhair(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spiderbot_blowup(), spiderbot_headfade(), spiderbot_rocket_guided(), spiderbot_rocket_unguided(), StartItem(), target_assault_roundend_reset(), target_levelwarp_use(), target_push_send(), tdm_SpawnTeam(), teleport_dest_send(), tka_BallThink_Carried(), tka_TouchEvent(), tmayhem_SpawnTeam(), trigger_gravity_touch(), turret_gib_draw(), turret_hk_missile_think(), turret_targettrigger_touch(), vehicles_gib_think(), viewloc_send(), Violence_GibSplash_SendEntity(), W_Arc_Bolt_Touch(), W_Crylink_Touch(), W_Devastator_Think(), W_Fireball_Damage(), W_Fireball_Explode(), W_Fireball_Firemine_Think(), W_Fireball_Think(), W_Hagar_Touch2(), W_LastWeapon(), W_MineLayer_Stick(), W_MineLayer_Think(), W_Mortar_Grenade_Think1(), W_OverkillRocketPropelledChainsaw_Think(), W_Porto_Fail(), W_Porto_Touch(), W_Seeker_Missile_Think(), W_Seeker_Vollycontroller_Think(), W_Shotgun_Melee_Think(), W_Tuba_NoteOff(), W_Tuba_NoteSendEntity(), walker_rocket_think(), WaypointSprite_SendEntity(), and XonoticGametypeList_loadCvars().
| vector colormod |
Definition at line 21 of file powerups.qc.
Referenced by AuxiliaryXhair_Draw2D(), bot_cmd_debug_assert_canfire(), bumble_raygun_draw(), classfield(), cpicon_damage(), cpicon_draw(), func_breakable_colormod(), ItemDraw(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), orb_draw2d(), orb_send(), physical_item_think(), Projectile_DrawTrail(), PutPlayerInServer(), racer_blowup(), raptor_blowup(), spawnfunc(), spawnfunc(), vehicles_reset_colors(), and WaypointSprite_SendEntity().
| float count |
Definition at line 22 of file powerups.qc.
Referenced by bot_setnameandstuff(), buff_Init(), classfield(), ClientInit_CheckUpdate(), ClientInit_misc(), counter_use(), cpicon_send(), Ent_RemoveProjectile(), func_breakable_destroy(), func_breakable_setup(), generator_draw(), generator_send(), havocbot_ctf_reset_role(), HUD_ItemsTime(), HUD_Notify(), jumppad_push(), KillIndicator_Think(), Local_Notification(), misc_laser_think(), Monster_Delay_Action(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Think(), ons_generator_ray_draw(), ons_GeneratorDamage(), Pickup_Update(), PlayerStats_PlayerDetail_Handler(), pointparticles_SendEntity(), Projectile_Draw(), rainsnow_SendEntity(), round_handler_FirstThink(), round_handler_Init(), round_handler_Reset(), round_handler_Think(), score_use(), Send_Notification(), setItemGroupCount(), spawner_use(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), target_changelevel_use(), target_invasion_roundend_use(), target_spawn_cancreate(), trigger_gravity_check_think(), trigger_push_velocity_calculatevelocity(), trigger_push_velocity_send(), trigger_relay_if_use(), void(), void(), W_Devastator_Think(), 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(), classfield(), Draw_WaypointSprite(), Ent_WaypointSprite(), FireImoBeam(), InitBall(), ModelEffect_Draw(), Remove_Countdown(), ResetBall(), target_music_sendto(), void(), W_Blaster_Think(), W_Devastator_Attack(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Fireball_Attack1(), W_Fireball_Attack2(), W_Hagar_Attack(), W_HLAC_Attack(), W_HLAC_Attack2(), W_Hook_Attack2(), W_MineLayer_Attack(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillRocketPropelledChainsaw_Attack(), and W_Porto_Attack().
| string message |
Definition at line 19 of file powerups.qc.
Referenced by DebugText3d::~DebugText3d(), DebugText3d::ATTRIB(), Gametype::ATTRIB(), Mutator::ATTRIB(), checkpoint_passed(), DebugText3d::DebugText3d_draw2d(), dom_controlpoint_setup(), door_go_up(), door_init_shared(), door_rotating_go_up(), fd_secret_use(), follow_init(), func_breakable_destroy(), func_breakable_setup(), item_key_touch(), jumppad_push(), LinkDoors(), secret_touch(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), SUB_UseTargets_Ex(), target_checkpoint_setup(), target_items_use(), target_print_message(), target_print_use(), target_spawn_useon(), trigger_keylock_touch(), and trigger_relay_if_use().
| string netname |
Definition at line 20 of file powerups.qc.
Referenced by CallbackChain::CallbackChain(), Gametype::ATTRIB(), Pickup::ATTRIB(), Turret::ATTRIB(), Waypoint::ATTRIB(), XonoticWeaponarenaCheckBox::ATTRIB(), bot_cmd_debug_assert_canfire(), bot_setnameandstuff(), CheatsAllowed(), classfield(), ClientConnect(), ClientDisconnect(), cpicon_construct(), ctf_SpawnTeam(), Draw_WaypointSprite(), Ent_RemoveWaypointSprite(), Ent_WaypointSprite(), ENTCS_PROP(), 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(), MapVote_Suggest(), minigame_read_owner(), minigame_SendEntity(), Monster_Spawn(), nade_pickup(), navigation_goalrating_end(), navigation_shortenpath(), navigation_unstuck(), NET_HANDLE(), NET_HANDLE(), NET_Mutator_Remove(), player_powerups(), PlayerFrame(), REGISTER_RESOURCE(), REGISTER_RESOURCE(), REGISTER_RESOURCE(), REGISTER_RESOURCE(), REGISTER_RESOURCE(), REGISTER_RESOURCE(), REGISTER_RESOURCE(), sandbox_ObjectSpawn(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), StartItem(), SV_ParseClientCommand(), target_items_use(), tdm_SpawnTeam(), tmayhem_SpawnTeam(), trigger_relay_if_use(), turret_construct(), turret_draw2d(), turret_initialize(), turret_use(), 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().