1
0
mirror of https://github.com/IkarusHD/ICF-3.git synced 2025-03-04 03:03:12 -05:00

fixed heat standoffratio bug

This commit is contained in:
Ikarus 2025-01-19 11:07:18 +01:00
parent cd3b0758f8
commit 8ff7592704
2 changed files with 4 additions and 0 deletions

View File

@ -190,6 +190,8 @@ function Ammo:VerifyData(ToolData)
if not isnumber(ToolData.StandoffRatio) then
ToolData.StandoffRatio = 0
else
ToolData.StandoffRatio = math.Clamp(ToolData.StandoffRatio, 0, self.MaxStandoffRatio or 0.2)
end
if not isnumber(ToolData.LinerAngle) then

View File

@ -15,6 +15,8 @@ function Ammo:OnLoaded()
HW = true,
SC = true,
})
self.MaxStandoffRatio = .75
end
function Ammo:UpdateRoundData(ToolData, Data, GUIData)