summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/CliffPushing.c4d/Rain.c4d/Script.c
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/CliffPushing.c4d/Rain.c4d/Script.c')
-rw-r--r--TemplePushing.c4s/CliffPushing.c4d/Rain.c4d/Script.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/TemplePushing.c4s/CliffPushing.c4d/Rain.c4d/Script.c b/TemplePushing.c4s/CliffPushing.c4d/Rain.c4d/Script.c
new file mode 100644
index 0000000..f31a3f9
--- /dev/null
+++ b/TemplePushing.c4s/CliffPushing.c4d/Rain.c4d/Script.c
@@ -0,0 +1,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);
+}
+