Skip to content

Commit

Permalink
Merge pull request Dakota0001#27 from Stooberton/patch-1
Browse files Browse the repository at this point in the history
Potential fix for penetrating particle error
  • Loading branch information
Dakota0001 authored Nov 7, 2021
2 parents 86eeee9 + ca190ca commit de644e7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lua/effects/dakteshellpenetrate/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,9 @@ function EFFECT:Init( data )
particle:SetBounce(0)
particle:SetNextThink( CurTime() )
particle:SetThinkFunction( function( pa )
if pa~=NULL then
if HitEnt~=NULL and Attach~=nil then
if HitEnt~=NULL and Attach~=nil then
pa:SetPos( HitEnt:LocalToWorld(Attach) )
end
pa:SetNextThink( CurTime() )
end
if pa and HitEnt and Attach then
pa:SetPos( HitEnt:LocalToWorld(Attach) )
pa:SetNextThink( CurTime() )
end
end )
end
Expand All @@ -160,4 +156,4 @@ function EFFECT:Think()
end

function EFFECT:Render()
end
end

0 comments on commit de644e7

Please sign in to comment.