Path: blob/main/Scripts/Global/BlueShield.txt
1319 views
//----------------Sonic CD Blue Shield Script-----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.Timer67// Player Aliases8#alias Object[-2].DrawOrder : PlayerObject.DrawOrder910// Player Aliases11#alias 0 : PLAYER_SONIC_A12#alias 1 : PLAYER_TAILS_A131415sub ObjectMain16// Match the Player's Draw Order17Object.DrawOrder = PlayerObject.DrawOrder1819// If the Player's dead, then unload2021if Player.State == Player_State_Death22Object.Type = TypeName[Blank Object]23end if2425if Player.State == Player_State_Drown26Object.Type = TypeName[Blank Object]27end if2829end sub303132sub ObjectDraw33Object.Timer++3435if Object.Timer == 236Object.Timer = 037Object.Frame++38if Object.Frame > 539Object.Frame = 040end if41end if4243if Warp.Timer == 044if Player.Visible == true45DrawSpriteFX(Object.Frame, FX_INK, Player.XPos, Player.YPos)46end if47end if4849end sub505152sub ObjectStartup53// Load the corresponding sheet for the current Player54if Stage.PlayerListPos == PLAYER_SONIC_A55LoadSpriteSheet("Global/Items2.gif")56end if57if Stage.PlayerListPos == PLAYER_TAILS_A58LoadSpriteSheet("Global/Items2_t.gif")59end if6061#platform: Use_Origins62if Stage.PlayerListPos == PLAYER_KNUCKLES63LoadSpriteSheet("Global/Items2_k.gif")64end if65if Stage.PlayerListPos == PLAYER_AMY66LoadSpriteSheet("Global/Items2_a.gif")67end if68#endplatform6970// 0-5 - Blue Shield Frames71// Every other frame is blank72SpriteFrame(-24, -24, 48, 48, 109, 196)73SpriteFrame(0, 0, 0, 0, 109, 196)74SpriteFrame(-24, -24, 48, 48, 158, 196)75SpriteFrame(0, 0, 0, 0, 109, 196)76SpriteFrame(-24, -24, 48, 48, 207, 196)77SpriteFrame(0, 0, 0, 0, 109, 196)7879end sub808182// ========================83// Editor Subs84// ========================8586sub RSDKDraw87DrawSprite(0)88end sub899091sub RSDKLoad92LoadSpriteSheet("Global/Items2.gif")93SpriteFrame(-24, -24, 48, 48, 109, 196) // Blue Shield, first frame9495SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")96end sub979899