#pragma require "SEroller.asc"
#include "SEroller.asc"
shared interface MLLEWeaponApply { bool Apply(uint, se::WeaponHook@ = null, jjSTREAM@ = null, uint8 = 0); }
namespace se {
class RollerMLLEWrapper : RollerWeapon, MLLEWeaponApply {
bool Apply(uint number, se::WeaponHook@ weaponHook = null, jjSTREAM@ = null, uint8 ammo15EventID = 0) {
if (getAnimSet() is null) {
uint8 animSetID = 0;
while (jjAnimSets[ANIM::CUSTOM[animSetID]] != 0)
++animSetID;
loadAnims(jjAnimSets[ANIM::CUSTOM[animSetID]]);
}
if (getSample() == SOUND::COMMON_FLAP) {
int sampleID = SOUND::BAT_BATFLY1;
while (jjSampleIsLoaded(SOUND::Sample(sampleID)))
++sampleID;
loadSamples(array<SOUND::Sample> = {SOUND::Sample(sampleID)});
}
if (ammo15EventID != 0) {
jjOBJ@ ammo15 = @jjObjectPresets[ammo15EventID];
ammo15.curAnim = getAnimSet() + 2;
ammo15.frameID = 0;
ammo15.determineCurFrame();
}
return setAsWeapon(number, weaponHook);
}
}
}
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.