summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/Rain.c
blob: 85289ca6cc306b57d39dc5ef6dd8add59127a358 (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
/*-- Ambient rain effect for Temple Ruins --*/

#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;
}