Street Fighter II Hitboxes

Here is a sample of Street Fighter II hitboxes, made with the MAME-rr emulator and Lua script that I developed based on work by mz and felineki.

A brief guide to seeing the hitboxes in action:

  1. Download and set up either MAME-rr or FBA-rr. We recommend MAME because the boxes can cause slowdown in FBA, but it works fine in either.
  2. Get the SF2 hitbox script and save it as a text file with the emulator.
  3. Launch the emulator and start any one of the SF2 games: World Warrior, Champion Edition, Hyper Fighting, Super, Super Turbo or Hyper Street Fighter II. Both “parent” and “clone” sets work.
  4. Open a Lua window. In MAME-rr this is done with Ctrl-L by default. In FBA, click Game, Lua Scripting, and New Lua Script Window. Click the Browse button in the window, select the Lua file, and click Run.

Now as you play the game, hitboxes are superimposed on the sprites. Blue is the area that can be hit by the opponent, and red is the area that can hit the opponent. The green boxes are the areas that can never overlap and will cause characters to push each other.

And now for some hitbox demonstrations:

sf2-reel

sf2hf-reel

Getting hit by different attacks causes different reel animations, and heavier attacks cause more exaggerated reeling. Some characters lean way back, others not so much.


sf2-weak

sf2ce-noweak

There is a fourth box type peculiar to the CPS-1 games known as the weak box, colored yellow. Getting hit in the weak box causes you to take double damage, but only if an associated parameter has a certain value. The boxes are present in some form in the first three games but cause double damage only in World Warrior.

In this shot, we can see the weak box on Blanka’s ball attack and the animation frame of Ryu’s dizzy that leans farthest forward. (These boxes are absent in CE.) This makes WW Ken plainly better than WW Ryu, if there are no other differences. The tall skinny pushbox on the WW Blanka ball is what causes it to bounce off knocked down opponents. This property was not preserved in HSF2.

Each of the bosses in WW also has a weak box during their signature moves: Balrog’s Turn Punch startup, Vega’s Claw Dive, Sagat’s Tiger Uppercut recovery and Bison’s Psycho Crusher active frames.

Weak boxes, being confusing and worthless, were abolished in Super and ST, but brought back in HSF2 for the CPS-1 modes. A proper counterattack system wasn’t implemented in a Capcom game until SFA3.


ssf2t-headstomp

Chun Li’s j.D+MK headstomp shifts her vulnerability boxes up high enough that she can fall through low Tiger Shots and block them safely on the ground. (There’s no air blocking in SF2.)


ssf2t-hawk1

ssf2t-hawk2

ssf2t-hawk3

Super Turbo-version T.Hawk has a famous stray hitbox on the recovery of his c.MP. You can easily punch him in the head without touching him. Furthermore, his Tomahawk Buster startup is less safe and his j.D+HP body splash is horribly downgraded from Super.


ssf2t-flame

ST Dhalsim’s Yoga Blast has no collision box, so it can’t negate other projectiles, which would be limited to another upflame or Akuma’s air fireball anyway. It does, however, have a momentary attack box behind him, which makes it possible to hit someone jumping over you.

His Yoga Inferno super, besides having a ridiculous number of invincibility frames, also leaves him headless for the duration. Since the hit area is huge and it can negate any non-super projectile without being negated itself, this makes it unreasonably hard to punish if whiffed.


sf2rb-projectiles

Trying to hit the projectile limit in Rainbow Edition. In general, if an attack keeps the character stationary, the pushbox won’t budge, even if you lean way forward during the move. This is what allows attacks like the Hadouken to be used harmlessly at point blank. It’s possible to pack Sonic Booms more closely than this but you’d need a more complicated setup.

sf2rb-sonicboom

…and here it is. The limit is indeed eight. Doing more makes the character perform the move but nothing new comes out.


sf2ce-juggle

