Emitter addon - What/ How?


------------1-------------

local function FX( pos, angle )

local effectdata = EffectData()
	effectdata:SetOrigin( pos )
	effectdata:SetNormal( angle:Forward() * 2 )
	effectdata:SetMagnitude( 3 )
	effectdata:SetScale( 4 )
	effectdata:SetRadius( 5 )
util.Effect( "6", effectdata )

end

ENT:AddEffect( “7”, FX, “8” )

The locations marked from “1” --> “8”, can you guys tell me what are those? where did they get the data to emitt? How they work?

-What are those values mean?
-Where did they take the data to emitte? (show me the path folder)
-How they effect the gameplay? (give me pictures or detailed guide/examples)
-Can Emitter Stool work with Half-Life 2 Episode 2 .PCF particles? if yes, show me how to Lua
-How to add custom particles? (like VMAN’s particles)

*More:
-Which location (1 to 8) is the command to get the data/effects/particles for the Emitter to emitte??
-what kind of file did Emitter use to emitte? (.PCF/.VMT/.VTF…)???

*Note: the Lua part above can be found in both fx_default.lua and fx_addontest.lua file

“show me how to Lua” Ha, that could become a really successful meme.

Isn’t it self explanatory? Its an effect emitter. Scale, radius, magnitude, self explanatory…

It uses **[Util.Effect

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Util.Effect)**, for more info go the wiki VIA link provided.

The effectdata is just a local variable (table type), it really doesn’t matter how its called as long as the same name is applied in the util.Effect.

Yes, it can emit Ep2 particles. You’ll need their names to emit them, which can be found here: http://developer.valvesoftware.com/wiki/Half-Life_2:_Episode_Two_Particle_Effect_List. Thats pretty much it.