Thread: MCE rain?
View Single Post
PurpleJazz PurpleJazz's Avatar

JCF Member

Joined: Aug 2006

Posts: 852

PurpleJazz is OFF DA CHARTPurpleJazz is OFF DA CHARTPurpleJazz is OFF DA CHART

May 9, 2020, 03:18 AM
PurpleJazz is offline
Reply With Quote
I assume you're probably referring to the level Sommerdamm by Loon (ab22ctf08.j2l).

If this is the case, then the rain effect is actually achieved by using AngelScript as opposed to MCEs.

Code:
void onFunction0(jjPLAYER@ play) {
     jjIsSnowing = true;
}
void onFunction1(jjPLAYER@ play) {
    jjIsSnowing = false;
}
This level uses Text events with the JJ2+ parameter "AngelScript" set 1 so that different TextIDs can correspond with functions in the level script file. In this instance, the level places AS-enabled Text events with ID 0 and 1 in the appropriate locations to enable and disable the rain respectively when the player touches them. jjIsSnowing is the name given to the global property determining if the level should currently have a weather effect or not.

Additionally worth noting that the level uses a custom rain effect as opposed to the default "bubble" rain that comes built into JJ2+. The script snippet for the more realistic-looking rain can be found here.