CarnivorousJelly
Posting Freak
Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation:
80
|
RE: Changing Particle Colour
Thanks for the help! Both the light dust and fog fade out, which looks really nice, but the new particles are not being created :\
Here's the script for the particles (based on a 20 second change for the lights) :
if (GetGlobalVarInt("NightTriggered") == 0)
{
///////script stuff that I'm not including//////
AddTimer("NewParticles", 5.0f, "timer_particles");
AddTimer("OldParticles", 10.0f, "timer_removeparticles");
}
void timer_particles(string &in asTimer)
{
/////////PARTICLES///////////
////////////FOG//////////////
CreateParticleSystemAtEntityExt("ParticleSystem_1", "ps_area_fog.ps", "ParticleSystem_30", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_3", "ps_area_fog.ps", "ParticleSystem_31", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_4", "ps_area_fog.ps", "ParticleSystem_32", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_5", "ps_area_fog.ps", "ParticleSystem_33", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_7", "ps_area_fog.ps", "ParticleSystem_34", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_8", "ps_area_fog.ps", "ParticleSystem_35", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_9", "ps_area_fog.ps", "ParticleSystem_36", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_10", "ps_area_fog.ps", "ParticleSystem_37", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_14", "ps_area_fog.ps", "ParticleSystem_38", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_17", "ps_area_fog.ps", "ParticleSystem_39", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_21", "ps_area_fog.ps", "ParticleSystem_40", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_23", "ps_area_fog.ps", "ParticleSystem_41", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_25", "ps_area_fog.ps", "ParticleSystem_42", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_27", "ps_area_fog.ps", "ParticleSystem_43", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_29", "ps_area_fog.ps", "ParticleSystem_44", true, 0.119f, 0.218f, 0.266f, 0.75f, true, 1.0f, 2.0f, 100.0f, 110.0f);
///////////LIGHT DUST////////////
CreateParticleSystemAtEntityExt("ParticleSystem_12", "ps_light_dust_large.ps", "ParticleSystem_45", true, 0.122f, 0.165f, 0.211f, 0.75f, true, 0.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_13", "ps_light_dust_large.ps", "ParticleSystem_46", true, 0.122f, 0.165f, 0.211f, 0.75f, true, 0.0f, 2.0f, 100.0f, 110.0f);
CreateParticleSystemAtEntityExt("ParticleSystem_15", "ps_light_dust_large.ps", "ParticleSystem_47", true, 0.122f, 0.165f, 0.211f, 0.75f, true, 0.0f, 2.0f, 100.0f, 110.0f);
}
void timer_removeparticles(string &in asTimer)
{
DestroyParticleSystem("ParticleSystem_1");
DestroyParticleSystem("ParticleSystem_3");
DestroyParticleSystem("ParticleSystem_4");
DestroyParticleSystem("ParticleSystem_5");
DestroyParticleSystem("ParticleSystem_7");
DestroyParticleSystem("ParticleSystem_8");
DestroyParticleSystem("ParticleSystem_9");
DestroyParticleSystem("ParticleSystem_10");
DestroyParticleSystem("ParticleSystem_14");
DestroyParticleSystem("ParticleSystem_17");
DestroyParticleSystem("ParticleSystem_21");
DestroyParticleSystem("ParticleSystem_23");
DestroyParticleSystem("ParticleSystem_25");
DestroyParticleSystem("ParticleSystem_27");
DestroyParticleSystem("ParticleSystem_29");
DestroyParticleSystem("ParticleSystem_12");
DestroyParticleSystem("ParticleSystem_13");
DestroyParticleSystem("ParticleSystem_15");
}
I have it labelled so that the particles numbered 30-47 are the new ones created and anything below that is deleted (there are some holes in my numbers from creating excess particle systems and deleting them).
Other than the lack of new particles, it looks really nice! Thanks again
|
|