Public feed #531846

Someone

public text v1 · immutable
Raw Edit
·published 2007-06-02 23:58 UTC
rendered paste body
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