how works a entity "env_steam" ?

hello everyone, i’m creating a bazooka swep,

everything works but now i want to add a steam effect on the rocket launched ?

i’ve try this from the valve dev wiki ( https://developer.valvesoftware.com/wiki/Env_steam )

the rocket entity code :



function ENT:Initialize()

	self:SetModel("models/Items/AR2_Grenade.mdl")
	self:SetModelScale( 4 )
	self:PhysicsInit( SOLID_VPHYSICS )
	self:SetMoveType( MOVETYPE_VPHYSICS )
	self:SetSolid( SOLID_VPHYSICS )
	self:DrawShadow( false )
	
	self:SetCollisionGroup( COLLISION_GROUP_WEAPON )
	
	local phys = self:GetPhysicsObject()

	self:EmitSound(Sound("bazooka_shoot.wav"))

        -- this doesn't works :
	steamEffect = ents.Create("env_steam")
	steamEffect:SetParent(self)
	steamEffect:Spawn()
end


if you can help me :slight_smile:

click NOICE

Just use Lua effects instead?

like this : https://wiki.garrysmod.com/page/Effects ?
and this

effects.Create ?

If, then that:

util.Effect

effects.Create() is a internal function.

exactly …

so i have found something else :



function ENT:Think()

	ParticleEffect( "generic_smoke", self:GetPos(), self:GetAngles(), self )

end


but anyone know where i can find is the particle list ?

Use util.Effect and create your own particles.

in the gmod root files, there are files wich you need to open with GCFScape, I dont know wich of these, but one contains all models, materials, particles etc etc.

no time for this, but thanks :slight_smile:

thats right, there only 1 smoke particle
also particles effects are listed in the emitter tool options …
that smoke effect is not pretty nice, but this is what i want so the problem is fixed…

thanks :slight_smile: