SBZ Flamethrower - RetroKoH/S1Fixed GitHub Wiki

<- $6C: SBZ Vanishing Platforms Object List $6E: SBZ Electric Orb ->

The Flamethrower is an object in Sonic the Hedgehog, appearing in Scrap Brain Zone. It starts out inactive, appearing only as a pipe opening. After a set period of time, it spits out a pillar of flames. The hitbox activates once the flame pillar is fully erect.

This object has two aesthetic forms: broken pipe and valve. Flamethrowers facing up take the broken pipe appearance, while y-flipped flamethrowers facing down take the valve appearance.

Subtypes

This object's subtype follows the following bit format: %FFFFWWWW.

  • FFFF - time flame is on (*32 frames)
  • WWWW - wait time between flames (*32 frames)

Object Status Table

x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF
0x ID Render Gfx Gfx Map Map Map Map XPos XPos XPos XPos YPos YPos YPos YPos
1x ~ ~ ~ ~ RespawnAddr RespawnAddr ~ ~ Priority Priority Frame AniFrame Anim PrevAnim FrameTime DelayTime
2x ColType ~ ~ DispWid Routine ~ ~ obShieldProp Subtype ~ ~ ~ ~ ~ ~ ~
3x FlameTime FlameTime FlameOn FlameOn FlameOff FlameOff ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Code File

_incObj/6D Flamethrower.asm

Changes from Sonic 1

  • Word-length obPriority pointer due to the new Priority Manager.
  • Word-Length obRespawnAddr added due to the S3K Object Manager.
  • Optimal Animation loading (changed addressing mode).
  • The object has been slightly rewritten to more efficiently handle animations and collision properties. (Credit: Hivebrain).
  • BUGFIX: Flamethrower now plays SFX the first time it emits fire after being spawned (Credit: Hivebrain).
  • ELECTIVE MOD: Negated by the Flame Shield if S3KShields are enabled.

Sprite Data

Later Game Equivalents

  • ???