Different counties calculate roof height differently. I know mine goes by midpoint of roof, so you can get away with more overall height by doing a gambrel style roof. Have the eves be lower to pull down the average and use the additional interior height compared to a hip roof.
Gigantic image:
https://www.municode.com/Api/CD/Stat...ame=AppD-1.png