Fixes for overriden methods, compat with b41

This commit is contained in:
ZioPao
2025-03-31 22:22:17 +02:00
parent 1e754895a0
commit 671bf133e3
8 changed files with 82 additions and 12 deletions

View File

@@ -102,8 +102,20 @@ function ISHealthPanel:tryDrawAmputation(highestAmputations, side, username)
texture = StaticData.HEALTH_PANEL_TEXTURES[sexPl][limbName]
end
local xMod, yMod
if luautils.stringStarts(StaticData.GAME_VERSION, "41") then
xMod = 0
yMod = 0
else
xMod = 5
yMod = 9
end
-- B42, for some reason the positioning of the texture changed. Realigned it manually with those fixed values
self:drawTexture(texture, self.healthPanel.x - 5, self.healthPanel.y - 9, 1, redColor, 0, 0)
self:drawTexture(texture, self.healthPanel.x - xMod, self.healthPanel.y - yMod, 1, redColor, 0, 0)
end
function ISHealthPanel:tryDrawProsthesis(highestAmputations, side, username)
local dc = DataController.GetInstance(username) -- TODO CACHE PROSTHESIS!!! Don't use DC here