Custom Explosion Particle?

Grab your favourite IDE and tinker with the innards of game engines

Custom Explosion Particle?

Postby Cpl Bradley on Tue Aug 31, 2010 3:10 am

Alright, so i created my particle effect. But how to I replace the standard explosion effect with my new particle effect? Ive seen people do it but I cant figure it out.
Cpl Bradley
Member
Member
 
Joined: Fri Jul 30, 2010 11:32 pm

Re: Custom Explosion Particle?

Postby Gradius on Tue Aug 31, 2010 11:18 am

Strip out the hardcoded particles from fx_explosion.cpp. Then you'll need:
#include "particle_parse.h" at the start of it with the other includes.
Make a precache somewhere or find an existing one and add PrecacheParticleSystem( "mycustomexplosion" );
and then DispatchParticleEffect( "mycustomexplosion", origin here, angle here; where the particles are normally dispatched.
User avatar
Gradius
1337 p0st3r
1337 p0st3r
 
Joined: Thu Aug 27, 2009 2:52 pm

Re: Custom Explosion Particle?

Postby Cpl Bradley on Tue Aug 31, 2010 9:30 pm

Thanks a ton!
Cpl Bradley
Member
Member
 
Joined: Fri Jul 30, 2010 11:32 pm

Return to Programming

Who is online

Users browsing this forum: No registered users

cron