Game Development Community

Fire Weapon Stops Rain

by Howard Dortch · in Torque Game Engine · 05/31/2004 (8:37 pm) · 4 replies

I got the rain and lightning workin in the game and noticed something strange. When I fire my weapon the rain stops for a couple seconds. Has anyone had this problem or a clue on whats causing it?

#1
05/31/2004 (9:15 pm)
Could be caused by particle starvation - the particle system only has so many particles and it might be that the weapon effects are using them up! Interesting bug...
#2
06/01/2004 (5:03 am)
Yeah I thought the same thing since I had 3000 for rain particles but I dropped it to 100 and get the same result. It almost looks like the particle update for the rain is bypassed by some other event. I use a function call startRain() to make it rain rather than declaring it in the mission file.
#3
06/01/2004 (6:21 am)
Howard

I have rain with 3000 drops and shooting fireballs ,i cant get this to happen.
And on some maps i have alot happening with fires ,torches,rain and moore.
Havent seen the particle system go down yet.
I have rain functions like you and trigger them.
Something else must be wrong i think.
you must have a heavy weapon :)
#4
06/01/2004 (7:32 am)
I have coded lots of particle engines and wouldn't think this to be the case 3k is not much. So that leaves other possibilities like the weapon fire is somehow interrupting the call to update the particle. I scanned in the CC code and it all looks like it should work fine, so it must be in the scripting part. Any info I can supply to help track this down?