So I'm creating effect with this:
[code]local trace = {}
trace.start = self.Owner:GetShootPos()
trace.endpos = self.Owner:GetShootPos() + self.Owner:GetAimVector() * 10^14
trace.filter = self.Owner
local tr = util.TraceLine(trace)
local effect = EffectData()
effect:SetOrigin(tr.HitPos)
effect:SetAngles(Angle(0,0,0))
util.Effect("ut99_asmd_exp", effect)
if tr.HitWorld then
util.Effect( "ut99_asmd_ring", effect )
end[/code]
How to get world angles to prevent this? I want to set wall/slope angles if I hit it
[IMG_thumb]http://i.imgur.com/Bf9yn8s.jpg[/IMG_thumb]
[IMG_thumb]http://i.imgur.com/1xai2Et.jpg[/IMG_thumb]