All pastes #978410 Raw Edit

Untitled

public text v1 · immutable
·published 2008-04-09 15:15 UTC
rendered paste body
		if trace.HitWorld or ValidEntity(trace.Entity) then
			local dist=trace.HitPos:Distance(self.Entity:GetPos())
			if dist>0 then
				if dist<self.HoverHeight then
					DesiredOffset=DesiredOffset+Vector(0,0,1000)
				else
					DesiredOffset=DesiredOffset+Vector(0,0,-1000)
				end
			end
		else
			DesiredOffset=DesiredOffset+Vector(0,0,1000)
		end