Downloads containing VDom6.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: violetclm DOM Episodes I...Featured Download Violet CLM Custom / Concept 9 Download file

File preview

const bool MLLESetupSuccessful = MLLE::Setup(array<MLLEWeaponApply@> = {null, null, null, null, null, null, null, null, SmokeWopens::PhoenixGun::Wopen()}); ///@MLLE-Generated
#include "MLLE-Include-1.5w.asc" ///@MLLE-Generated
#pragma require "vdom.j2t" ///@MLLE-Generated
#pragma require "VDom6.j2l" ///@MLLE-Generated
#include "PhoenixGun.asc" ///@MLLE-Generated
#pragma require "PhoenixGun.asc" ///@MLLE-Generated
#pragma offer "VDom.txt"

///@SaveAndRunArgs -dom -server

bool onDrawAmmo(jjPLAYER@ player, jjCANVAS@ canvas) {
	return MLLE::WeaponHook.drawAmmo(player, canvas);
}

void onLevelReload() { MLLE::Palette.apply(); }
void onLevelLoad() {
	jjObjectPresets[OBJECT::TUFBOSS].state = STATE::WALK;
	jjObjectPresets[OBJECT::TUFBOSS].behavior = TufWrapper;
	jjObjectPresets[OBJECT::BLASTERPOWERUP].behavior = BEHAVIOR::FISH;
	jjObjectPresets[OBJECT::BLASTERPOWERUP].direction = SPRITE::FLIPHV;
	jjObjectPresets[OBJECT::GUN9AMMO3].scriptedCollisions = true;
}
void onLevelBegin() {
	jjWeapons[WEAPON::GUN9].allowedPowerup = true;
}

void TufWrapper(jjOBJ@ obj) {
	obj.energy = 100;
	if (obj.state != STATE::WALK)
		obj.behave(BEHAVIOR::TUFBOSS);
	else {
		bool playerInRange = false;
		for (int i = 0; i < jjLocalPlayerCount; ++i)
			if (abs(jjLocalPlayers[i].xPos - obj.xPos) < 380 && abs(jjLocalPlayers[i].yPos - obj.yPos) < 280) {
				playerInRange = true;
				break;
			}
		obj.behave(playerInRange ? BEHAVIOR::TUFBOSS : BEHAVIOR::WALKINGENEMY);
	}
}

void onFunction0(jjPLAYER@ player, uint8 warpID) {
	if (player.warpID == 0) {
		player.hurt(1, true);
		player.xSpeed = player.xAcc = 0;
		if (player.health > 0) {
			player.direction = 1; //causing them to bounce back leftwards after the warp
			player.warpToID(warpID);
		}
	}
}

void onPlayer(jjPLAYER@ player) {
	player.powerup[WEAPON::GUN9] = true;
	if (player.yPos > jjWaterLevel)
		player.alreadyDoubleJumped = true;
}