Path: blob/master/Sonic 2/Scripts/Special/RingSparkle.txt
1483 views
// ----------------------------------1// RSDK Project: Sonic 22// Script Description: Ring Sparkle Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Aliases9// ========================1011private alias object.value3 : object.localPos.z12private alias object.value4 : object.worldPos.x13private alias object.value5 : object.worldPos.y14private alias object.value6 : object.worldPos.z1516// Halfpipe Aliases17private alias object.value13 : halfpipe.playerPos.z1819// Face Buffer Flag Aliases20private alias 7 : FACE_SPRITE_3D212223// ========================24// Events25// ========================2627event ObjectUpdate28arrayPos0 = scene3D.vertexCount29arrayPos1 = scene3D.faceCount30faceBuffer[arrayPos1].flag = FACE_SPRITE_3D31faceBuffer[arrayPos1].a = arrayPos032vertexBuffer[arrayPos0].x = object.worldPos.x33vertexBuffer[arrayPos0].y = object.worldPos.y34vertexBuffer[arrayPos0].z = object.worldPos.z35vertexBuffer[arrayPos0].u = TypeName[Ring Sparkle]36vertexBuffer[arrayPos0].v = FX_ROTATE37arrayPos0++3839faceBuffer[arrayPos1].b = arrayPos040vertexBuffer[arrayPos0].x = object.worldPos.x41vertexBuffer[arrayPos0].y = object.worldPos.y42vertexBuffer[arrayPos0].z = object.worldPos.z43vertexBuffer[arrayPos0].u = object.frame44vertexBuffer[arrayPos0].v = 045arrayPos0++4647faceBuffer[arrayPos1].c = arrayPos048vertexBuffer[arrayPos0].x = object.worldPos.x49vertexBuffer[arrayPos0].y = object.worldPos.y50vertexBuffer[arrayPos0].z = object.worldPos.z51vertexBuffer[arrayPos0].u = 0x20052vertexBuffer[arrayPos0].v = 053arrayPos0++5455faceBuffer[arrayPos1].d = arrayPos056vertexBuffer[arrayPos0].x = object.worldPos.x57vertexBuffer[arrayPos0].y = object.worldPos.y58vertexBuffer[arrayPos0].z = object.worldPos.z59scene3D.vertexCount += 460scene3D.faceCount++6162if object.localPos.z < halfpipe[0].playerPos.z63object.type = TypeName[Blank Object]64end if6566object.animationTimer++67if object.animationTimer == 468object.animationTimer = 069object.frame++70if object.frame == 371object.type = TypeName[Blank Object]72object.frame = 073end if74end if75end event767778event ObjectStartup79LoadSpriteSheet("Special/Objects.gif")8081SpriteFrame(-14, -16, 24, 27, 323, 108)82SpriteFrame(-14, -12, 30, 22, 348, 122)83SpriteFrame(-11, -11, 24, 27, 323, 126)84end event858687// ========================88// Editor Events89// ========================9091event RSDKDraw92DrawSprite(0)93end event949596event RSDKLoad97LoadSpriteSheet("Special/Objects.gif")98SpriteFrame(-14, -12, 30, 22, 348, 122)99100SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")101end event102103104