\r
string Sbar_GetStomachField(entity pl, float field)\r
{\r
- sbar_field_rgb = '1 1 1';\r
- sbar_field_icon0 = "";\r
- sbar_field_icon1 = "";\r
- sbar_field_icon2 = "";\r
- sbar_field_icon0_rgb = '1 1 1';\r
- sbar_field_icon1_rgb = '1 1 1';\r
- sbar_field_icon2_rgb = '1 1 1';\r
- sbar_field_icon0_alpha = 1;\r
- sbar_field_icon1_alpha = 1;\r
- sbar_field_icon2_alpha = 1;\r
switch(field)\r
{\r
case ST_HIGHLIGHT:\r
//return "error";\r
}\r
\r
+string Sbar_GetStomachFieldPred(entity pl, float field)\r
+{\r
+ switch(field)\r
+ {\r
+ case STP_NAME:\r
+ return GetPlayerName(pl.sv_entnum);\r
+ default:\r
+ return "N/A";\r
+ }\r
+ //return "error";\r
+}\r
+\r
float xmin, xmax, ymin, ymax, sbwidth;\r
float sbar_fixscoreboardcolumnwidth_len;\r
float sbar_fixscoreboardcolumnwidth_iconlen;\r
if(field == SP_SEPARATOR)\r
break;\r
\r
- str = Sbar_GetStomachField(pl, field);\r
+ str = Sbar_GetStomachFieldPred(pl, field);\r
\r
- if(field == ST_NAME) {\r
+ if(field == STP_NAME) {\r
f = stof(getplayerkey(pl.sv_entnum, "colors"));\r
drawpic(pos, "gfx/sb_playercolor_base", '22 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
drawpic(pos, "gfx/sb_playercolor_shirt", '22 11 0', colormapPaletteColor(floor(f / 16), 0), sbar_alpha_fg, DRAWFLAG_NORMAL);\r