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

Dec 1, 2017, 04:57 PM
PurpleJazz is offline
Reply With Quote
Quote:
Originally Posted by Jelly Jam View Post
Can I somehow remove the lightning that appears behind the rabbit when it's moving and the one around bullets? I want to use it in a level.
OK so this doesn't remove the light trail created by running players (although non-local players don't see this anyway), but does remove the light the player emits normally and removes bullet lighting (except for the light produced by weapon explosions).

Code:
void onLevelLoad() {
    for (int eventID = OBJECT::BLASTERBULLET; eventID <= OBJECT::ELECTROBULLETPU; ++eventID) {
        jjObjectPresets[eventID].lightType = LIGHT::NONE;
    }
}

void onPlayer(jjPLAYER@ play) {
    play.lightType = LIGHT::NONE;
}