Set In-Motion animation based on status (not MON)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
00082d50: 27bdffe0 addiu r29,r29,0xffe0
00082d54: afb00010 sw r16,0x0010(r29)
00082d58: 00808021 addu r16,r4,r0
00082d5c: afbf0018 sw r31,0x0018(r29)
00082d60: afb10014 sw r17,0x0014(r29)
00082d64: 92030130 lbu r3,0x0130(r16)
00082d68: 34020001 ori r2,r0,0x0001
00082d6c: 10620019 beq r3,r2,0x00082dd4                        branch if mounting another unit
00082d70: 34040032 ori r4,r0,0x0032				animation = riding chocobo
00082d74: 0c0209e3 jal 0x0008278c                              Movement validation - float/fly?
00082d78: 02002021 addu r4,r16,r0
00082d7c: 304200ff andi r2,r2,0x00ff
00082d80: 04400011 bltz r2,0x00082dc8                          ?
00082d84: 28420002 slti r2,r2,0x0002
00082d88: 1040000f beq r2,r0,0x00082dc8                        branch if unit is submerged with swim or flagged as flying
00082d8c: 34110002 ori r17,r0,0x0002                           
00082d90: 92020130 lbu r2,0x0130(r16)
00082d94: 00000000 nop
00082d98: 1451000c bne r2,r17,0x00082dcc                       branch if mount to another unit (change of animation set to 2, this is just some facing animation?)
00082d9c: 00000000 nop
00082da0: 92040131 lbu r4,0x0131(r16)			load unit ID?
00082da4: 0c01e9b9 jal 0x0007a6e4
00082da8: 00000000 nop
00082dac: 10400007 beq r2,r0,0x00082dcc
00082db0: 34040032 ori r4,r0,0x0032				animation = riding chocobo
00082db4: 86050070 lh r5,0x0070(r16)
00082db8: 0c02065e jal 0x00081978                              store animation changes and facing
00082dbc: 00403021 addu r6,r2,r0
00082dc0: 08020b73 j 0x00082dcc
00082dc4: 00000000 nop


00082dc8: 34110009 ori r17,r0,0x0009                           
00082dcc: 12200004 beq r17,r0,0x00082de0
00082dd0: 02202021 addu r4,r17,r0				animation = submerged
00082dd4: 86050070 lh r5,0x0070(r16)
00082dd8: 0c02065e jal 0x00081978                              store animation changes and facing
00082ddc: 02003021 addu r6,r16,r0
00082de0: 8fbf0018 lw r31,0x0018(r29)
00082de4: 8fb10014 lw r17,0x0014(r29)
00082de8: 8fb00010 lw r16,0x0010(r29)
00082dec: 27bd0020 addiu r29,r29,0x0020
00082df0: 03e00008 jr r31
00082df4: 00000000 nop