// Disable lives hud.disable("lives") // Recreate lives local function Icon(v, stplyr) if not stplyr.mo return end if not (stplyr.powers[pw_carry] == CR_NIGHTSMODE) and not (maptol & TOL_NIGHTS) local face = v.getSprite2Patch(stplyr.mo.skin, SPR2_XTRA, (stplyr.powers[pw_super] != 0), 0, 0) v.drawScaled(16*FRACUNIT, 178*FRACUNIT, FRACUNIT/2, face, V_SNAPTOLEFT|V_SNAPTOBOTTOM|V_PERPLAYER|V_HUDTRANS, v.getColormap(stplyr.mo.skin, stplyr.mo.color)) end end hud.add(Icon) // Add lives local function Lives(v, stplyr) if not stplyr.mo return end if not (stplyr.powers[pw_carry] == CR_NIGHTSMODE) and not (maptol & TOL_NIGHTS) local length = string.len(stplyr.name) v.drawString(33, 186, "x", V_SNAPTOLEFT|V_SNAPTOBOTTOM|V_PERPLAYER|V_HUDTRANS) if stplyr.lives > 9 then v.drawString(17 + (length*8), 186, stplyr.lives, V_SNAPTOLEFT|V_SNAPTOBOTTOM|V_PERPLAYER|V_HUDTRANS) else v.drawString(25 + (length*8), 186, stplyr.lives, V_SNAPTOLEFT|V_SNAPTOBOTTOM|V_PERPLAYER|V_HUDTRANS) end end end hud.add(Lives) // Add name local function Name(v, stplyr) if not stplyr.mo return end if not (stplyr.powers[pw_carry] == CR_NIGHTSMODE) and not (maptol & TOL_NIGHTS) local length = string.len(stplyr.name) v.drawString(33, 178, "\x82"..stplyr.name.."\x80", V_SNAPTOLEFT|V_SNAPTOBOTTOM|V_PERPLAYER|V_HUDTRANS) end end hud.add(Name)