From da7db274a08d9f97f6c774a91c19b93c88d41044 Mon Sep 17 00:00:00 2001 From: LiddulBOFH <13317534+LiddulBOFH@users.noreply.github.com> Date: Thu, 30 May 2024 00:19:24 -0500 Subject: [PATCH] ballistics_sv fix Fix check for bullet owner, filtering to only actually be a player Was only added to help prevent a player from breaking their own seat when shooting from it --- 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 18fd09ba..58864860 100644 --- a/lua/acf/ballistics/ballistics_sv.lua +++ b/lua/acf/ballistics/ballistics_sv.lua @@ -137,7 +137,7 @@ function Ballistics.CreateBullet(BulletData) Bullet.Color = ColorRand(100, 255) -- Purely to allow someone to shoot out of a seat without hitting themselves and dying - if IsValid(Bullet.Owner) and Bullet.Owner:InVehicle() and IsValid(Bullet.Owner:GetVehicle().Alias) then + if IsValid(Bullet.Owner) and Bullet.Owner:IsPlayer() and Bullet.Owner:InVehicle() and IsValid(Bullet.Owner:GetVehicle().Alias) then Bullet.Filter[#Bullet.Filter + 1] = Bullet.Owner:GetVehicle() Bullet.Filter[#Bullet.Filter + 1] = Bullet.Owner:GetVehicle().Alias end