local pos = hudinfo[HUD_LIVES].y +5 local po = hudinfo[HUD_LIVES].y local pox = hudinfo[HUD_LIVES].y hud.add(function(v, player, cam) if player.mo.valid and player.dashspeed == 0 and player.powers[pw_tailsfly] == 0 v.drawFill(214,pos - 1, player.normalspeed, 12, 31) v.drawFill(215,pos, player.speed/FRACUNIT, 10, skincolors[player.skincolor].ramp[5]) v.drawFill(215,pos, player.speed/FRACUNIT-4, 10, skincolors[player.skincolor].ramp[6]) v.drawString(280,pos +1,player.speed/FRACUNIT,YELLOWMAP,"center") v.drawString(245,pos +1,"SPEED:",YELLOWMAP,"center") end if player.mo.valid and player.dashspeed > 0 and player.powers[pw_tailsfly] == 0 v.drawFill(214,pos - 1, player.maxdash, 12, 31) v.drawFill(215,pos, player.dashspeed/FRACUNIT -10, 10, skincolors[player.skincolor].ramp[5]) v.drawString(280,pos +1,player.dashspeed/FRACUNIT,YELLOWMAP,"center") v.drawString(245,pos +1,"CHARGE:",YELLOWMAP,"center") end if player.mo.valid and player.dashspeed == 0 and player.powers[pw_tailsfly] > 0 local tailsfly = player.powers[pw_tailsfly]/TICRATE +1 v.drawFill(214,pos - 1, player.normalspeed, 12, 31) v.drawFill(215,pos, tailsfly*4, 10, skincolors[player.skincolor].ramp[5]) v.drawString(280,pos +1,tailsfly,YELLOWMAP,"center") v.drawString(245,pos +1,"FLIGHT:",YELLOWMAP,"center") end if player.mo.valid and player.powers[pw_underwater] local watertime = player.powers[pw_underwater]/TICRATE v.drawFill(214,po - 1, player.normalspeed, 12, 31) v.drawFill(215,po, watertime*3, 10, skincolors[player.skincolor].ramp[5]) v.drawString(280,po +1,watertime,YELLOWMAP,"center") v.drawString(245,po +1,"BREATH:",YELLOWMAP,"center") end if player.mo.valid and player.powers[pw_underwater] and po > pos - 15 po = $ - 1 end if not player.powers[pw_underwater] po = hudinfo[HUD_LIVES].y end if player.mo.valid and not player.powers[pw_underwater] and player.dashmode > 0 and pox > pos - 15 pox = $ - 1 end if player.dashmode == 0 pox = hudinfo[HUD_LIVES].y end if player.mo.valid and not player.powers[pw_underwater] and player.dashmode > 0 v.drawFill(214,pox - 1, player.normalspeed, 12, 31) v.drawFill(215,pox, player.dashmode*13/TICRATE, 10, skincolors[player.skincolor].ramp[5]) v.drawString(280,pox +1,player.dashmode/TICRATE,YELLOWMAP,"center") v.drawString(292,pox +1,"/3",YELLOWMAP,"center") v.drawString(245,pox +1,"DASH:",YELLOWMAP,"center") end end)