Effects / Particles

I would like to know how to make effetcts, or particles, because i don’t realy know what is the difference.
For example i want to make an ‘effect’ that can run on a player, like the spawn effect on props in sandbox.
If someone could link me a tutorial or a start I would be very grateful.
Thank you.


Particle effects are .pcf files located in the gmod directory/ particles folder.

They can be created or viewed by right clicking a source game in steam/properties/set launch options and in the empty bar type “-tools”, without the quotes, then launch the game and select particle editor.

Lua effects are the effects created only using lua, more information you can find here:http://wiki.garrysmod.com/?title=Effect_Hooks.

You can look through tutorials and so on, but the best method to learn (atleast for the lua part) is looking at other peoples code, most of the time it comes to adjusting the variables to fit your desired effect.

Yeah i’ve already read that page but if someone can send me or write down here a sample effect, with comments that would be better, because from that page I don’t know how to start, or what is the structure of an effect.

Don’t know if I’m that good at commenting in scripts, but this is the very basic of a lua effect: http://dl.dropbox.com/u/13116851/ExampleEffect.rar commented some explanations in there which should help you.

You should have pointed out that returning anything other than true in the EFFECT:Think() hook will remove the effect.

Effects are also clientside entity, that means they can have models etc.

Well yeah, I know. I was aiming to tell him the very basics, drawing a sprite with some variables adjusted. I’m sure he’ll figure out the harder stuff as he progresses in learning LUA.

Thank You very much!