Rider/Mount X/Y/Facing Setting
Revision as of 16:42, 22 December 2024 by Nyzer (talk | contribs) (Nyzer moved page Rider/Mount X/Y/Facing Setting? to Rider/Mount X/Y/Facing Setting: Fucking question marks)
Rider/Mount X/Y/Facing Setting? 00072928: 27bdffc8 addiu r29,r29,0xffc8 0007292c: afb00030 sw r16,0x0030(r29) 00072930: 00808021 addu r16,r4,r0 r16 = Misc Unit Data Pointer? 00072934: 12000031 beq r16,r0,0x 000729fc Branch if Misc Unit Data Pointer = 0 00072938: afbf0034 sw r31,0x0034(r29) 0007293c: 8e020140 lw r2,0x0140(r16) Load ? 00072940: 00000000 nop 00072944: 30420004 andi r2,r2,0x0004 00072948: 1440002b bne r2,r0,0x 000729f8 Branch if ? has 0x04 enabled 0007294c: 2402ffff addiu r2,r0,0xffff r2 = FFFF (No Facing Check) 00072950: 86030072 lh r3,0x0072(r16) Load Attack Facing? 00072954: 2402ffff addiu r2,r0,0xffff r2 = FFFF 00072958: 10620028 beq r3,r2,0x 000729fc Branch if Attack ignores Facing Check? 0007295c: 00602021 addu r4,r3,r0 r4 = Attack Facing? 00072960: 8e020134 lw r2,0x0134(r16) Load Pointer to Unit's Data 00072964: 9205007c lbu r5,0x007c(r16) Load Unit's X Coordinate 00072968: 9206007d lbu r6,0x007d(r16) Load Unit's Y Coordinate 0007296c: 9207007e lbu r7,0x007e(r16) Load Unit's Map Level 00072970: a6040070 sh r4,0x0070(r16) Store Current Facing? = Attack Facing? 00072974: 9044018a lbu r4,0x018a(r2) Load Unit's ID 00072978: 04610003 bgez r3,0x 00072988 Branch if Attack Facing? >= 0 0007297c: 00031282 srl r2,r3,0x0a Attack Facing? / 0x400 00072980: 246303ff addiu r3,r3,0x03ff Attack Facing? + 0x3FF 00072984: 00031282 srl r2,r3,0x0a (Attack Facing? + 0x3FF) / 0x400 00072988: 304200ff andi r2,r2,0x00ff 0007298c: 0c05ff77 jal 0x0017fddc Set Rider/Mount's X/Y Data 00072990: afa20010 sw r2,0x0010(r29) Store Attack Facing? / 0x400 00072994: 92030130 lbu r3,0x0130(r16) Load ? 00072998: 2402ffff addiu r2,r0,0xffff r2 = FFFF 0007299c: 10600017 beq r3,r0,0x 000729fc Branch if ? = 0 000729a0: a6020072 sh r2,0x0072(r16) Store Attack Facing? = FFFF 000729a4: 92040131 lbu r4,0x0131(r16) Load some Unit ID? 000729a8: 0c01e9b9 jal 0x0007a6e4 Find Current Misc Unit Data Pointer? 000729ac: 00000000 nop 000729b0: 96030070 lhu r3,0x0070(r16) Load Current Facing? 000729b4: 00000000 nop 000729b8: a4430070 sh r3,0x0070(r2) Store Current Facing? 000729bc: 8e020134 lw r2,0x0134(r16) Load Unit's Data Pointer 000729c0: 86030070 lh r3,0x0070(r16) Load Current Facing? 000729c4: 9205007c lbu r5,0x007c(r16) Load Unit's X Coordinate 000729c8: 9206007d lbu r6,0x007d(r16) Load Unit's Y Coordinate 000729cc: 9207007e lbu r7,0x007e(r16) Load Unit's Map Level 000729d0: 9044018a lbu r4,0x018a(r2) Load Unit's ID 000729d4: 04610003 bgez r3,0x 000729e4 Branch if Current Facing? >= 0 000729d8: 00031282 srl r2,r3,0x0a Current Facing? / 0x400 000729dc: 246303ff addiu r3,r3,0x03ff Current Facing? + 0x3ff 000729e0: 00031282 srl r2,r3,0x0a Current Facing? + 0x3ff / 0x400 000729e4: 304200ff andi r2,r2,0x00ff 000729e8: 0c05ff77 jal 0x0017fddc Set Rider/Mount's X/Y Data 000729ec: afa20010 sw r2,0x0010(r29) Store Current Facing? / 0x400 000729f0: 0801ca7f j 0x 000729fc 000729f4: 00000000 nop 000729f8: a6020072 sh r2,0x0072(r16) Store Unit's Attack Facing? = 0xFFFF 000729fc: 8fbf0034 lw r31,0x0034(r29) 00072a00: 8fb00030 lw r16,0x0030(r29) 00072a04: 27bd0038 addiu r29,r29,0x0038 00072a08: 03e00008 jr r31 00072a0c: 00000000 nop