function GetCurve(T,Y)local J=math.max((curve(T)*_Tune.Horsepower)/PeakCurve,0)return J,(((J*(_Tune.EqPoint/T))*_Tune.Ratios[Y+2])*fFD)*hpScaling end

function GetCurve(x,gear)
	local hp=math.max((curve(x)*_Tune.Horsepower)/PeakCurve,0)
	return hp,hp*(_Tune.EqPoint/x)*_Tune.Ratios[gear+2]*fFD*hpScaling
end
