summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/Rain.c
blob: ed48a6ddcff2795a854e816d67a1660174e3c4b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*-- Regen --*/

#strict 2

global func FxRainStart()
{
	return 1;
}

global func FxRainTimer()
{
	for (var i; i < 3; ++i)
	{
		CreateParticle("Raindrop", Random(LandscapeWidth()), 0, 0, 200, Random(300), RGB(170, 170, 255));
	}
	if (!Random(200)) Sound("Thunders*");
	return 1;
}

global func FxFireRainTimer()
{
	if (!Random(50)) CreateObject(DFLM, Random(LandscapeWidth()), 0, NO_OWNER);
	return 1;
}