Downloads containing elfgpu.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 18 Levels Jazz2Online Multiple N/A Download file
JJ2+ Only: LFGPU-3000Featured Download FireSworD Battle 8.6 Download file
JJ2+ Only: LFGPU-3000Featured Download FireSworD Battle 8.6 Download file

File preview

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;
}