Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- action void A_BloodOverlay () {
- let po = player.FindPSprite (3);
- let main = player.FindPSprite (PSP_Weapon);
- if (!po || !main)
- return;
- int stage = 0;
- if (invoker.jamstacks >= 8 && invoker.jamstacks < 30) stage = 1;
- else if (invoker.jamstacks >= 30 && invoker.jamstacks < 52) stage = 2;
- else if (invoker.jamstacks >= 52 && invoker.jamstacks < 64) stage = 3;
- else if (invoker.jamstacks >= 64 ) stage = 4;
- if (stage == 0)
- return;
- string colorLetter = "";
- if (invoker.mBlood ~== "blue")
- colorLetter = "Y";
- else if (invoker.mBlood ~== "green")
- colorLetter = "Z";
- else
- colorLetter = "X";
- if (main.sprite == GetSpriteIndex ("SAWN")) po.sprite = GetSpriteIndex (String.Format ("S%s%dN", stage, colorLetter));
- else if (main.sprite == GetSpriteIndex ("SAWB")) po.sprite = GetSpriteIndex (String.Format ("S%s%dB", stage, colorLetter));
- else if (main.sprite == GetSpriteIndex ("SAWS")) po.sprite = GetSpriteIndex (String.Format ("S%s%dS", stage, colorLetter));
- else if (main.sprite == GetSpriteIndex ("SAWF")) po.sprite = GetSpriteIndex (String.Format ("S%s%dF", stage, colorLetter));
- else if (main.sprite == GetSpriteIndex ("SAW2")) po.sprite = GetSpriteIndex (String.Format ("S%s%d2", stage, colorLetter));
- po.frame = main.frame;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement