Advertisement
Chronos_Ouroboros

Untitled

Dec 16th, 2018
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.38 KB | None | 0 0
  1. action void A_BloodOverlay () {
  2.     let po = player.FindPSprite (3);
  3.     let main = player.FindPSprite (PSP_Weapon);
  4.  
  5.     if (!po || !main)
  6.         return;
  7.  
  8.     int stage = 0;
  9.          if (invoker.jamstacks >=  8 && invoker.jamstacks < 30) stage = 1;
  10.     else if (invoker.jamstacks >= 30 && invoker.jamstacks < 52) stage = 2;
  11.     else if (invoker.jamstacks >= 52 && invoker.jamstacks < 64) stage = 3;
  12.     else if (invoker.jamstacks >= 64                          ) stage = 4;
  13.  
  14.     if (stage == 0)
  15.         return;
  16.  
  17.     string colorLetter = "";
  18.     if (invoker.mBlood ~== "blue")
  19.         colorLetter = "Y";
  20.     else if (invoker.mBlood ~== "green")
  21.         colorLetter = "Z";
  22.     else
  23.         colorLetter = "X";
  24.  
  25.          if (main.sprite == GetSpriteIndex ("SAWN"))  po.sprite = GetSpriteIndex (String.Format ("S%s%dN", stage, colorLetter));
  26.     else if (main.sprite == GetSpriteIndex ("SAWB"))  po.sprite = GetSpriteIndex (String.Format ("S%s%dB", stage, colorLetter));
  27.     else if (main.sprite == GetSpriteIndex ("SAWS"))  po.sprite = GetSpriteIndex (String.Format ("S%s%dS", stage, colorLetter));
  28.     else if (main.sprite == GetSpriteIndex ("SAWF"))  po.sprite = GetSpriteIndex (String.Format ("S%s%dF", stage, colorLetter));
  29.     else if (main.sprite == GetSpriteIndex ("SAW2"))  po.sprite = GetSpriteIndex (String.Format ("S%s%d2", stage, colorLetter));
  30.  
  31.     po.frame = main.frame;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement