Path: blob/main/Scripts/R3/OneWayPlat.txt
1319 views
//--------------Sonic CD One Way Platform Script--------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.YVelocity678sub ObjectPlayerInteraction9PlayerObjectCollision(C_PLATFORM, -32, -8, 32, 8)10end sub111213sub ObjectDraw14if Player.YPos < Object.YPos15if Object.YVelocity < 0x40000016Object.YVelocity += 0x10000017end if18else19if Object.YVelocity > 020Object.YVelocity -= 0x10000021end if22end if2324TempValue0 = Object.XPos25TempValue0 += Object.YVelocity2627DrawSpriteXY(0, TempValue0, Object.YPos)28end sub293031sub ObjectStartup32LoadSpriteSheet("R3/Objects.gif")3334SpriteFrame(-96, -8, 64, 16, 165, 1) // #0 - One Way Platform35end sub363738// ========================39// Editor Subs40// ========================4142sub RSDKDraw43DrawSprite(0)4445if Editor.ShowGizmos == true46TempValue0 = Object.iXPos47TempValue0 -= 3248TempValue0 <<= 164950DrawArrow(TempValue0, Object.YPos, Object.XPos, Object.YPos, 255, 0, 0, 0)51end if52end sub535455sub RSDKLoad56LoadSpriteSheet("R3/Objects.gif")5758SpriteFrame(-96, -8, 64, 16, 165, 1) // #0 - One Way Platform5960SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")61end sub626364