Downloads containing ab22ctf02.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 22 levels Jazz2Online Multiple N/A Download file

File preview

const bool MLLESetupSuccessful = MLLE::Setup(); ///@MLLE-Generated
#include "MLLE-Include-1.5.asc" ///@MLLE-Generated
#pragma require "ab22ctf02-MLLE-Data-1.j2l" ///@MLLE-Generated
#pragma require "ab22ctf02.j2l" ///@MLLE-Generated
#pragma require "SEroller.asc"
#include "SEroller.asc"
jjSTREAM snowsave("blgempire.asdat");
bool snowfall = true;

se::DefaultWeaponHook weaponHook; 

void onLevelLoad() {

	se::roller.loadAnims(jjAnimSets[ANIM::CUSTOM[99]]);
	se::roller.loadSamples(array<SOUND::Sample> = {SOUND::P2_FART});
	se::roller.setAsWeapon(2, weaponHook);
	jjUseLayer8Speeds = true;

	while (!snowsave.isEmpty()) {
		snowsave.pop(snowfall);
	}
	if (snowfall == true){
	jjConsole("The snow is currently on! Type !snow if you wish to turn it |off.");
	}
	else if (snowfall == false)
	jjConsole("The snow is currently |off!||||||| Type !snow if you wish to turn it on.");
}

void onPlayer(jjPLAYER@ play) {
	weaponHook.processPlayer(play);
}

void onPlayerInput(jjPLAYER@ play) {
	weaponHook.processPlayerInput(play);
}

void onReceive(jjSTREAM &in packet, int clientID) {
	weaponHook.processPacket(packet, clientID);
}

bool onDrawAmmo(jjPLAYER@ play, jjCANVAS@ canvas) {
	return weaponHook.drawAmmo(play, canvas);
}

void onMain() {
if (snowfall == true) {
	jjIsSnowing = true;
	jjSnowingType = SNOWING::FLOWER;
	jjSnowingIntensity = 1;
}
else if (snowfall == false) {
	jjIsSnowing = false;
}
for (int i = 1; i < jjObjectCount; i++) {
	jjOBJ@ o = jjObjects[i];
	if (o.isActive && o.xPos >= 91*32 && o.xPos <= 93*32 && o.yPos >= 10*32  && o.yPos <= 12*32) {
	if (o.eventID == OBJECT::RFPOWERUP || o.eventID == OBJECT::GENERATOR) {
		o.direction = -1;
		o.xPos = 92*32 + 32;
		}
	}
}
}

bool onLocalChat(string &in text, CHAT::Type type) {
	if (jjRegexMatch(text, "!snow", true)) {
		if (snowfall == true) {
			snowfall = false;
			snowsave.push(snowfall);
			snowsave.save("blgempire.asdat");
			jjConsole("|||You have turned ||||||off|| the snow");
		}
		else {
			snowfall = true;
			snowsave.push(snowfall);
			snowsave.save("blgempire.asdat");
			jjConsole("|||You have turned |||||on||| the snow");
		}
	return true;
	}
	else return false;
}