From 412ca66414d1763c00da22a6328845717bb5f5a5 Mon Sep 17 00:00:00 2001 From: yoseij <72367202+yoseij@users.noreply.github.com> Date: Thu, 29 Aug 2024 19:02:16 -0700 Subject: [PATCH 1/2] Update init.lua Missile health rebalance to something sane and reasonable --- lua/entities/acf_missile/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/entities/acf_missile/init.lua b/lua/entities/acf_missile/init.lua index e29aa86..5a2f773 100644 --- a/lua/entities/acf_missile/init.lua +++ b/lua/entities/acf_missile/init.lua @@ -659,7 +659,7 @@ function ENT:ACF_Activate(Recalc) local PhysObj = self.ACF.PhysObj local Area = PhysObj:GetSurfaceArea() local Armor = self.ForcedArmor - local Health = self.Caliber + local Health = (Area * 6.45) / ACF.Threshold local Percent = 1 if Recalc and self.ACF.Health and self.ACF.MaxHealth then From d6fd30e556ae675df8b728bb46bfcc5b5f1bc81e Mon Sep 17 00:00:00 2001 From: thecraftianman <64441307+thecraftianman@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:28:06 -0400 Subject: [PATCH 2/2] Use global for unit conversion --- lua/entities/acf_missile/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/entities/acf_missile/init.lua b/lua/entities/acf_missile/init.lua index 5a2f773..337e2ee 100644 --- a/lua/entities/acf_missile/init.lua +++ b/lua/entities/acf_missile/init.lua @@ -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