DPad Up During Hard Knee Hit Says YES!

Joined
Nov 9, 2014
Messages
635
#1
Code:
$DPad Up During Hard Knee Hit Says YES! [UnclePunch]
C208CE20 0000001F
2C000002 41820008
480000E4 7C0802A6
90010004 9421FF00
BE810008 7C7F1B78
7C9E2378 3D808008
618CCF70 7D8903A6
4E800421 807E0010
2C030042 40820010
4800002D 7C6802A6
907E21D0 BA810008
80010104 38210100
7C0803A6 3D808008
618CCE58 7D8903A6
4E800420 4E800021
7C0802A6 90010004
9421FF00 BE810008
7C7F1B78 83DF002C
887E221A 546006B5
41820048 807E0944
2C030002 40820034
807E0668 54600739
41820030 7FC3F378
3C800000 6084EAA6
38A0007F 38C00040
3D808008 618C81D8
7D8903A6 4E800421
38600000 907E21D0
BA810008 80010104
38210100 7C0803A6
4E800020 2C000014
60000000 00000000
Code:
#To be inserted at 8008ce20
.include "../Common.s"

#Check for Falcon
  cmpwi r0, CaptainFalcon.Int
  beq Falcon
  b Original

#########################################
.set Player,31
.set PlayerData,30

Falcon:
  backup

#Backup Pointers
  mr  Player,r3
  mr  PlayerData,r4

#Enter Aerial
  branchl r12,0x8008cf70

#Check If Entered Fair
  lwz r3,0x10(PlayerData)
  cmpwi r3,ASID_AttackAirF
  bne Falcon_Exit

#Override inHitlag Fucntion
  bl  Falcon_InHitlag
  mflr r3
  stw r3,0x21D0(PlayerData)

Falcon_Exit:
  restore
  branch r12,0x8008ce58

#########################################
.set Player,31
.set PlayerData,30

Falcon_InHitlag:
blrl

#Backup and Init
  backup
  mr Player,r3
  lwz PlayerData,0x2C(Player)

#Check if if hitlag attacker
  lbz r3,0x221A(PlayerData)
  rlwinm. r0,r3,0,26,26
  beq Falcon_InHitlagExit

#Check if Hitbox ID 1 has electricity attribute
#(kind of a harcoded way to make sure it was the strong hit)
  lwz r3,0x944(PlayerData)
  cmpwi r3,0x2
  bne Falcon_InHitlagRemove

#Check for DPad Up
  lwz r3,0x668(PlayerData)
  rlwinm. r0,r3,0,28,28
  beq Falcon_InHitlagExit

#Play YES! SFX
  mr  r3,PlayerData
  load  r4,0xeaa6
  li  r5,0x7f
  li  r6,0x40
  branchl r12,0x800881d8

Falcon_InHitlagRemove:
#Remove callback
  li  r3,0
  stw r3,0x21D0(PlayerData)

Falcon_InHitlagExit:
  restore
  blr

#########################################

Original:
  cmpwi    r0, 20
 
Top