#include "ammo.qh"
+#include "scoreboard.qh"
#include <common/t_items.qh>
// Ammo (#1)
#include "chat.qh"
-/** Handle chat as a panel (#12) */
+
+// Chat (#12)
+
void HUD_Chat()
{
if(!autocvar__hud_configure)
#include "engineinfo.qh"
-// Engine info panel (#13)
+
+// Engine info (#13)
float prevfps;
float prevfps_time;
#include "healtharmor.qh"
+#include "scoreboard.qh"
#include <common/deathtypes/all.qh>
-/** Health/armor (#3) */
+// Health/armor (#3)
+
void HUD_HealthArmor()
{
int armor, health, fuel;
#include "infomessages.qh"
+#include "scoreboard.qh"
#include <common/ent_cs.qh>
#include <common/mapinfo.qh>
-// Info messages panel (#14)
+// Info messages (#14)
float autocvar_hud_panel_infomessages_group0 = 1;
float autocvar_hud_panel_infomessages_group_fadetime = 0.4;
#include "minigame.qh"
-// Minigame
+
+// Minigame (#17, #18, #19, #20)
#include <common/minigames/cl_minigames_hud.qc>
#include <common/ent_cs.qh>
#include <server/mutators/mutator/gamemode_ctf.qh> // TODO: remove
-// Mod icons panel (#10)
+// Mod icons (#10)
bool mod_active; // is there any active mod icon?
#include "notify.qh"
-// Notification area (#4)
+
+#include "scoreboard.qh"
+
+// Notifications (#4)
void HUD_Notify_Push(string icon, string attacker, string victim)
{
#include "physics.qh"
+#include "scoreboard.qh"
#include <client/main.qh>
#include <common/mapinfo.qh>
#include <lib/csqcmodel/cl_player.qh>
-// Physics panel (#15)
+// Physics (#15)
vector acc_prevspeed;
float acc_prevtime, acc_avg, top_speed, top_speed_time;
#include "powerups.qh"
+#include "scoreboard.qh"
#include <common/items/all.qc>
// Powerups (#2)
#include "pressedkeys.qh"
-/** Draw pressed keys (#11) */
+
+#include "scoreboard.qh"
+
+// Pressed keys (#11)
+
void HUD_PressedKeys()
{
if(!autocvar__hud_configure)
#include "quickmenu.qh"
-// QuickMenu (#23)
+#include "scoreboard.qh"
#include <common/ent_cs.qh>
#include <client/hud/all.qh>
#include <client/mapvoting.qh>
+// QuickMenu (#23)
+
// QUICKMENU_MAXLINES must be <= 10
const int QUICKMENU_MAXLINES = 10;
// visible entries are loaded from QuickMenu_Buffer into QuickMenu_Page_* arrays
#include "racetimer.qh"
+#include "scoreboard.qh"
#include <common/mapinfo.qh>
-/** Race timer (#8) */
+// Race timer (#6)
// return the string of the onscreen race timer
string MakeRaceString(int cp, float mytime, float theirtime, float lapdelta, string theirname)
#include "radar.qh"
+#include "scoreboard.qh"
#include <common/ent_cs.qh>
#include <common/mapinfo.qh>
#include <client/mapvoting.qh>
#include <common/stats.qh>
#include <common/teams.qh>
+// Scoreboard (#24)
+
float sbt_bg_alpha;
float sbt_fg_alpha;
float sbt_fg_alpha_self;
#include "timer.qh"
+
+// Timer (#5)
+
void HUD_Timer()
{
if(!autocvar__hud_configure)
#include <common/mapinfo.qh>
-/** Vote window (#9) */
+// Vote (#9)
+
void HUD_Vote()
{
if(autocvar_cl_allow_uid2name == -1 && (gametype == MAPINFO_TYPE_CTS || gametype == MAPINFO_TYPE_RACE || (serverflags & SERVERFLAG_PLAYERSTATS)))
#include "weapons.qh"
-// Weapon icons (#0)
+
+#include "scoreboard.qh"
+
+// Weapons (#0)
entity weaponorder[Weapons_MAX];
void weaponorder_swap(int i, int j, entity pass)