abysspartyy
Smash Cadet
- Joined
- May 11, 2015
- Messages
- 55
From Brawl onwards, Master Hand and Crazy Hand will visually vibrate when hit. I made a code to replicate this behaviour for Melee. The intensity of vibration will depend on the amount of hitlag a move does.
Note: the hands will still not experience hitlag on hit but only the model shifting/vibration effect
Normal Melee Behaviour
With the Code Enabled
Gecko Code
Source Code
Note: the hands will still not experience hitlag on hit but only the model shifting/vibration effect
Normal Melee Behaviour
With the Code Enabled
Gecko Code
$MH/CH Vibrate on Hit [sushie]
*Hands will vibrate on hit
C208EB24 00000006
7FC3F378 809E1860
80BE183C 80DE0010
38E00000 C03E1960
3D808009 618C0594
7D8803A6 4E800021
2C1F0000 00000000
Source Code
JavaScript:
import ../../melee
const
VibrateOnHit* =
createCode "MH/CH Vibrate on Hit":
description: "Hands will vibrate on hit"
authors: ["sushie"]
code:
# patch on_damage function for MH/CH
gecko 0x8008eb24
# damage addhitlag
# r3 = fighter data
# r4 = hit element
# r5 = damage
# r6 = move id
# r7 = 0 ? air state?? if 0, vibrate side to side, if 1, up and down
# f1 = hitlag multiplier
mr r3, r30
lwz r4, 0x1860(r30)
lwz r5, 0x183C(r30)
lwz r6, 0x10(r30)
li r7, 0 # vibrate side to side
# lwz r7, 0xE0(r30)
lfs f1, 0x1960(r30)
bla r12, 0x80090594 # call Damage_AddHitlag? func
cmpwi r31, 0 # original code line
gecko.end
when isMainModule:
generate "./generated/vibrateonhit.asm", VibrateOnHit
Last edited: