
COM_AddCommand("speedometer", function (p, arg)
	if p.fucknuts == nil then
		p.fucknuts = 0
	end
	if arg == nil then return end
	if tonumber(arg) == nil then return end
	if tonumber(arg) >= 0 and tonumber(arg) < 4 then
		p.fucknuts = tonumber(arg)
	end
end)

local function fukumanege(cum, ballsack)
	local bcenterx = 160 - ((cum.width()/(cum.dupx() * 2) - 160))
	local bcentery = 100 + ((cum.height()/(cum.dupy() * 2) - 100)) 
	local mph = (ballsack.speed * 6)/5
	local kmh = (mph * 16)/10
	if ballsack.fucknuts > 0 then
		if ballsack.fucknuts == 1 then
			cum.drawString(bcenterx, 160, tostring((ballsack.speed/FU)) .. " FU/T", V_ALLOWLOWERCASE|V_SNAPTOBOTTOM|V_SNAPTORIGHT, "center")
		end
		if ballsack.fucknuts == 2 then
			cum.drawString(bcenterx, 160, tostring((mph/FU)) .. " MPH", V_ALLOWLOWERCASE|V_SNAPTOBOTTOM|V_SNAPTORIGHT, "center")
		end
		if ballsack.fucknuts == 3 then
			cum.drawString(bcenterx, 160, tostring((kmh/FU)) .. " KM/H", V_ALLOWLOWERCASE|V_SNAPTOBOTTOM|V_SNAPTORIGHT, "center")
		end
	end
end

hud.add(fukumanege, "game")