MZ Is there a way to remove the battle fade transition?

I'm currently using the mz3d plugin and want to experiment with having absolutely no transition between overworld travel and battle, just to see what it would look like. Is there any way to get rid of the fade effect that occurs when a battle begins and ends?
Hmmm, when it starts the encounter it seems like it makes next scene 'scene battle', then when it stops 'scene map' that uses launchBattle, launchBattle uses startEncounterEffect which gives a value to _encounterEffectDuration. While _encounterEffectDuration is bigger than 0, it returns isBusy for 'scene map' and makes different stuff happen depending how close to 0 the value gets every frame.

Among those effects are snapForBattleBackground and startBattleBgm and the startFadeOut (+ flashes and zooms). I don't think you need that startBattleBgm, because it begins again in the battle scene, but do you need that bg snap? If not, maybe just get rid of the whole stuff, by setting:

Scene_Map.prototype.encounterEffectSpeed = function() {
return 0;
};

Then when getting back, try and remove the Scene_Battle in the OR in needsFadeIn:

Scene_Map.prototype.needsFadeIn = function() {
return (
SceneManager.isPreviousScene(Scene_Load)
);
};

EDIT:

Also, comment out the fadeout from Scene_Battle stop:

Scene_Battle.prototype.stop = function() {
Scene_Message.prototype.stop.call(this);
if (this.needsSlowFadeOut()) {
this.startFadeOut(this.slowFadeSpeed(), false);
} else {
// this.startFadeOut(this.fadeSpeed(), false);
}
this._statusWindow.close();
this._partyCommandWindow.close();
this._actorCommandWindow.close();
};

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-remove-the-battle-fade-transition.180117/