fixed issue with unnoclipping being wonky

This commit is contained in:
Kyle 2018-09-07 11:28:24 -05:00
parent 0eecfda435
commit 5cb258dd6a

View File

@ -179,6 +179,7 @@ hook.Add("PlayerLeaveVehicle", "KylebuildmodePropKill", function(y, z)
end)
hook.Add("PhysgunPickup", "KylebuildmodePropKill", function(y, z)
if not SERVER then return end
if IsValid(z) and (not z:IsPlayer()) and y.buildmode and _Kyle_Buildmode["antipropkill"]=="1" then
z:SetNWBool("Physgunned", true)
_kyle_Prop_Noclip(z)