Permalink
Browse files

Set origin when creating propspawn/entity_remove

to fix PAS issues

Willoxchange
  • Loading branch information...
1 parent 9c1c050 commit 7beb11d6692d0d308537325a242673437bb77008 @robotboy655 robotboy655 committed Mar 4, 2016
@@ -22,7 +22,8 @@ local function DoRemoveEntity( ent )
-- Send Effect
local ed = EffectData()
- ed:SetEntity( ent )
+ ed:SetOrigin( ent:GetPos() )
+ ed:SetEntity( ent )
util.Effect( "entity_remove", ed, true, true )
return true
@@ -142,6 +142,7 @@ function GM:NetworkEntityCreated( ent )
if ( ent:GetSpawnEffect() && ent:GetCreationTime() > (CurTime() - 1.0) ) then
local ed = EffectData()
+ ed:SetOrigin( ent:GetPos() )
ed:SetEntity( ent )
util.Effect( "propspawn", ed, true, true )

0 comments on commit 7beb11d

Please sign in to comment.