Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
RabbitCity 2 | P4rr0t | Single player | 7.7 |
/*************************************************
Created by Parrot86 - RabbitCity 2: The Secret Room
*************************************************/
void onLevelLoad() {
jjAlert("||Level Name: |Warehouse and Port 1 /3");
jjAlert("||RabbitCity 2: The Secret Room - Level: |12");
jjAlert("");
jjAlert("");
jjTexturedBGFadePositionY = 1;
jjUseLayer8Speeds = true;
// Blaster is limited ammo - Thank for zepect!
jjWeapons[WEAPON::BLASTER].infinite = false;
jjWeapons[WEAPON::BLASTER].maximum = maxBlaster;
}
//Blaster Reloading - Thank for zepect!
bool pressedR = false;
const int maxBlaster = 15;
void doReload() {
for(int i = 0; i < jjLocalPlayerCount; i++)
if(jjLocalPlayers[i].ammo[WEAPON::BLASTER] == 0)
jjLocalPlayers[i].ammo[WEAPON::BLASTER] = maxBlaster;
}
bool onDrawAmmo(jjPLAYER@ player, jjCANVAS@ canvas) {
if(player.ammo[WEAPON::BLASTER] == 0)
canvas.drawString(80, jjResolutionHeight - 30, "Press [R] to reload your Blaster!", STRING::MEDIUM, STRING::BOUNCE, 1);
return false;
}
void onMain() {
if(jjKey[0x52] && !pressedR) {
doReload();
pressedR = true;
} else if(!jjKey[0x52]) pressedR = false;
}
void onFunction0() { if (p.timerState != TIMER::STARTED) p.timerStart(2*70, false); }
void onFunction1() { p.timerStop(); }
void onPlayerTimerEnd() {
p.kill();
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| AAAARRGGHHH!");
}
void onFunction2() {
p.showText("@@@@@@@@#YOU FOUND A SECRET!", STRING::MEDIUM);
}
void onFunction3() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| Wow...what is this?");
jjAlert("Player:||||| Oh... enemies!");
}
void onFunction4() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| I can't go!");
}
void onFunction5() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| Heh...");
}
void onFunction7() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** WARNING! Alert - Attack Enemies! ***");
jjAlert("|*** Alert Security: UNSAFE ***");
jjAlert("");
jjAlert("Player:||||| Alert? Meh...");
}
void onFunction8() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** IT'S LOCKED ***");
jjAlert("|*** WARNING! Alert - Attack Enemies! ***");
jjAlert("|*** Alert Security: UNSAFE ***");
jjAlert("");
jjAlert("Player:||||| Hmm.. where is turn off alert");
}
void onFunction9() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("*** IT'S UNLOCKED - ID ACCESS CARD ***");
jjAlert("");
jjAlert("Player:||||| Yes!");
}
void onFunction10() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** COMPUTER: Floppy Disk Not Found! ***");
jjAlert("|*** Error - Insert a Floppy Disk ***");
jjAlert("");
jjAlert("Player:||||| Floppy disk? I can't find a floppy disk");
}
void onFunction11() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** ELEVATOR IS LOCKED - FLOPPY DISK REQUIRED ***");
jjAlert("");
jjAlert("Player:||||| Hmm");
}
void onFunction12() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("*** IT'S UNLOCKED - ID ACCESS CARD ***");
jjAlert("");
jjAlert("Player:||||| Cool");
}
void onFunction13() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** IT'S LOCKED - GREEN ACCESS CARD REQUIRED ***");
jjAlert("");
jjAlert("Player:||||| Grrrr!!!");
}
void onFunction14() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
p.showText("@@@@@*Control Room*", STRING::MEDIUM);
jjAlert("Player:||||| I just turn off alert!");
}
void onDrawLayer4(jjPLAYER@ p, jjCANVAS@ canvas) {
canvas.drawString(32*32+25, 12*32-16, "|Control Room",STRING::MEDIUM);
canvas.drawString(519*32, 60*32-13, "||||<- Warehouse",STRING::MEDIUM);
canvas.drawString(498*32+0, 58*32-13, "||||WELCOME TO",STRING::MEDIUM);
canvas.drawString(497*32, 59*32-13, "||||THE WAREHOUSE",STRING::MEDIUM);
}
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.