3.0
13 Aug 2013 10:36
void onPlayer() {
limitedOxygen();
shieldFade();
}
void onPlayerTimerEnd() {
playerDrown();
}
void limitedOxygen() {
if (p.yPos > jjWaterLevel && p.shieldType == 0 && p.timerState == TIMER::STOPPED) p.timerStart(30*70);
if (p.yPos > jjWaterLevel && p.timerTime == 5*70) jjAlert("You are drowning!");
if (p.yPos < jjWaterLevel) p.timerStop();
if (p.shieldType == 2) p.timerStop();
}
void shieldFade() {
if (p.yPos > jjWaterLevel && p.shieldType == 1) p.shieldType = 0;
if (p.yPos > jjWaterLevel && p.shieldType == 3) p.shieldType = 0;
}
void playerDrown() {
p.kill();
jjChat("/me forgot to come up for air");
}
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.