Path: blob/master/Sonic 2/Scripts/MPZ/SmallCog.txt
1479 views
// ----------------------------------1// RSDK Project: Sonic 22// Script Description: Small Cog Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Function Declarations9// ========================1011reserve function SmallCog_DebugDraw12reserve function SmallCog_DebugSpawn131415// ========================16// Function Definitions17// ========================1819private function SmallCog_DebugDraw20DrawSprite(0)21end function222324private function SmallCog_DebugSpawn25CreateTempObject(TypeName[Small Cog], 0, object.xpos, object.ypos)26end function272829// ========================30// Events31// ========================3233event ObjectUpdate34// Empty :(35end event363738event ObjectDraw39DrawSprite(MPZSetup_cogFrame)40end event414243event ObjectStartup44LoadSpriteSheet("MPZ/Objects.gif")45SpriteFrame(-12, -12, 24, 24, 133, 126)46SpriteFrame(-12, -12, 24, 24, 158, 126)47SpriteFrame(-12, -12, 24, 24, 158, 126)48SpriteFrame(-12, -12, 24, 24, 183, 126)4950SetTableValue(TypeName[Small Cog], DebugMode_ObjCount, DebugMode_TypesTable)51SetTableValue(SmallCog_DebugDraw, DebugMode_ObjCount, DebugMode_DrawTable)52SetTableValue(SmallCog_DebugSpawn, DebugMode_ObjCount, DebugMode_SpawnTable)53DebugMode_ObjCount++54end event555657// ========================58// Editor Events59// ========================6061event RSDKDraw62DrawSprite(0)63end event646566event RSDKLoad67LoadSpriteSheet("MPZ/Objects.gif")68SpriteFrame(-12, -12, 24, 24, 133, 126)6970SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")71end event727374