Skip to content

Releases: SnoeGit/PowerPC-Assembly-Functions

Release 2

23 Feb 03:56
3f044d3

Choose a tag to compare

Read Release 1 Notes
(Fixed modifer values)

Release 1

16 Jan 01:52
612c007

Choose a tag to compare

Make sure to do these edits to Contants.asm and Knockback.asm as well (P+ 2.29)

Delete both
3233 - Max Shield Strength [50->60]
float 60.0 @ $80B88440
3162 - Fully Charged Smash Multiplier [1.4->1.3667]
float 1.3666667 @ $80B88324

Replace
##################################################
Knockback Reduced 1/3 while Crouching v2.2 [Magus]
##################################################
HOOK @ $80769FCC
{
lwz r3, 0x3C(r23)
lwz r12, 0x7C(r3)
lwz r12, 0x38(r12)
cmpwi r12, 0x11; blt+ %END% # \ Only reduce knockback if in action 0x11 (entering crouch) or 0x12 (crouching)
cmpwi r12, 0x12; bgt+ %END% # /
lis r12, 0x80B8; ori r12, r12, 0x8348 # \ An address that holds the value 1/3 in float format
lfs f1, 0(r12) # /
fmuls f27, f27, f1
}
with
#######################################################
Knockback Reduced 1/3 while Crouching v2.2 [Magus, Eon]
#######################################################
HOOK @ $80769FCC
{
lwz r3, 0x3C(r23)
lwz r12, 0x7C(r3)
lwz r12, 0x38(r12)
cmpwi r12, 0x11; blt+ %END% # \ Only reduce knockback if in action 0x11 (entering crouch) or 0x12 (crouching)
cmpwi r12, 0x12; bgt+ %END% # /
lis r12, 0x80B8; ori r12, r12, 0x834C # \ an unused constant that is intended for knockback reduction state
lfs f1, 0(r12) # /
fmuls f27, f27, f1
}