Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
violetclm DOM Episodes I... | Violet CLM | Custom / Concept | 9 |
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;
}
Jazz2Online © 1999-INFINITY (Site Credits). We have a Privacy Policy. Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats.
Eat your lima beans, Johnny.