Path: blob/master/Sonic 1/Scripts/SYZ/BossBlock.txt
1483 views
// ----------------------------------1// RSDK Project: Sonic 12// Script Description: Boss Block Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Aliases9// ========================1011private alias 0 : BOSSBLOCK_SOLID12private alias 1 : BOSSBLOCK_NONSOLID1314private alias 0 : BOSSBLOCK_BLOCK15private alias 1 : BOSSBLOCK_DEBRIS161718// ========================19// Events20// ========================2122event ObjectUpdate23if object.propertyValue == BOSSBLOCK_BLOCK24if object.state == BOSSBLOCK_SOLID25foreach (GROUP_PLAYERS, currentPlayer, ACTIVE_ENTITIES)26BoxCollisionTest(C_SOLID, object.entityPos, -16, -16, 16, 16, currentPlayer, C_BOX, C_BOX, C_BOX, C_BOX)27next28end if29else30object.yvel += 0x180031object.xpos += object.xvel32object.ypos += object.yvel3334if object.outOfBounds == true35object.type = TypeName[Blank Object]36end if37end if38end event394041event ObjectDraw42DrawSprite(object.propertyValue)43end event444546event ObjectStartup47LoadSpriteSheet("SYZ/Objects.gif")48SpriteFrame(-16, -16, 32, 32, 110, 152)49SpriteFrame(-8, -8, 16, 16, 110, 152)50SpriteFrame(-8, -8, 16, 16, 126, 152)51SpriteFrame(-8, -8, 16, 16, 110, 168)52SpriteFrame(-8, -8, 16, 16, 126, 168)53end event545556// ========================57// Editor Events58// ========================5960event RSDKDraw61DrawSprite(0)62end event636465event RSDKLoad66LoadSpriteSheet("SYZ/Objects.gif")67SpriteFrame(-16, -16, 32, 32, 110, 152)6869// Although used by the object, it shouldn't be set by the editor70SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")71end event727374