Downloads containing hgfRMheckspinball.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: The Redacted Missions happygreenfrog Single player 6.9 Download file

File preview

#include "MLLE-Include-1.4.asc"
const bool MLLESetupSuccessful = MLLE::Setup();
#pragma require "Carrot1.j2t"
#pragma require "hgfRMheckspinball-MLLE-Data-1.j2l"
#pragma require "hgfRMheckspinball.j2l"

void onLevelLoad()
{
jjObjectPresets[OBJECT::BILSY].energy = 30+(jjDifficulty*20);
jjObjectPresets[OBJECT::BUBBA].energy = 30+(jjDifficulty*20);
}

void onMain()
{
 int bilsyHP = 100;
 int bubbaHP = 100;
 for (int q = 0; q < jjLocalPlayerCount; q++)
 {
  jjPLAYER@ p = jjLocalPlayers[q];
  if (p.bossActivated == true)
  {
   for (int i = 1; i < jjObjectCount; i++)
   {
    jjOBJ@ o = jjObjects[i];
    if(o.behavior == BEHAVIOR::BILSY)
    {
     bilsyHP = o.energy;
    }
   }
   for (int i = 1; i < jjObjectCount; i++)
   {
	jjOBJ@ o = jjObjects[i];
	if(o.behavior == BEHAVIOR::BUBBA)
    {
	 if (o.energy > bilsyHP)
	 {
	  o.energy = bilsyHP;
	 }
     bubbaHP = o.energy;
    }
   }
   for (int i = 1; i < jjObjectCount; i++)
   {
	jjOBJ@ o = jjObjects[i];
	if(o.behavior == BEHAVIOR::BILSY && bubbaHP > 0 && bilsyHP > bubbaHP)
    {
     o.energy = bubbaHP;
    }
   }
  }
 }
}