Downloads containing SEfirework-mlle.asc

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Bad LSD TripFeatured Download Loon Battle 10 Download file
TSF with JJ2+ Only: Starry NightFeatured Download Dragusela Capture the flag 8.3 Download file
TSF with JJ2+ Only: Winterfrost Mountains Dragusela Battle N/A Download file
TSF with JJ2+ Only: Celestial TemplesFeatured Download Dragusela Capture the flag 8.5 Download file
TSF with JJ2+ Only: Anniversary Bash 24 Battle Jazz2Online Battle N/A Download file
TSF with JJ2+ Only: Frogavia V2.5Featured Download TreyLina Battle 9.1 Download file
JJ2+ Only: RAID: Mirrow LegendsFeatured Download Violet CLM Battle 8.5 Download file
TSF with JJ2+ Only: LandfallFeatured Download Loon Battle 9.4 Download file
TSF with JJ2+ Only: Peaceful Worlds Dragusela Multiple 7.5 Download file
TSF with JJ2+ Only: Crown of ThornsFeatured Download PurpleJazz Battle 9.2 Download file
TSF with JJ2+ Only: Anniversary Bash 23 levels Jazz2Online Multiple N/A Download file
JJ2+ Only: violetclm DOM Episodes I...Featured Download Violet CLM Custom / Concept 9 Download file
TSF with JJ2+ Only: Anniversary Bash 22 levels Jazz2Online Multiple N/A Download file
JJ2+ Only: Tech Tree Violet CLM Capture the flag 7.8 Download file
Custom Weapons...Featured Download Violet CLM Other 10 Download file

File preview

  1. #pragma require "SEfirework.asc"
  2. #include "SEfirework.asc"
  3.  
  4. shared interface MLLEWeaponApply { bool Apply(uint, se::WeaponHook@ = null, jjSTREAM@ = null, uint8 = 0); }
  5. namespace se {
  6.         class FireworkMLLEWrapper : FireworkWeapon, MLLEWeaponApply {
  7.                 bool Apply(uint number, se::WeaponHook@ weaponHook = null, jjSTREAM@ = null, uint8 ammo15EventID = 0) {
  8.                         if (getAnimSet() is null) {
  9.                                 uint8 animSetID = 0;
  10.                                 while (jjAnimSets[ANIM::CUSTOM[animSetID]] != 0)
  11.                                         ++animSetID;
  12.                                 loadAnims(jjAnimSets[ANIM::CUSTOM[animSetID]]);
  13.                         }
  14.                        
  15.                         if (getSamples()[0] == SOUND::AMMO_GUNVELOCITY) {
  16.                                 array<SOUND::Sample> samples;
  17.                                 int sampleID = SOUND::BAT_BATFLY1;
  18.                                 while (samples.length < getSampleCount()) {
  19.                                         while (jjSampleIsLoaded(SOUND::Sample(sampleID)))
  20.                                                 ++sampleID;
  21.                                         samples.insertLast(SOUND::Sample(sampleID++));
  22.                                 }
  23.                                 loadSamples(samples);
  24.                         }
  25.                        
  26.                         if (ammo15EventID != 0) {
  27.                                 jjOBJ@ ammo15 = @jjObjectPresets[ammo15EventID];
  28.                                 ammo15.curAnim = getAnimSet() + 2;
  29.                                 ammo15.frameID = 0;
  30.                                 ammo15.determineCurFrame();
  31.                         }
  32.                        
  33.                         return setAsWeapon(number, weaponHook);
  34.                 }
  35.         }
  36. }