Skip to content

Commit

Permalink
Use global for unit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman authored Aug 30, 2024
1 parent 412ca66 commit d6fd30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/entities/acf_missile/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,9 @@ end

function ENT:ACF_Activate(Recalc)
local PhysObj = self.ACF.PhysObj
local Area = PhysObj:GetSurfaceArea()
local Area = PhysObj:GetSurfaceArea() * ACF.InchToCmSq
local Armor = self.ForcedArmor
local Health = (Area * 6.45) / ACF.Threshold
local Health = Area / ACF.Threshold
local Percent = 1

if Recalc and self.ACF.Health and self.ACF.MaxHealth then
Expand Down

0 comments on commit d6fd30e

Please sign in to comment.