Juggling was first encountered by accident in Champion Edition. If CE Dhalsim is hit in a way that makes him go off the ground but land on his feet instead of his back, he is vulnerable during a particular animation frame of the fall. (This glitch was not preserved in HSF2.) In this shot, Guile landed an air-to-air j.MK and is about to juggle with an LK Flash Kick.


Attack boxes were gradually toned down over time. In the earlier games there was a tendency for extended limbs to have a huge red box but no vulnerability. While this is fun, it tends to favor mashing and spamming by making it harder to punish irresponsible attacks. The red boxes got smaller and the blue boxes got bigger as Capcom games evolved.

sf2-elec-hands

ssf2t-elec-hands

Blanka’s HP Electricity opposite Honda’s HP Hundred Hand Slap, in WW and ST. Incidentally, Hundred Hand Slap became steerable in Champion Edition and lost that ability in ST, in exchange for lunging forward.


sf2hf-crusher-lariat

ssf2t-crusher-lariat

Bison’s HP Psycho Crusher opposite Zangief’s KKK Lariat, in Hyper Fighting and Super Turbo. The CE version of the torpedo is even cheaper, with the hittable area only where the yellow box is. HF Zangief’s KKK Lariat spins three times quickly and is unhittable below the arms for the whole duration. It was changed in the later games to have midsection invulnerability, just like the PPP version but with two spins.


sf2hf-shoryu-roundhouse

ssf2t-shoryu-roundhouse

Ken’s MP Shoryuken opposite Blanka’s jumping roundhouse, in CE and ST. For most of the series, Ryu and Ken’s Dragon Punches are invincible on the way up, until after the last active frame. In ST they have head and body vulnerability, except the jab versions which are unhittable from the neck down, to avoid fireballs. Notice how Blanka’s shadow gets longer like his sprite in ST.


ssf2-mg-dashstraight

ssf2t-mg-dashstraight

DeeJay’s LP Machine Gun Upper opposite Balrog’s LP Dash Straight, in Super and ST. MGU lost some upper body invulnerability and Dash Straights became crouchable in ST. (They were also crouchable in CE.) Not that you’d ever want to use the old versions of these characters.


ssf2t-akuma

P1 Akuma has no problem timing the Dragon Punch through P2 Akuma’s Zankuu Hadouken, while P2 Akuma shows off the Hurricane Kick that hits on the way up while invincible.


The hitbox code got more complicated the farther back I looked, with SF2 being the most convoluted. It uses pointers for both the animation frame data and the hitbox data. That means you won’t find either the box IDs or the box parameters in each character’s personal memory area. Instead you’ll find a pointer to the animation frame data, which contains the IDs, and a pointer to the character’s hitbox tables, which contain the box parameters. The ID tells you which box to look up from the tables. (A pointer is a value in memory that contains an address to some other value.)

The four box parameters are the horizontal and vertical offsets from the character position, and the horizontal and vertical size. Each uses only one signed byte, which limits them to ±128 pixels. This was a problem for Dhalsim’s long range attacks with their huge horizontal offsets. felineki figured out there was another byte that, if greater than 128 (unsigned), took precedence over the usual horizontal offset byte. The developers must have thought one byte would be enough and added this as an afterthought as Dhalsim’s design was fleshed out.

Except for using two bytes for box parameters, Hyper Street Fighter II’s hitbox code is mostly unchanged from the rest of the series despite being released in 2004. The CPS-2 games sometimes have an extra frame of delay between inputting a command and seeing the response on screen. This causes the boxes to update one frame too soon. This can be corrected by increasing the DRAW_DELAY value near the top of the script.

Now, please enjoy some of Xenozip‘s videos.

This entry was posted in Articles, Technical. Bookmark the permalink.

2 Responses to Street Fighter II Hitboxes

  1. Maj says:

    This was originally a brief news post linking to Dammit’s guest article on Sonic Hurricane. However since he became a ComboVid contributor, it made more sense to copy the entire thing here. That’s why the same article is now on both websites.

  2. Pingback: XSPR Interviews TZW-ART? | ComboVid

Leave a Reply