Skip to content

Commit

Permalink
Treat NPCs like players in ballistics handling
Browse files Browse the repository at this point in the history
Fixes #346
  • Loading branch information
thecraftianman authored Dec 31, 2023
1 parent 0656892 commit 27c3bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/acf/ballistics/ballistics_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27c3bed

Please sign in to comment.