X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fhud.qc;h=d200e2c6c522e67f05b009f301f9a03f5677d9db;hp=f48d789c3ce55fd990684007217db724cc8d349f;hb=c039d054a46888048d214000273ccfc63e4611b6;hpb=a3a484a54551f0208b6cf1e92bb7e5a3ee1a72f3 diff --git a/qcsrc/client/hud/hud.qc b/qcsrc/client/hud/hud.qc index f48d789c3c..d200e2c6c5 100644 --- a/qcsrc/client/hud/hud.qc +++ b/qcsrc/client/hud/hud.qc @@ -6,7 +6,7 @@ #include "../teamradar.qh" #include #include -#include +#include #include #include #include @@ -335,8 +335,6 @@ void DrawNumIcon(vector myPos, vector mySize, float x, string icon, bool vertica DrawNumIcon_expanding(myPos, mySize, x, icon, vertical, icon_right_align, color, theAlpha, 0); } -#include "all.inc" - /* ================== Main HUD system @@ -358,6 +356,8 @@ void HUD_Vehicle() } } +bool HUD_Minigame_Showpanels(); + void HUD_Panel_Draw(entity panent) { panel = panent; @@ -433,6 +433,7 @@ bool Hud_Shake_Update() return true; } +entity CSQCModel_server2csqc(int i); void calc_followmodel_ofs(entity view); void Hud_Dynamic_Frame() { @@ -555,11 +556,11 @@ void HUD_Main() { string hud_dock_color = autocvar_hud_dock_color; if(hud_dock_color == "shirt") { - f = stof(getplayerkeyvalue(current_player, "colors")); + f = entcs_GetClientColors(current_player); color = colormapPaletteColor(floor(f / 16), 0); } else if(hud_dock_color == "pants") { - f = stof(getplayerkeyvalue(current_player, "colors")); + f = entcs_GetClientColors(current_player); color = colormapPaletteColor(f % 16, 1); } else