1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*-- Regen --*/
#strict
protected func Initialize() {
SetPosition(0,0);
AddEffect("Rain",0,1,1,0,GetID());
SoundLevel("Rain",100);
return(1);
}
func FxRainTimer()
{
var color = RGB(150,150,255);
if (FindObject(RCKF)) color = RGB(100,0,0);
for (var i;i<3;i++)
CreateParticle("Rain",Random(LandscapeWidth()),0,0,200,Random(300),RGB(170,170,255));
if (!Random(200)) Sound("Thunders*");
if (!Random(50) && FindObject(FRRN)) CreateObject(DFLM,Random(LandscapeWidth()));
return(1);
}
|