Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
Anniversary Bash 18 Levels | Jazz2Online | Multiple | N/A | |||||
LFGPU-3000 | FireSworD | Battle | 8.6 | |||||
LFGPU-3000 | FireSworD | Battle | 8.6 |
void onMain() {
if (jjGameTicks % 5 == 0) {
for (int i = 0; i < 32; i++) {
jjPLAYER@ player = jjPlayers[i];
if (player.isActive && player.isInGame && jjEventGet(int(player.xPos) >> 5, int(player.yPos) >> 5) == AREA::AREAID) {
for (int j = 0; j < jjObjectCount; j++) {
jjOBJ@ source = jjObjects[j];
if (source.isActive && source.eventID == OBJECT::BUBBLER) {
for (int k = 0; k < 2; k++) {
int id = jjAddObject(OBJECT::LASER, source.xPos, source.yPos - 20.f + float(k << 4), i, CREATOR::PLAYER);
if (id != 0) {
jjOBJ@ bull = jjObjects[id];
bull.playerHandling = HANDLING::PARTICLE;
for (int l = 0; l < jjObjectCount; l++) {
jjOBJ@ obj = jjObjects[l];
if (obj.isActive && obj.xPos > bull.xPos && abs(obj.yPos - bull.yPos) < 16.f)
bull.objectHit(obj, obj.playerHandling);
if (jjGameTicks % 10 == 0) jjSample(obj.xPos, obj.yPos, SOUND::AMMO_LASER, 36, 0);
}
if (jjIsServer) {
for (int l = 0; l < 32; l++) {
jjPLAYER@ victim = jjPlayers[l];
if (victim.isActive && victim.isInGame && victim.health > 0 && victim.xPos > bull.xPos && abs(victim.yPos - bull.yPos) < 16.f && (jjGameMode != GAME::CTF || jjFriendlyFire || player.team != victim.team))
victim.hurt(7, false, player);
jjSamplePriority(SOUND::AMMO_LASER);
}
}
}
}
}
}
break;
}
}
}
}
void onLevelLoad() {
jjUseLayer8Speeds = 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.