Path: blob/main/Scripts/R6/StatueBomb.txt
1319 views
//----------------Sonic CD Statue Bomb Script-----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.Timer6#alias Object.Value1 : Object.YVelocity7#alias Object.Value2 : Object.YLandingPos89// Global SFX10#alias 22 : SFX_G_EXPLOSION111213sub ObjectMain14Object.YVelocity += 102415Object.YPos += Object.YVelocity1617if Object.YPos >= Object.YLandingPos18Object.YPos = Object.YLandingPos19Object.Type = TypeName[Blank Object]2021CreateTempObject(TypeName[Explosion], 0, Object.XPos, Object.YPos)22PlaySfx(SFX_G_EXPLOSION, false)23end if24end sub252627sub ObjectPlayerInteraction28PlayerObjectCollision(C_TOUCH, -8, -8, 8, 8)29if CheckResult == true30CallFunction(Player_Hit)31end if32end sub333435sub ObjectDraw36TempValue0 = Object.Timer37TempValue0 >>= 138DrawSprite(TempValue0)3940Object.Timer++41Object.Timer &= 342end sub434445sub ObjectStartup46LoadSpriteSheet("R6/Objects.gif")4748SpriteFrame(-8, -8, 16, 16, 43, 67) // #0 - Bomb frame 049SpriteFrame(-8, -8, 16, 16, 60, 67) // #1 - Bomb frame 150end sub515253// ========================54// Editor Subs55// ========================5657sub RSDKDraw58DrawSprite(0)59end sub606162sub RSDKLoad63LoadSpriteSheet("R6/Objects.gif")6465SpriteFrame(-8, -8, 16, 16, 43, 67) // #0 - Bomb6667SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")68end sub697071