Better implementation of support for hud

I noticed that the other commit causes crash when you have older version of hud mod. So this fixes it and will allow other mods too to read out armor status.