From 27c3bed1f6ed4fbeca21e9ac8937b5cf95cad866 Mon Sep 17 00:00:00 2001 From: thecraftianman <64441307+thecraftianman@users.noreply.github.com> Date: Sun, 31 Dec 2023 15:12:24 -0500 Subject: [PATCH] Treat NPCs like players in ballistics handling Fixes #346 --- lua/acf/ballistics/ballistics_sv.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/acf/ballistics/ballistics_sv.lua b/lua/acf/ballistics/ballistics_sv.lua index f0531ada2..6d28cfd2d 100644 --- a/lua/acf/ballistics/ballistics_sv.lua +++ b/lua/acf/ballistics/ballistics_sv.lua @@ -157,7 +157,7 @@ end function Ballistics.GetImpactType(Trace, Entity) if Trace.HitWorld then return "World" end - if Entity:IsPlayer() then return "Prop" end + if Entity:IsPlayer() or Entity:IsNPC() then return "Prop" end return IsValid(Entity:CPPIGetOwner()) and "Prop" or "World" end