• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Completed Hitlag/Hitstun Hurtbox Colors

Achilles1515

Smash Master
Joined
Jun 18, 2007
Messages
3,211
Location
Cincinnati / Columbus OH
Hitlag/Hitstun Hurtbox Colors (1.02) [Achilles]
  • Teal during hitstun
  • Orange during hitlag
  • Opacity drops by 50% on last frame of either
Code:
C200A264 0000000C
3CC0804D 3FC0FFFF
63DE0080 83BB227C
57BD018D 4182003C
8BBB227A 2C1D0000
41820014 3FC0FF80
63DE0080 83BB19BC
48000010 3FC000FF
63DEFF80 83BB23A0
3C003F80 7C1D0000
40820008 3BDEFFC0
93C636AC 7CBD2B78
60000000 00000000

Code:
Collision Bubble Display Colors! (RAM offsets)
804d36a0 - red hitboxes [ff000080]
804d36a4 - purple grabboxes [ff00ff80]
804d36ac - yellow hurtboxes [ffff0080]
804d36b4 - green invincibility [00ff0080]
804d36bc - blue intangibility [0000ff80]
...more colors but idk what for.


--------------------------

Advanced Collision Bubbles:
-Teal during hitstun
-Orange during hitlag
-Opacity drops by 50% on last frame of either


inject @ 8000a264 - mr r29,r5
- within function: CollisionBubble_HurtboxDisplay
- can use r29,r6,r0,r30

lis    r6,0x804d    # load first half of hurtbox color address
lis    r30,0xffff    # load default hurtbox color = yellow, 128 alpha
ori    r30,r30,0x0080
lwz    r29,0x227c(r27)    # check if in hitstun
rlwinm. r29,r29,0,6,6
beq-    HURTBUBBLE_CHANGE_END
lbz    r29,0x227a(r27)    # if contains (00000020) then in hitlag
cmpwi    r29,0
beq-    TEAL

ORANGE:
lis    r30,0xff80
ori    r30,r30,0x0080    # 0xff8000 = orange
lwz    r29,0x19bc(r27)    # load frames of hitlag left
b    LAST_FRAME_CHECK

TEAL:
lis    r30,0x00ff
ori    r30,r30,0xff80    # 0x00FFFF = teal
lwz    r29,0x23a0(r27)    # load frames of hitstun left

LAST_FRAME_CHECK:
lis    r0,0x3f80    # load float 1 into r0
cmpw    r29,r0        # one frame of hitlag/hitstun left?
bne-    HURTBUBBLE_CHANGE_END
subi    r30,r30,0x40    # cut opacity in half

HURTBUBBLE_CHANGE_END:
stw    r30,0x36ac(r6)
mr    r29,r5        # default code line
@Kadano @schmooblidon

EDIT: this has been reported to freeze on Yoshi's Story due to Shy Guy hurtboxes.
 
Last edited:

Acryte

Smash Ace
Joined
Mar 30, 2005
Messages
986
Great idea, that's some super useful stuff there.
 
Last edited:
Top Bottom