+float fieldcounter2;\r
+void Sbar_PrintStomachboardItemPred(vector pos, entity pl)\r
+{\r
+ // shows the name of our eater\r
+\r
+ string str;\r
+ float f, field, field_number;\r
+ field_number = 1; // the number of components each row has\r
+\r
+ for(fieldcounter2 = 1; fieldcounter2 <= field_number; ++fieldcounter2)\r
+ {\r
+ field = -fieldcounter2;\r
+ str = Sbar_GetStomachFieldPred(pl, field);\r
+\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
+ drawpic(pos, "gfx/sb_playercolor_pants", '22 11 0', colormapPaletteColor(mod(f, 16), 1), sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+\r
+ pos_x += 24;\r
+ drawcolorcodedstring(pos, textShortenToWidth(str, 122, '11 11 0', stringwidth_colors), '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+ }\r
+ }\r
+}\r
+\r