Util Effects

there is an effect out there that is a distortion ring, similar to a shockwave of an explosion, an example would be with the SR4 Dubstep gun mod when the songs play, this effect can be seen, can anyone help me find this effect? if it’s already in the preset effects/particles, i’d like to know it’s name please, thank you.


it’s two effects layered on another, a colored ring and then the warp ring/shockwave

Wait, I’ll decompile and check

[editline]2nd March 2016[/editline]

It seems to do some crazy emitter and shader stuff to do it’s effects, take a look
It doesn’t actually have any particles in the addon

alright, would there be an easier way to do this in, say, the SWEP code? or not?

Never mind, just copied and pasted it into an init with the same filepath as the pastebin and it works nicely

Yes, create the effect.

I think the dubstep gun’s base SWEP code creates the effect like this:

local tr = self.Owner:GetEyeTrace()
local effectdata = EffectData()
effectdata:SetOrigin( tr.HitPos )
util.Effect( "dubstep_wub_effect", effectdata, true, true )
local effectdata = EffectData() 
effectdata:SetOrigin( tr.HitPos ) 
effectdata:SetStart( self.Owner:GetShootPos() ) 
effectdata:SetScale( 5 ) 
effectdata:SetAttachment( 1 ) 
effectdata:SetEntity( self.Weapon )
util.Effect( "dubstep_wub_beam", effectdata, true, true )

[editline]2nd March 2016[/editline]

(That’s on line 338 to line 350 of lua/weapons/weapon_dubstepgun_base/shared.lua)

thanks, you guys, this really helped, I know the effect is a bulge, but how would I do a pulse? a similar thing but with a different material I assume?