Path: blob/main/Scripts/R8/ConveyorWheel.txt
1319 views
//--------------Sonic CD Conveyor Wheel Script----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias 0 : GRAVITY_GROUND678sub ObjectPlayerInteraction9PlayerObjectCollision(C_TOUCH, -64, -64, 64, 64)10if CheckResult == true11#platform: Use_Origins12if Player.State == Player_State_GlideSlide13Player.State = Player_State_Ground14CallFunction(Player_HandleOnGround)15Player.Skidding = 016end if17#endplatform1819if Player.Gravity == GRAVITY_GROUND20if Player.Speed < 0x5000021Player.Speed = 0x5000022else23if Player.Speed > 0x10000024Player.Speed = 0x10000025end if26end if27end if28end if29end sub303132// ========================33// Editor Subs34// ========================3536sub RSDKDraw37if Editor.ShowGizmos == true38Editor.DrawingOverlay = true39TempValue0 = Object.iXPos40TempValue0 -= 6441TempValue0 <<= 1642TempValue1 = Object.iYPos43TempValue1 -= 6444TempValue1 <<= 1645DrawRectOutline(TempValue0, TempValue1, 128, 128, 255, 255, 0, 255)46Editor.DrawingOverlay = false47end if48DrawSprite(0)49end sub505152sub RSDKLoad53LoadSpriteSheet("Global/Display.gif")54SpriteFrame(-16, -16, 32, 32, 1, 143) // #0 - "Script" Icon5556SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")57end sub585960