Path: blob/main/Scripts/R6/HangingTrigger.txt
1319 views
//--------------Sonic CD Hanging Trigger Script---------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases56// Stage SFX7#alias 2 : SFX_S_CATCH8910sub ObjectPlayerInteraction11PlayerObjectCollision(C_TOUCH, -8, -2, 8, 20)12if Player.YVelocity > -113if Player.XPos > Object.XPos14if CheckResult == true15if Player.Animation != ANI_HANGING16Player.State = Player_State_HangBar1718Player.YVelocity = 01920Player.Animation = ANI_HANGING2122Player.YPos = Player.CollisionTop23Player.YPos *= -0x1000024Player.YPos += Object.YPos2526PlayStageSfx(SFX_S_CATCH, false)2728Screen.AdjustCameraY = 029end if30end if31end if32end if33end sub343536// ========================37// Editor Subs38// ========================3940sub RSDKDraw41Object.InkEffect = 142DrawSpriteFX(0, FX_INK, Object.XPos, Object.YPos)43end sub444546sub RSDKLoad47LoadSpriteSheet("Players/Sonic3.gif")48SpriteFrame(0, 0, 32, 48, 1, 132) // #0 - Hanging Sonic4950SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")51end sub525354