UnclePunch
Smash Ace
- Joined
- Nov 9, 2014
- Messages
- 673
Updated so now it works with all players, thanks for the advice Achilles!
Video: https://streamable.com/9zr2
Code:
$Luigi's Fireball is influenced by his momentum
C22C02A0 00000006
C0240000 39F80128
C10F0000 820F0000
39EFFF64 81EF0000
2C0F0000 4180000C
FC21402A 48000008
FC214028 00000000
So I started coding this idea and I have a working "prototype".
It only reads P1's momentum, mainly because I don't know how to check which player used the move mid function. One of my first gecko codes, any advice is appreciated!
Video: https://streamable.com/9zr2
$Luigi's Fireball is influenced by his momentum
C22C02A0 00000008
C0240000 3DE08045
61EF3130 81EF0000
39EF0128 C10F0000
820F0000 39EFFF64
81EF0000 2C0F0000
4180000C FC21402A
48000008 FC214028
60000000 00000000
C22C02A0 00000008
C0240000 3DE08045
61EF3130 81EF0000
39EF0128 C10F0000
820F0000 39EFFF64
81EF0000 2C0F0000
4180000C FC21402A
48000008 FC214028
60000000 00000000
It only reads P1's momentum, mainly because I don't know how to check which player used the move mid function. One of my first gecko codes, any advice is appreciated!
Code:
lfs f1, 0 (r4) #loads current fireball speed into f1
lis r15,0x8045 #loads first half of p1 data pointer into r15
ori r15,r15,0x3130 #loads second half of p1 data pointer into r15
lwz r15, 0 (r15) #loads X momentum value address into r15
addi r15, r15,0x128 #loads momemtum value address into r15
lfs f8, 0 (r15) #loads momemtum value into f8
lwz r16, 0 (r15) #loads momemtum value into r15
subi r15, r15,0xb98c #loads face-direction address into r15
lwz r15, 0 (r15) #loads face-direction value into r15
cmpwi r15, 0 #checks facing direction
blt 0xE #branch if facing left
fadd f1, f1, f8 #add momemtum to fireball speed
b 0x8 #branch to end
fsub f1, f1, f8 #subtract momentum from fireball speed
Video: https://streamable.com/9zr2
Last edited: