Downloads containing mo4a_2-1_revisited1.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Mystery of the Four... chandie Single player 6.6 Download file

File preview

  1. const bool MLLESetupSuccessful = MLLE::Setup(array<MLLEWeaponApply@> = {null, null, ArcaneWeapons::MortarLauncher::Weapon(), DefaultWeapons::Blaster(), WeaponVMega::Backfire::Weapon(), null, DefaultWeapons::Blaster(), null, ArcaneWeapons::MortarLauncher::Weapon()}); ///@MLLE-Generated
  2. #include "MLLE-Include-1.5w.asc" ///@MLLE-Generated
  3. #pragma require "mo4a_2-1_revisited1.j2l" ///@MLLE-Generated
  4. #include "WeaponVMega5.asc" ///@MLLE-Generated
  5. #pragma require "WeaponVMega5.asc" ///@MLLE-Generated
  6. #include "MLLE-DefaultWeapons.asc" ///@MLLE-Generated
  7. #pragma require "MLLE-DefaultWeapons.asc" ///@MLLE-Generated
  8. #include "ArcaneWeapon4.asc" ///@MLLE-Generated
  9. #pragma require "ArcaneWeapon4.asc" ///@MLLE-Generated
  10. #include "TrueColor v13.asc"
  11. #include "Jazz1Enemies v05.asc"
  12. #include "Resize v11.asc"
  13. #include "HH18savegems.asc"
  14.  
  15. void onLevelLoad()  {
  16.         jjSetWaterLevel(2030, true);
  17.         jjWaterLighting = WATERLIGHT::GLOBAL;
  18.         gem::restorePlayerGems();
  19.         p.buttstomp = 121;
  20.         jjLevelName = ("@@@@@@@@@Central Area");
  21.         jjObjectPresets[OBJECT::SAVEPOST].behavior = CheckpointWrapper;
  22.         jjObjectPresets[OBJECT::SAVEPOST].deactivates = false;
  23.  
  24.         jjObjectPresets[OBJECT::WEENIE].behavior = Key();
  25.         jjObjectPresets[OBJECT::WEENIE].scriptedCollisions = true;
  26.  
  27.         jjObjectPresets[OBJECT::BANANA].behavior = Carpet();
  28.         jjObjectPresets[OBJECT::BANANA].scriptedCollisions = true;
  29.  
  30.         jjObjectPresets[OBJECT::CHICKENLEG].behavior = AntiCarrot();
  31.         jjObjectPresets[OBJECT::CHICKENLEG].scriptedCollisions = true;
  32.         jjObjectPresets[OBJECT::CHICKENLEG].determineCurAnim(ANIM::PICKUPS,82);
  33.        
  34.         jjObjectPresets[OBJECT::AIRBOARD].behavior = SuperCopter();
  35.         jjObjectPresets[OBJECT::AIRBOARD].scriptedCollisions = true;
  36.  
  37.         jjObjectPresets[OBJECT::ICEAMMO15].behavior = Mortallaunchergun();
  38.         jjObjectPresets[OBJECT::ICEAMMO15].scriptedCollisions = true;
  39.         jjObjectPresets[OBJECT::ICEAMMO15].playerHandling = HANDLING::SPECIAL;
  40.  
  41.         jjObjectPresets[OBJECT::GUN9AMMO3].deactivates = false;
  42.  
  43.         jjObjectPresets[OBJECT::MOTH].behavior = Magic;
  44.  
  45.         Jazz1::MakeEnemy(OBJECT::DRAGONFLY, Jazz1::Enemies::Jungrock_RedBuzzer).SetUsesJJ2StyleDeathAnimation(true);
  46.         Jazz1::MakeEnemy(OBJECT::LIZARD, Jazz1::Enemies::Pezrox_GreenSnake).SetUsesJJ2StyleDeathAnimation(true);
  47.         Jazz1::MakeEnemy(OBJECT::RAVEN, Jazz1::Enemies::Sluggion_Dragoon).SetUsesJJ2StyleDeathAnimation(true);
  48.         Jazz1::MakeEnemy(OBJECT::HATTER, Jazz1::Enemies::Turtemple_JeTurtle, true).SetUsesJJ2StyleDeathAnimation(true).SetBulletFireSound(SOUND::INTRO_SHOT1).SetBulletExplosionSound(SOUND::COMMON_GUNSM1);
  49.  
  50.         jjObjectPresets[OBJECT::EVA].behavior = TimeMachine;
  51.         jjObjectPresets[OBJECT::EVA].determineCurAnim(ANIM::FLAG, 1);
  52.         jjObjectPresets[OBJECT::EVA].putOnGround(false);
  53.         jjObjectPresets[OBJECT::EVA].scriptedCollisions = true;
  54.         jjANIMATION@ tmAnim = jjAnimations[jjObjectPresets[OBJECT::EVA].curAnim];
  55.         for (uint i = 0; i < tmAnim.frameCount; ++i)
  56.                 jjAnimFrames[tmAnim.firstFrame + i].coldSpotY = -44;
  57.         for (uint i = 0; i < tmAnim.frameCount; ++i)
  58.                 jjAnimFrames[tmAnim.firstFrame + i].hotSpotY = -64;
  59.         for (uint i = 0; i < tmAnim.frameCount; ++i)
  60.                 jjAnimFrames[tmAnim.firstFrame + i].hotSpotX = -54;
  61.  
  62.         jjObjectPresets[OBJECT::FLYCARROT].determineCurAnim(ANIM::PLUS_WARP, 0);
  63.         jjObjectPresets[OBJECT::FLYCARROT].behavior = Bonus;
  64.         jjObjectPresets[OBJECT::FLYCARROT].scriptedCollisions = true;
  65.         jjANIMATION@ BAnim = jjAnimations[jjObjectPresets[OBJECT::FLYCARROT].curAnim];
  66.         for (uint i = 0; i < BAnim.frameCount; ++i)
  67.                 jjAnimFrames[BAnim.firstFrame + i].hotSpotY = -85;
  68.         for (uint i = 0; i < BAnim.frameCount; ++i)
  69.                 jjAnimFrames[BAnim.firstFrame + i].hotSpotX = 20;
  70.  
  71.         jjObjectPresets[OBJECT::INVINCIBILITY].determineCurAnim(ANIM::PLUS_WARP, 1);
  72.         jjObjectPresets[OBJECT::INVINCIBILITY].behavior = Bonuseye;
  73.         jjObjectPresets[OBJECT::INVINCIBILITY].scriptedCollisions = true;
  74.         jjObjectPresets[OBJECT::INVINCIBILITY].bulletHandling = HANDLING::IGNOREBULLET;
  75.         jjObjectPresets[OBJECT::INVINCIBILITY].playerHandling = HANDLING::PLAYERBULLET;
  76.         jjANIMATION@ BeAnim = jjAnimations[jjObjectPresets[OBJECT::INVINCIBILITY].curAnim];
  77.  
  78.         for (uint i = 0; i < BeAnim.frameCount; ++i)
  79.                 jjAnimFrames[BeAnim.firstFrame + i].hotSpotY = 12;
  80.         for (uint i = 0; i < BeAnim.frameCount; ++i)
  81.                 jjAnimFrames[BeAnim.firstFrame + i].hotSpotX = 26;
  82.  
  83. }
  84.  
  85. void Bonuseye(jjOBJ@ obj){
  86.         obj.direction = -1;
  87.         obj.behave(BEHAVIOR::PICKUP, false);
  88.         obj.draw();
  89. }
  90. void Bonus(jjOBJ@ obj){
  91.         obj.putOnGround();
  92.         obj.direction = -1;
  93.         obj.behave(BEHAVIOR::PICKUP, false);
  94.         obj.draw();
  95. }
  96.  
  97. void Magic(jjOBJ@ obj) {
  98.         obj.behave(BEHAVIOR::MOTH,false);
  99.         if(jjTriggers[8] == true && p.xPos<12*32){
  100.                 jjPARTICLE@ particle = jjAddParticle(PARTICLE::FLOWER);
  101.                 particle.xPos = obj.xPos;
  102.                 particle.yPos = obj.yPos;
  103.         }
  104. }
  105.  
  106. class Mortallaunchergun : jjBEHAVIORINTERFACE {
  107.  
  108.         void onBehave(jjOBJ@ obj) {
  109.                 if(p.ammo[WEAPON::GUN9] > 1)
  110.                 {obj.delete();}
  111.                 obj.behave(BEHAVIOR::MONITOR); 
  112.         }
  113.         bool onObjectHit(jjOBJ@ obj, jjOBJ@ bullet, jjPLAYER@ play, int force) {
  114.                 if(bullet !is null && play !is null)
  115.                         {obj.behave(BEHAVIOR::EXPLOSION2);
  116.                         jjAddObject(OBJECT::GUN9AMMO3, 78*32, 30*32);
  117.                         jjAddObject(OBJECT::GUN9AMMO3, 79*32, 30*32);
  118.                         jjAddObject(OBJECT::GUN9AMMO3, 70*32, 40*32);
  119.                         jjAddObject(OBJECT::GUN9AMMO3, 76*32, 40*32);                  
  120.                         jjAddObject(OBJECT::GUN9AMMO3, 82*32, 40*32);
  121.                         jjAddObject(OBJECT::GUN9AMMO3, 88*32, 40*32);
  122.                         jjSample(p.xPos, p.yPos, SOUND::COMMON_HARP1, 1000);}
  123.                 return true;
  124.         }
  125.        
  126. }
  127.  
  128. void onFunction0(jjPLAYER@ p) {
  129.         jjTriggers[3] = true;
  130.         jjEnabledASFunctions[0] = false;}
  131.  
  132. void onFunction1(jjPLAYER@ p) {
  133.         p.showText("@@@@@@@@@@@@@@@@@@@@@@@@@Castle Road", STRING::MEDIUM);
  134.         jjEnabledASFunctions[1] = false;}
  135. void onFunction2(jjPLAYER@ p) {
  136.         p.showText("@@@@@@@@@@@@@@@@@@@@@@@@@Sahara Desert", STRING::MEDIUM);
  137.         jjEnabledASFunctions[2] = false;}
  138.  
  139. void onFunction3(jjPLAYER@ p) {
  140. jjNxt("mo4a_2-4_save", false, true);
  141.                 gem::saveGemData();}
  142.  
  143. class Carpet : jjBEHAVIORINTERFACE {
  144.  
  145.         void onBehave(jjOBJ@ obj) {
  146.                 obj.behave(BEHAVIOR::PICKUP);
  147.                 jjANIMATION@ anim = jjAnimations[jjObjectPresets[OBJECT::BANANA].curAnim];
  148.                 anim.frameCount = 1;
  149.                 jjANIMFRAME@ frame = jjAnimFrames[anim.firstFrame];
  150.                 jjPIXELMAP carpet(0, 1*32, 2*32, 1*32, 4);
  151.                 carpet.save(frame);
  152. }
  153.         bool onObjectHit(jjOBJ@ obj, jjOBJ@ bullet, jjPLAYER@ play, int force) {
  154.                 if(p.coins < 1)
  155.                 {play.testForCoins(1);}
  156.                 if(p.coins >= 1)
  157.                 {jjNxt("mo4a_2-2_save", false, true);
  158.                 gem::saveGemData();}
  159.  
  160.                 return true;
  161.         }
  162. }
  163.  
  164.  
  165. void TimeMachine(jjOBJ@ obj){
  166.         obj.behave(BEHAVIOR::EVA, false);
  167.                 jjDrawResizedSpriteFromCurFrame(obj.xPos, obj.yPos, obj.curFrame, 1, 1, SPRITE::PALSHIFT, 8);
  168.  
  169. }
  170.  
  171. class AntiCarrot: jjBEHAVIORINTERFACE {
  172.  
  173.         void onBehave(jjOBJ@ obj) {
  174.                 obj.determineCurFrame();
  175.                 obj.behave(BEHAVIOR::PICKUP, false);
  176.                 ++obj.counter;
  177.                 obj.yPos = jjSin(obj.counter*15 + 5)*4 + obj.yOrg;
  178.                 jjDrawSpriteFromCurFrame(obj.xPos, obj.yPos, obj.curFrame, obj.direction, SPRITE::PALSHIFT, -24);
  179.         }
  180.  
  181.         bool onObjectHit(jjOBJ@ obj, jjOBJ@ bullet, jjPLAYER@ p, int force) {
  182.                 p.health = 1;
  183.                 p.blink = 245; 
  184.                 jjSample(obj.xPos, obj.yPos, SOUND::COMMON_EAT1, 1000);
  185.                 obj.frameID = 0;
  186.                 obj.behavior = BEHAVIOR::EXPLOSION2;
  187.  
  188.                 return true;
  189.         }
  190. }
  191.  
  192.  
  193. bool buyammo = false;
  194. bool startrush = false;
  195. bool readytorush = false;
  196.  
  197. void onPlayer(jjPLAYER@ p) {
  198.         gem::trackPlayerGems(p);
  199.         gem::upgradeHealth(p);
  200.  
  201.         if(p.food == 100 && jjKey[0x52] == false && startrush == false)
  202.                 {p.showText("@@@@@@@@@@@@@@@@Press 'R' when you need to use Sugar Rush!", STRING::MEDIUM);
  203.                 p.startSugarRush(0);
  204.                 startrush = true;
  205.                 readytorush = true;}
  206.  
  207.         if(readytorush == true)
  208.                 {p.food = 100;}
  209.  
  210.         if(p.food == 100 && jjKey[0x52])
  211.                 {p.startSugarRush(1400);
  212.                 p.food = 0;
  213.                 readytorush = false;
  214.                 startrush = false;
  215.         }
  216.  
  217.         if(p.xPos<11*32 && p.yPos>45*32 && p.coins < 3)
  218.                 {p.testForCoins(3);}
  219.         if(p.coins >= 3)
  220.                 {jjTriggers[8] = true;}
  221.         if(p.ammo[WEAPON::GUN9] < 1 && p.xPos>65*32 && p.xPos<67*32 && p.yPos<43*32 && p.yPos>39*32 && jjKey[0x50] && p.gems[GEM::RED]<50 && buyammo == false)
  222.                 {p.testForGems(50, GEM::RED);}
  223.         if(p.ammo[WEAPON::GUN9] < 1 && p.xPos>65*32 && p.xPos<67*32 && p.yPos<43*32 && p.yPos>39*32 && jjKey[0x50] && p.gems[GEM::RED]>=50 && buyammo == false)
  224.                 {p.testForGems(50, GEM::RED);
  225.         jjTriggers[2]=true;
  226.         buyammo = true;}
  227.         if(p.ammo[WEAPON::GUN9] >= 1 && p.xPos>65*32 && p.xPos<67*32 && p.yPos<43*32 && p.yPos>39*32 && jjKey[0x50] && buyammo == false)
  228.                 {p.showText("@@You already have the weapon.");}
  229.         p.lightType = LIGHT::NONE;
  230.         if(p.coins == 0)
  231.                 {p.coins += 3;}
  232.         if(SuperCopterOn > jjGameTicks)
  233.                 {jjCharacters[CHAR::JAZZ].helicopterYSpeed= 0;}
  234.         if(SuperCopterOn < jjGameTicks)
  235.                 {jjCharacters[CHAR::JAZZ].helicopterYSpeed= 1;}
  236. }
  237.  
  238. int SuperCopterOn = 0;
  239.  
  240. class SuperCopter : jjBEHAVIORINTERFACE {
  241.         void onBehave(jjOBJ@ obj) {
  242.                 obj.behave(BEHAVIOR::PICKUP, false);
  243.                 obj.determineCurAnim(ANIM::PICKUPS, 33);
  244.                 ++obj.counter;
  245.                 obj.yPos = jjSin(obj.counter*15 + 5)*4 + obj.yOrg;
  246.                 jjDrawSpriteFromCurFrame(obj.xPos, obj.yPos, obj.curFrame, obj.direction, SPRITE::PALSHIFT, -8);
  247.  
  248. }
  249.  
  250.         bool onObjectHit(jjOBJ@ obj, jjOBJ@, jjPLAYER@ play, int force) {
  251.                 play.timerStart(360);
  252.                 p.morphTo(CHAR::JAZZ);
  253.                 SuperCopterOn= jjGameTicks + 6 * 61;
  254.                 obj.behavior = BEHAVIOR::EXPLOSION2;
  255.                 obj.frameID = 0;
  256.                 jjSample(obj.xPos, obj.yPos, SOUND::COMMON_PICKUP1, 6000);
  257.  
  258.                 return true;
  259.         }
  260.  
  261. }
  262.  
  263. void onMain() {
  264. p.ammo[WEAPON::ICE] = 0;
  265. gem::deleteCollectedGems();
  266. if(jjKey[9] && jjKey[0x51]) {
  267. p.morphTo(CHAR::JAZZ, false);
  268. }
  269. if(jjKey[9] && jjKey[0x57]) {
  270. p.morphTo(CHAR::SPAZ, false);
  271. }
  272. if(jjKey[9] && jjKey[0x45]) {
  273. p.morphTo(CHAR::LORI, false);
  274. }
  275. }
  276.  
  277. class Key : jjBEHAVIORINTERFACE {
  278.  
  279.         void onBehave(jjOBJ@ obj) {
  280.                 obj.behave(BEHAVIOR::PICKUP, false);
  281.                 jjANIMATION@ anim = jjAnimations[jjObjectPresets[OBJECT::WEENIE].curAnim];
  282.                 anim.frameCount = 1; //The Bee enemy's animation has several frames, but the tileset only has material for one. Editing jjANIMATION::frameCount to 1 will ensure that the animation never extends beyond the one frame we're providing.
  283.                 jjANIMFRAME@ frame = jjAnimFrames[anim.firstFrame];
  284.                 jjPIXELMAP pump(0, 0*32, 1*32, 1*32, 4);
  285.                 pump.save(frame);
  286.                 ++obj.counter;
  287.                 obj.yPos = jjSin(obj.counter*15 + 5)*4 + obj.yOrg;
  288.                 jjDrawSpriteFromCurFrame(obj.xPos, obj.yPos, obj.curFrame, obj.direction, SPRITE::NORMAL);
  289. }
  290.         bool onObjectHit(jjOBJ@ obj, jjOBJ@ bullet, jjPLAYER@ player, int force) { //"bullet" will always be null, because this is a PICKUP; "force" doesn't usually matter, because in normal JJ2 you can collect pickups regardless of whether you're using a special attack at the time.
  291.                 jjTriggers[1]=true;
  292.                 obj.behavior = BEHAVIOR::EXPLOSION2;
  293.                 jjSample(obj.xPos, obj.yPos, SOUND::MENUSOUNDS_TYPEENTER, 1000);
  294.  
  295.                 return true; //See plus-angelscript.html for an explanation of jjBEHAVIORINTERFACE::onObjectHit's return value, or else return true all the time and don't worry about it.
  296.         }
  297. }
  298.  
  299.  
  300. bool onDrawHealth(jjPLAYER@ player, jjCANVAS@ canvas) {
  301.     canvas.drawSprite(20, 585, ANIM::PICKUPS, 84, jjGameTicks>>2, -1, SPRITE::PALSHIFT, -8);
  302.     canvas.drawString(30, 585, formatInt(player.coins%4, "1") + "/3", STRING::SMALL, STRING::NORMAL);
  303.     return false;
  304. }
  305.  
  306.  
  307. bool onDrawLives(jjPLAYER@ player, jjCANVAS@ canvas) {return true;}
  308.  
  309. void onLevelReload()  {
  310.         MLLE::Palette.apply();
  311.         jjSetWaterLevel(2030, true);
  312.         jjWaterLighting = WATERLIGHT::GLOBAL;
  313.         gem::restorePlayerGems();
  314.         jjLocalPlayers[0].lives++;
  315.         buyammo == false;
  316.         jjTriggers[2] = false;
  317.         for (uint i = 0; i < 32; ++i)
  318.                 jjTriggers[i] = SavedTriggers[i];
  319. }
  320.  
  321. array<bool> SavedTriggers(32, false);
  322. //Extendable Checkpoints by VioletCLM
  323. void CheckpointWrapper(jjOBJ@ obj) {
  324.   if (obj.state == STATE::STOP) { //don't do anything anymore
  325.     jjDrawSpriteFromCurFrame(obj.xPos, obj.yPos, obj.curFrame, obj.direction, SPRITE::PALSHIFT, 8);
  326.   } else if (obj.state == STATE::DEACTIVATE) { //due to death
  327.     obj.deactivate();
  328.   } else {
  329.     obj.behave(BEHAVIOR::CHECKPOINT);
  330.         jjDrawSpriteFromCurFrame(obj.xPos, obj.yPos, obj.curFrame, obj.direction, SPRITE::PALSHIFT, 8);
  331.     if (obj.state == STATE::DONE) { //triggered by the player hitting it
  332.       obj.state = STATE::STOP;
  333.       //save the current state of some properties
  334.       for (uint i = 0; i < 32; ++i)
  335.         SavedTriggers[i] = jjTriggers[i];
  336.  
  337.       //OPTIONAL: this loop makes checkpoints reusable, so only the most recent checkpoint you touched is ever active
  338.       for (int i = jjObjectCount; --i > 0;) {
  339.         jjOBJ@ obj2 = jjObjects[i];
  340.         if (obj2.eventID == OBJECT::CHECKPOINT && i != obj.objectID && obj2.isActive) {
  341.           obj2.state = STATE::SLEEP;
  342.           obj2.var[0] = 0;
  343.         }
  344.       }
  345.     }
  346.   }
  347. }
  348.  
  349. jjTEXTAPPEARANCE SignTextAppearance = STRING::NORMAL;
  350. class Sign {
  351.         private int xPos, yPos; //These pixel-based positions will be generated from tile-based positions in the constructor by multiplying by 32
  352.         private string text;
  353.         private uint widthOfText;
  354.         Sign(){} //AngelScript requires any class that appears in any array to have an explicit default constructor, even if it's never called
  355.         Sign(int xTile, int yTile, const string &in t) {
  356.                 xPos = xTile * 32; //Since this is a constant operation, it could strictly be performed in the draw method instead of the constructor, but this way involves fewer multiplication instructions
  357.                 yPos = yTile * 32; //
  358.                 text = t;
  359.                 SignTextAppearance.newline = STRING::SPECIALSIGN; //Causes the drawString method to interpret instances of the \n character as signals to drop down to a new line, similar to the special effect of the @ character in the STRING::SPIN appearance.
  360.                 SignTextAppearance.spacing = -2; //int jjTEXTAPPEARANCE::spacing is new in 5.2, and this particular value is equivalent to prefixing the string with "ยง2". Make sure to check out bool jjTEXTAPPEARANCE::monospace too, though it didn't end up getting used in this level.
  361.                 widthOfText = jjGetStringWidth(text, STRING::SMALL, SignTextAppearance); //Used for determining how large of a dark rectangle should be drawn behind the text. A matching heightOfText value could of course be generated by counting the number of newline characters--for example, "heightOfText = text.split("\n").length * 20;"--but here the rectangles are constant height instead to limit the temptation to ramble on and on.
  362.         }
  363.         void draw(jjCANVAS@ layer, uint8 textIntensity) const { //Because this method will be called from an onDraw method, it's important to have a jjCANVAS@ passed among the arguments.
  364.                 layer.drawRectangle(xPos, yPos - 16, widthOfText + 8, 55, 0, SPRITE::TRANSLUCENT);
  365.                 layer.drawString(xPos, yPos, text, STRING::SMALL, SignTextAppearance, 0, SPRITE::BLEND_HARDLIGHT, textIntensity);
  366.         }
  367. }
  368. const array<Sign> Signs = {
  369.         Sign(102, 59, "Find the second Time Freezer\nand come back."),
  370.         Sign(57, 61, "A piece of advice:\nDon't eat everything you see around here.")
  371.         Sign(20, 50, "A magical cave, full of goodies\nlies beneath the West side of the desert."),
  372.         Sign(150, 38, "Have you seen my husband?\nHis name is Ali Babba."),
  373.         Sign(181, 21, "You brought back my lamp!\nTake this as a reward."),
  374.         Sign(146, 54, "40 Thieves are destroyed\nby a brave rabbit, so they say."),
  375.         Sign(169, 61, "We have the water supply\nthrough the canals."),
  376.         Sign(209, 57, "Hey, how did you\nget back?!"),
  377.         Sign(70, 41, "Press P if you'd like to\nbuy Mortal Launcher for 50 Gems."),
  378. };
  379.  
  380. void onDrawLayer3(jjPLAYER@, jjCANVAS@ layer) {
  381.         if(jjKey[0x54]){
  382.         const uint8 textIntensity = 200 + int(jjSin(jjGameTicks * 16) * 50);
  383.         for (uint signID = 0; signID < Signs.length; ++signID)
  384.                 Signs[signID].draw(layer, textIntensity);
  385. }
  386. }
  387.  
  388. void onDrawLayer2(jjPLAYER@, jjCANVAS@ layer) {
  389.         if(p.yPos <21*32 && p.xPos >181*32 && p.yPos >14*32){
  390.         const uint8 textIntensity = 200 + int(jjSin(jjGameTicks * 16) * 50);
  391.         for (uint signID = 0; signID < Signs.length; ++signID)
  392.                 Signs[signID].draw(layer, textIntensity);
  393. }
  394. }
  395. bool onDrawAmmo(jjPLAYER@ player, jjCANVAS@ canvas) {
  396.         return MLLE::WeaponHook.drawAmmo(player, canvas);
  397. }
  398.