function SWEP:PrimaryAttack() local tr = self.Owner:GetEyeTrace() if tr.HitNonWorld then if tr.Entity:IsValid() then if (IsDoor(tr.Entity)) then if (self.Owner:GetPos():Distance( tr.Entity:GetOwner():GetPos() ) < 105 ) then self.Owner:EmitSound( "physics/wood/wood_create_impact_hard3.wav", 100, 100 ) end end end end end