Path: blob/main/Scripts/R3/InvisibleBlock.txt
1319 views
//---------------Sonic CD Invisible Block Script--------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// ========================5// Aliases6// ========================78// Climbable9#alias 0 : INVISIBLEBLOCK_CLIMBABLE10#alias 1 : INVISIBLEBLOCK_BLOCK1112// Collision13#alias 4 : C_BOX314#alias 2 : PLAYER_COL_LWALL15#alias 3 : PLAYER_COL_RWALL161718// ========================19// Subs20// ========================2122sub ObjectPlayerInteraction23#platform: Use_Standalone24PlayerObjectCollision(C_BOX, -16, -16, 16, 16)25#endplatform2627#platform: Use_Origins28switch Object.PropertyValue29case INVISIBLEBLOCK_CLIMBABLE30if Player.State != Player_State_LedgePullUp31if Player.Animation == ANI_CLIMBING32PlayerObjectCollision(C_BOX3, -16, -16, 16, 16)33else34PlayerObjectCollision(C_BOX, -16, -16, 16, 16)35if Player.Animation == ANI_GLIDING36switch CheckResult37case PLAYER_COL_LWALL38case PLAYER_COL_RWALL39PlayerObjectCollision(C_BOX3, -16, -16, 16, 16)40CallFunction(Player_ClimbBlock)41break42end switch43end if44end if45end if46break4748case INVISIBLEBLOCK_BLOCK49PlayerObjectCollision(C_BOX, -16, -16, 16, 16)50break51end switch52#endplatform53end sub545556// ========================57// Editor Subs58// ========================5960sub RSDKDraw61DrawSprite(0)6263TempValue0 = Object.iXPos64TempValue0 -= 1665TempValue1 = Object.iYPos66TempValue1 -= 1467DrawRectOutline(TempValue0, TempValue1, 32, 30, 255, 255, 255, 255)68end sub697071sub RSDKLoad72LoadSpriteSheet("Global/Display.gif")73SpriteFrame(-16, -16, 32, 32, 1, 143) // #0 - "Script" Icon7475SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")76end sub777879