mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 12:32:38 +01:00
more 197F40
This commit is contained in:
parent
a29506d990
commit
87c2c84869
@ -1,54 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel AddPartMovementVar
|
|
||||||
/* 19ABC8 8026C2E8 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19ABCC 8026C2EC AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19ABD0 8026C2F0 0080982D */ daddu $s3, $a0, $zero
|
|
||||||
/* 19ABD4 8026C2F4 AFBF0020 */ sw $ra, 0x20($sp)
|
|
||||||
/* 19ABD8 8026C2F8 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19ABDC 8026C2FC AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19ABE0 8026C300 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19ABE4 8026C304 8E70000C */ lw $s0, 0xc($s3)
|
|
||||||
/* 19ABE8 8026C308 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ABEC 8026C30C 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19ABF0 8026C310 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19ABF4 8026C314 0040902D */ daddu $s2, $v0, $zero
|
|
||||||
/* 19ABF8 8026C318 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19ABFC 8026C31C 16420002 */ bne $s2, $v0, .L8026C328
|
|
||||||
/* 19AC00 8026C320 00000000 */ nop
|
|
||||||
/* 19AC04 8026C324 8E720148 */ lw $s2, 0x148($s3)
|
|
||||||
.L8026C328:
|
|
||||||
/* 19AC08 8026C328 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AC0C 8026C32C 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AC10 8026C330 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AC14 8026C334 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AC18 8026C338 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AC1C 8026C33C 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AC20 8026C340 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AC24 8026C344 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AC28 8026C348 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19AC2C 8026C34C 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AC30 8026C350 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AC34 8026C354 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AC38 8026C358 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19AC3C 8026C35C 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19AC40 8026C360 0C09A75B */ jal get_actor
|
|
||||||
/* 19AC44 8026C364 0040902D */ daddu $s2, $v0, $zero
|
|
||||||
/* 19AC48 8026C368 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19AC4C 8026C36C 0C099117 */ jal get_actor_part
|
|
||||||
/* 19AC50 8026C370 0220282D */ daddu $a1, $s1, $zero
|
|
||||||
/* 19AC54 8026C374 8C440010 */ lw $a0, 0x10($v0)
|
|
||||||
/* 19AC58 8026C378 00108080 */ sll $s0, $s0, 2
|
|
||||||
/* 19AC5C 8026C37C 00902021 */ addu $a0, $a0, $s0
|
|
||||||
/* 19AC60 8026C380 8C83004C */ lw $v1, 0x4c($a0)
|
|
||||||
/* 19AC64 8026C384 00721821 */ addu $v1, $v1, $s2
|
|
||||||
/* 19AC68 8026C388 AC83004C */ sw $v1, 0x4c($a0)
|
|
||||||
/* 19AC6C 8026C38C 8FBF0020 */ lw $ra, 0x20($sp)
|
|
||||||
/* 19AC70 8026C390 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19AC74 8026C394 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19AC78 8026C398 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19AC7C 8026C39C 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19AC80 8026C3A0 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19AC84 8026C3A4 03E00008 */ jr $ra
|
|
||||||
/* 19AC88 8026C3A8 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,55 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel GetActorRotation
|
|
||||||
/* 19AE4C 8026C56C 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19AE50 8026C570 AFB40020 */ sw $s4, 0x20($sp)
|
|
||||||
/* 19AE54 8026C574 0080A02D */ daddu $s4, $a0, $zero
|
|
||||||
/* 19AE58 8026C578 AFBF0024 */ sw $ra, 0x24($sp)
|
|
||||||
/* 19AE5C 8026C57C AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19AE60 8026C580 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19AE64 8026C584 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19AE68 8026C588 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19AE6C 8026C58C 8E90000C */ lw $s0, 0xc($s4)
|
|
||||||
/* 19AE70 8026C590 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AE74 8026C594 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AE78 8026C598 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AE7C 8026C59C 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19AE80 8026C5A0 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19AE84 8026C5A4 14820002 */ bne $a0, $v0, .L8026C5B0
|
|
||||||
/* 19AE88 8026C5A8 00000000 */ nop
|
|
||||||
/* 19AE8C 8026C5AC 8E840148 */ lw $a0, 0x148($s4)
|
|
||||||
.L8026C5B0:
|
|
||||||
/* 19AE90 8026C5B0 8E110000 */ lw $s1, ($s0)
|
|
||||||
/* 19AE94 8026C5B4 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AE98 8026C5B8 8E120000 */ lw $s2, ($s0)
|
|
||||||
/* 19AE9C 8026C5BC 0C09A75B */ jal get_actor
|
|
||||||
/* 19AEA0 8026C5C0 8E130004 */ lw $s3, 4($s0)
|
|
||||||
/* 19AEA4 8026C5C4 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19AEA8 8026C5C8 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19AEAC 8026C5CC C600015C */ lwc1 $f0, 0x15c($s0)
|
|
||||||
/* 19AEB0 8026C5D0 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AEB4 8026C5D4 44061000 */ mfc1 $a2, $f2
|
|
||||||
/* 19AEB8 8026C5D8 0C0B2026 */ jal set_variable
|
|
||||||
/* 19AEBC 8026C5DC 0220282D */ daddu $a1, $s1, $zero
|
|
||||||
/* 19AEC0 8026C5E0 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19AEC4 8026C5E4 C6000160 */ lwc1 $f0, 0x160($s0)
|
|
||||||
/* 19AEC8 8026C5E8 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AECC 8026C5EC 44061000 */ mfc1 $a2, $f2
|
|
||||||
/* 19AED0 8026C5F0 0C0B2026 */ jal set_variable
|
|
||||||
/* 19AED4 8026C5F4 0240282D */ daddu $a1, $s2, $zero
|
|
||||||
/* 19AED8 8026C5F8 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19AEDC 8026C5FC C6000164 */ lwc1 $f0, 0x164($s0)
|
|
||||||
/* 19AEE0 8026C600 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AEE4 8026C604 44061000 */ mfc1 $a2, $f2
|
|
||||||
/* 19AEE8 8026C608 0C0B2026 */ jal set_variable
|
|
||||||
/* 19AEEC 8026C60C 0260282D */ daddu $a1, $s3, $zero
|
|
||||||
/* 19AEF0 8026C610 8FBF0024 */ lw $ra, 0x24($sp)
|
|
||||||
/* 19AEF4 8026C614 8FB40020 */ lw $s4, 0x20($sp)
|
|
||||||
/* 19AEF8 8026C618 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19AEFC 8026C61C 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19AF00 8026C620 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19AF04 8026C624 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19AF08 8026C628 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19AF0C 8026C62C 03E00008 */ jr $ra
|
|
||||||
/* 19AF10 8026C630 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,55 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel GetActorScale
|
|
||||||
/* 19B364 8026CA84 27BDFFC8 */ addiu $sp, $sp, -0x38
|
|
||||||
/* 19B368 8026CA88 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19B36C 8026CA8C 0080882D */ daddu $s1, $a0, $zero
|
|
||||||
/* 19B370 8026CA90 AFBF0018 */ sw $ra, 0x18($sp)
|
|
||||||
/* 19B374 8026CA94 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19B378 8026CA98 F7B80030 */ sdc1 $f24, 0x30($sp)
|
|
||||||
/* 19B37C 8026CA9C F7B60028 */ sdc1 $f22, 0x28($sp)
|
|
||||||
/* 19B380 8026CAA0 F7B40020 */ sdc1 $f20, 0x20($sp)
|
|
||||||
/* 19B384 8026CAA4 8E30000C */ lw $s0, 0xc($s1)
|
|
||||||
/* 19B388 8026CAA8 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B38C 8026CAAC 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B390 8026CAB0 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B394 8026CAB4 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19B398 8026CAB8 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19B39C 8026CABC 14820002 */ bne $a0, $v0, .L8026CAC8
|
|
||||||
/* 19B3A0 8026CAC0 00000000 */ nop
|
|
||||||
/* 19B3A4 8026CAC4 8E240148 */ lw $a0, 0x148($s1)
|
|
||||||
.L8026CAC8:
|
|
||||||
/* 19B3A8 8026CAC8 C6140000 */ lwc1 $f20, ($s0)
|
|
||||||
/* 19B3AC 8026CACC 4680A520 */ cvt.s.w $f20, $f20
|
|
||||||
/* 19B3B0 8026CAD0 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B3B4 8026CAD4 C6160000 */ lwc1 $f22, ($s0)
|
|
||||||
/* 19B3B8 8026CAD8 4680B5A0 */ cvt.s.w $f22, $f22
|
|
||||||
/* 19B3BC 8026CADC C6180004 */ lwc1 $f24, 4($s0)
|
|
||||||
/* 19B3C0 8026CAE0 0C09A75B */ jal get_actor
|
|
||||||
/* 19B3C4 8026CAE4 4680C620 */ cvt.s.w $f24, $f24
|
|
||||||
/* 19B3C8 8026CAE8 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19B3CC 8026CAEC 8E060170 */ lw $a2, 0x170($s0)
|
|
||||||
/* 19B3D0 8026CAF0 4600A08D */ trunc.w.s $f2, $f20
|
|
||||||
/* 19B3D4 8026CAF4 44051000 */ mfc1 $a1, $f2
|
|
||||||
/* 19B3D8 8026CAF8 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B3DC 8026CAFC 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B3E0 8026CB00 8E060174 */ lw $a2, 0x174($s0)
|
|
||||||
/* 19B3E4 8026CB04 4600B08D */ trunc.w.s $f2, $f22
|
|
||||||
/* 19B3E8 8026CB08 44051000 */ mfc1 $a1, $f2
|
|
||||||
/* 19B3EC 8026CB0C 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B3F0 8026CB10 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B3F4 8026CB14 8E060178 */ lw $a2, 0x178($s0)
|
|
||||||
/* 19B3F8 8026CB18 4600C08D */ trunc.w.s $f2, $f24
|
|
||||||
/* 19B3FC 8026CB1C 44051000 */ mfc1 $a1, $f2
|
|
||||||
/* 19B400 8026CB20 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B404 8026CB24 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B408 8026CB28 8FBF0018 */ lw $ra, 0x18($sp)
|
|
||||||
/* 19B40C 8026CB2C 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19B410 8026CB30 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19B414 8026CB34 D7B80030 */ ldc1 $f24, 0x30($sp)
|
|
||||||
/* 19B418 8026CB38 D7B60028 */ ldc1 $f22, 0x28($sp)
|
|
||||||
/* 19B41C 8026CB3C D7B40020 */ ldc1 $f20, 0x20($sp)
|
|
||||||
/* 19B420 8026CB40 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19B424 8026CB44 03E00008 */ jr $ra
|
|
||||||
/* 19B428 8026CB48 27BD0038 */ addiu $sp, $sp, 0x38
|
|
@ -1,52 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel GetPartMovementVar
|
|
||||||
/* 19AA50 8026C170 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19AA54 8026C174 AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19AA58 8026C178 0080982D */ daddu $s3, $a0, $zero
|
|
||||||
/* 19AA5C 8026C17C AFBF0020 */ sw $ra, 0x20($sp)
|
|
||||||
/* 19AA60 8026C180 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19AA64 8026C184 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19AA68 8026C188 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19AA6C 8026C18C 8E72000C */ lw $s2, 0xc($s3)
|
|
||||||
/* 19AA70 8026C190 8E450000 */ lw $a1, ($s2)
|
|
||||||
/* 19AA74 8026C194 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AA78 8026C198 26520004 */ addiu $s2, $s2, 4
|
|
||||||
/* 19AA7C 8026C19C 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19AA80 8026C1A0 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19AA84 8026C1A4 16020002 */ bne $s0, $v0, .L8026C1B0
|
|
||||||
/* 19AA88 8026C1A8 00000000 */ nop
|
|
||||||
/* 19AA8C 8026C1AC 8E700148 */ lw $s0, 0x148($s3)
|
|
||||||
.L8026C1B0:
|
|
||||||
/* 19AA90 8026C1B0 8E450000 */ lw $a1, ($s2)
|
|
||||||
/* 19AA94 8026C1B4 26520004 */ addiu $s2, $s2, 4
|
|
||||||
/* 19AA98 8026C1B8 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AA9C 8026C1BC 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AAA0 8026C1C0 8E450000 */ lw $a1, ($s2)
|
|
||||||
/* 19AAA4 8026C1C4 26520004 */ addiu $s2, $s2, 4
|
|
||||||
/* 19AAA8 8026C1C8 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AAAC 8026C1CC 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AAB0 8026C1D0 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19AAB4 8026C1D4 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19AAB8 8026C1D8 8E520000 */ lw $s2, ($s2)
|
|
||||||
/* 19AABC 8026C1DC 0C09A75B */ jal get_actor
|
|
||||||
/* 19AAC0 8026C1E0 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19AAC4 8026C1E4 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19AAC8 8026C1E8 0C099117 */ jal get_actor_part
|
|
||||||
/* 19AACC 8026C1EC 0220282D */ daddu $a1, $s1, $zero
|
|
||||||
/* 19AAD0 8026C1F0 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AAD4 8026C1F4 8C420010 */ lw $v0, 0x10($v0)
|
|
||||||
/* 19AAD8 8026C1F8 00108080 */ sll $s0, $s0, 2
|
|
||||||
/* 19AADC 8026C1FC 00501021 */ addu $v0, $v0, $s0
|
|
||||||
/* 19AAE0 8026C200 8C46004C */ lw $a2, 0x4c($v0)
|
|
||||||
/* 19AAE4 8026C204 0C0B2026 */ jal set_variable
|
|
||||||
/* 19AAE8 8026C208 0240282D */ daddu $a1, $s2, $zero
|
|
||||||
/* 19AAEC 8026C20C 8FBF0020 */ lw $ra, 0x20($sp)
|
|
||||||
/* 19AAF0 8026C210 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19AAF4 8026C214 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19AAF8 8026C218 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19AAFC 8026C21C 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19AB00 8026C220 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19AB04 8026C224 03E00008 */ jr $ra
|
|
||||||
/* 19AB08 8026C228 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,60 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel GetPartRotation
|
|
||||||
/* 19B108 8026C828 27BDFFD0 */ addiu $sp, $sp, -0x30
|
|
||||||
/* 19B10C 8026C82C AFB40020 */ sw $s4, 0x20($sp)
|
|
||||||
/* 19B110 8026C830 0080A02D */ daddu $s4, $a0, $zero
|
|
||||||
/* 19B114 8026C834 AFBF0028 */ sw $ra, 0x28($sp)
|
|
||||||
/* 19B118 8026C838 AFB50024 */ sw $s5, 0x24($sp)
|
|
||||||
/* 19B11C 8026C83C AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19B120 8026C840 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19B124 8026C844 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19B128 8026C848 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19B12C 8026C84C 8E90000C */ lw $s0, 0xc($s4)
|
|
||||||
/* 19B130 8026C850 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B134 8026C854 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B138 8026C858 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B13C 8026C85C 0040902D */ daddu $s2, $v0, $zero
|
|
||||||
/* 19B140 8026C860 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B144 8026C864 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B148 8026C868 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B14C 8026C86C 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19B150 8026C870 0040A82D */ daddu $s5, $v0, $zero
|
|
||||||
/* 19B154 8026C874 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19B158 8026C878 16420002 */ bne $s2, $v0, .L8026C884
|
|
||||||
/* 19B15C 8026C87C 00000000 */ nop
|
|
||||||
/* 19B160 8026C880 8E920148 */ lw $s2, 0x148($s4)
|
|
||||||
.L8026C884:
|
|
||||||
/* 19B164 8026C884 8E110000 */ lw $s1, ($s0)
|
|
||||||
/* 19B168 8026C888 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B16C 8026C88C 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B170 8026C890 8E120000 */ lw $s2, ($s0)
|
|
||||||
/* 19B174 8026C894 0C09A75B */ jal get_actor
|
|
||||||
/* 19B178 8026C898 8E130004 */ lw $s3, 4($s0)
|
|
||||||
/* 19B17C 8026C89C 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19B180 8026C8A0 0C099117 */ jal get_actor_part
|
|
||||||
/* 19B184 8026C8A4 02A0282D */ daddu $a1, $s5, $zero
|
|
||||||
/* 19B188 8026C8A8 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19B18C 8026C8AC 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19B190 8026C8B0 8E060038 */ lw $a2, 0x38($s0)
|
|
||||||
/* 19B194 8026C8B4 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B198 8026C8B8 0220282D */ daddu $a1, $s1, $zero
|
|
||||||
/* 19B19C 8026C8BC 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19B1A0 8026C8C0 8E06003C */ lw $a2, 0x3c($s0)
|
|
||||||
/* 19B1A4 8026C8C4 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B1A8 8026C8C8 0240282D */ daddu $a1, $s2, $zero
|
|
||||||
/* 19B1AC 8026C8CC 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19B1B0 8026C8D0 8E060040 */ lw $a2, 0x40($s0)
|
|
||||||
/* 19B1B4 8026C8D4 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B1B8 8026C8D8 0260282D */ daddu $a1, $s3, $zero
|
|
||||||
/* 19B1BC 8026C8DC 8FBF0028 */ lw $ra, 0x28($sp)
|
|
||||||
/* 19B1C0 8026C8E0 8FB50024 */ lw $s5, 0x24($sp)
|
|
||||||
/* 19B1C4 8026C8E4 8FB40020 */ lw $s4, 0x20($sp)
|
|
||||||
/* 19B1C8 8026C8E8 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19B1CC 8026C8EC 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19B1D0 8026C8F0 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19B1D4 8026C8F4 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19B1D8 8026C8F8 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19B1DC 8026C8FC 03E00008 */ jr $ra
|
|
||||||
/* 19B1E0 8026C900 27BD0030 */ addiu $sp, $sp, 0x30
|
|
@ -1,60 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel GetPartScale
|
|
||||||
/* 19B514 8026CC34 27BDFFD0 */ addiu $sp, $sp, -0x30
|
|
||||||
/* 19B518 8026CC38 AFB40020 */ sw $s4, 0x20($sp)
|
|
||||||
/* 19B51C 8026CC3C 0080A02D */ daddu $s4, $a0, $zero
|
|
||||||
/* 19B520 8026CC40 AFBF0028 */ sw $ra, 0x28($sp)
|
|
||||||
/* 19B524 8026CC44 AFB50024 */ sw $s5, 0x24($sp)
|
|
||||||
/* 19B528 8026CC48 AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19B52C 8026CC4C AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19B530 8026CC50 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19B534 8026CC54 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19B538 8026CC58 8E90000C */ lw $s0, 0xc($s4)
|
|
||||||
/* 19B53C 8026CC5C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B540 8026CC60 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B544 8026CC64 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B548 8026CC68 0040902D */ daddu $s2, $v0, $zero
|
|
||||||
/* 19B54C 8026CC6C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B550 8026CC70 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B554 8026CC74 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B558 8026CC78 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19B55C 8026CC7C 0040A82D */ daddu $s5, $v0, $zero
|
|
||||||
/* 19B560 8026CC80 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19B564 8026CC84 16420002 */ bne $s2, $v0, .L8026CC90
|
|
||||||
/* 19B568 8026CC88 00000000 */ nop
|
|
||||||
/* 19B56C 8026CC8C 8E920148 */ lw $s2, 0x148($s4)
|
|
||||||
.L8026CC90:
|
|
||||||
/* 19B570 8026CC90 8E110000 */ lw $s1, ($s0)
|
|
||||||
/* 19B574 8026CC94 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B578 8026CC98 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B57C 8026CC9C 8E120000 */ lw $s2, ($s0)
|
|
||||||
/* 19B580 8026CCA0 0C09A75B */ jal get_actor
|
|
||||||
/* 19B584 8026CCA4 8E130004 */ lw $s3, 4($s0)
|
|
||||||
/* 19B588 8026CCA8 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19B58C 8026CCAC 0C099117 */ jal get_actor_part
|
|
||||||
/* 19B590 8026CCB0 02A0282D */ daddu $a1, $s5, $zero
|
|
||||||
/* 19B594 8026CCB4 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19B598 8026CCB8 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19B59C 8026CCBC 8E06004C */ lw $a2, 0x4c($s0)
|
|
||||||
/* 19B5A0 8026CCC0 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B5A4 8026CCC4 0220282D */ daddu $a1, $s1, $zero
|
|
||||||
/* 19B5A8 8026CCC8 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19B5AC 8026CCCC 8E060050 */ lw $a2, 0x50($s0)
|
|
||||||
/* 19B5B0 8026CCD0 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B5B4 8026CCD4 0240282D */ daddu $a1, $s2, $zero
|
|
||||||
/* 19B5B8 8026CCD8 0280202D */ daddu $a0, $s4, $zero
|
|
||||||
/* 19B5BC 8026CCDC 8E060054 */ lw $a2, 0x54($s0)
|
|
||||||
/* 19B5C0 8026CCE0 0C0B2190 */ jal set_float_variable
|
|
||||||
/* 19B5C4 8026CCE4 0260282D */ daddu $a1, $s3, $zero
|
|
||||||
/* 19B5C8 8026CCE8 8FBF0028 */ lw $ra, 0x28($sp)
|
|
||||||
/* 19B5CC 8026CCEC 8FB50024 */ lw $s5, 0x24($sp)
|
|
||||||
/* 19B5D0 8026CCF0 8FB40020 */ lw $s4, 0x20($sp)
|
|
||||||
/* 19B5D4 8026CCF4 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19B5D8 8026CCF8 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19B5DC 8026CCFC 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19B5E0 8026CD00 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19B5E4 8026CD04 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19B5E8 8026CD08 03E00008 */ jr $ra
|
|
||||||
/* 19B5EC 8026CD0C 27BD0030 */ addiu $sp, $sp, 0x30
|
|
@ -1,72 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel SetActorRotation
|
|
||||||
/* 19AC8C 8026C3AC 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19AC90 8026C3B0 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19AC94 8026C3B4 0080902D */ daddu $s2, $a0, $zero
|
|
||||||
/* 19AC98 8026C3B8 AFBF0020 */ sw $ra, 0x20($sp)
|
|
||||||
/* 19AC9C 8026C3BC AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19ACA0 8026C3C0 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19ACA4 8026C3C4 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19ACA8 8026C3C8 8E50000C */ lw $s0, 0xc($s2)
|
|
||||||
/* 19ACAC 8026C3CC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ACB0 8026C3D0 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19ACB4 8026C3D4 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19ACB8 8026C3D8 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19ACBC 8026C3DC 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19ACC0 8026C3E0 16220002 */ bne $s1, $v0, .L8026C3EC
|
|
||||||
/* 19ACC4 8026C3E4 00000000 */ nop
|
|
||||||
/* 19ACC8 8026C3E8 8E510148 */ lw $s1, 0x148($s2)
|
|
||||||
.L8026C3EC:
|
|
||||||
/* 19ACCC 8026C3EC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ACD0 8026C3F0 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19ACD4 8026C3F4 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19ACD8 8026C3F8 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19ACDC 8026C3FC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ACE0 8026C400 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19ACE4 8026C404 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19ACE8 8026C408 44131000 */ mfc1 $s3, $f2
|
|
||||||
/* 19ACEC 8026C40C 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19ACF0 8026C410 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19ACF4 8026C414 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ACF8 8026C418 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19ACFC 8026C41C 44101000 */ mfc1 $s0, $f2
|
|
||||||
/* 19AD00 8026C420 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19AD04 8026C424 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19AD08 8026C428 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19AD0C 8026C42C 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AD10 8026C430 44111000 */ mfc1 $s1, $f2
|
|
||||||
/* 19AD14 8026C434 0C09A75B */ jal get_actor
|
|
||||||
/* 19AD18 8026C438 00000000 */ nop
|
|
||||||
/* 19AD1C 8026C43C 3C03F119 */ lui $v1, 0xf119
|
|
||||||
/* 19AD20 8026C440 34634D80 */ ori $v1, $v1, 0x4d80
|
|
||||||
/* 19AD24 8026C444 12630005 */ beq $s3, $v1, .L8026C45C
|
|
||||||
/* 19AD28 8026C448 00000000 */ nop
|
|
||||||
/* 19AD2C 8026C44C 44930000 */ mtc1 $s3, $f0
|
|
||||||
/* 19AD30 8026C450 00000000 */ nop
|
|
||||||
/* 19AD34 8026C454 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19AD38 8026C458 E440015C */ swc1 $f0, 0x15c($v0)
|
|
||||||
.L8026C45C:
|
|
||||||
/* 19AD3C 8026C45C 12030005 */ beq $s0, $v1, .L8026C474
|
|
||||||
/* 19AD40 8026C460 00000000 */ nop
|
|
||||||
/* 19AD44 8026C464 44900000 */ mtc1 $s0, $f0
|
|
||||||
/* 19AD48 8026C468 00000000 */ nop
|
|
||||||
/* 19AD4C 8026C46C 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19AD50 8026C470 E4400160 */ swc1 $f0, 0x160($v0)
|
|
||||||
.L8026C474:
|
|
||||||
/* 19AD54 8026C474 12230005 */ beq $s1, $v1, .L8026C48C
|
|
||||||
/* 19AD58 8026C478 00000000 */ nop
|
|
||||||
/* 19AD5C 8026C47C 44910000 */ mtc1 $s1, $f0
|
|
||||||
/* 19AD60 8026C480 00000000 */ nop
|
|
||||||
/* 19AD64 8026C484 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19AD68 8026C488 E4400164 */ swc1 $f0, 0x164($v0)
|
|
||||||
.L8026C48C:
|
|
||||||
/* 19AD6C 8026C48C 8FBF0020 */ lw $ra, 0x20($sp)
|
|
||||||
/* 19AD70 8026C490 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19AD74 8026C494 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19AD78 8026C498 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19AD7C 8026C49C 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19AD80 8026C4A0 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19AD84 8026C4A4 03E00008 */ jr $ra
|
|
||||||
/* 19AD88 8026C4A8 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,53 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel SetActorRotationOffset
|
|
||||||
/* 19AD8C 8026C4AC 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19AD90 8026C4B0 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19AD94 8026C4B4 0080882D */ daddu $s1, $a0, $zero
|
|
||||||
/* 19AD98 8026C4B8 AFBF0020 */ sw $ra, 0x20($sp)
|
|
||||||
/* 19AD9C 8026C4BC AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19ADA0 8026C4C0 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19ADA4 8026C4C4 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19ADA8 8026C4C8 8E30000C */ lw $s0, 0xc($s1)
|
|
||||||
/* 19ADAC 8026C4CC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ADB0 8026C4D0 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19ADB4 8026C4D4 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19ADB8 8026C4D8 0040982D */ daddu $s3, $v0, $zero
|
|
||||||
/* 19ADBC 8026C4DC 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19ADC0 8026C4E0 16620002 */ bne $s3, $v0, .L8026C4EC
|
|
||||||
/* 19ADC4 8026C4E4 00000000 */ nop
|
|
||||||
/* 19ADC8 8026C4E8 8E330148 */ lw $s3, 0x148($s1)
|
|
||||||
.L8026C4EC:
|
|
||||||
/* 19ADCC 8026C4EC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ADD0 8026C4F0 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19ADD4 8026C4F4 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19ADD8 8026C4F8 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19ADDC 8026C4FC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ADE0 8026C500 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19ADE4 8026C504 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19ADE8 8026C508 44121000 */ mfc1 $s2, $f2
|
|
||||||
/* 19ADEC 8026C50C 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19ADF0 8026C510 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19ADF4 8026C514 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19ADF8 8026C518 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19ADFC 8026C51C 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AE00 8026C520 44111000 */ mfc1 $s1, $f2
|
|
||||||
/* 19AE04 8026C524 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19AE08 8026C528 00000000 */ nop
|
|
||||||
/* 19AE0C 8026C52C 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AE10 8026C530 44101000 */ mfc1 $s0, $f2
|
|
||||||
/* 19AE14 8026C534 0C09A75B */ jal get_actor
|
|
||||||
/* 19AE18 8026C538 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AE1C 8026C53C 0040182D */ daddu $v1, $v0, $zero
|
|
||||||
/* 19AE20 8026C540 A4720168 */ sh $s2, 0x168($v1)
|
|
||||||
/* 19AE24 8026C544 A471016A */ sh $s1, 0x16a($v1)
|
|
||||||
/* 19AE28 8026C548 A470016C */ sh $s0, 0x16c($v1)
|
|
||||||
/* 19AE2C 8026C54C 8FBF0020 */ lw $ra, 0x20($sp)
|
|
||||||
/* 19AE30 8026C550 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19AE34 8026C554 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19AE38 8026C558 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19AE3C 8026C55C 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19AE40 8026C560 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19AE44 8026C564 03E00008 */ jr $ra
|
|
||||||
/* 19AE48 8026C568 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,53 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel SetActorScale
|
|
||||||
/* 19B1E4 8026C904 27BDFFC8 */ addiu $sp, $sp, -0x38
|
|
||||||
/* 19B1E8 8026C908 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19B1EC 8026C90C 0080902D */ daddu $s2, $a0, $zero
|
|
||||||
/* 19B1F0 8026C910 AFBF001C */ sw $ra, 0x1c($sp)
|
|
||||||
/* 19B1F4 8026C914 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19B1F8 8026C918 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19B1FC 8026C91C F7B80030 */ sdc1 $f24, 0x30($sp)
|
|
||||||
/* 19B200 8026C920 F7B60028 */ sdc1 $f22, 0x28($sp)
|
|
||||||
/* 19B204 8026C924 F7B40020 */ sdc1 $f20, 0x20($sp)
|
|
||||||
/* 19B208 8026C928 8E50000C */ lw $s0, 0xc($s2)
|
|
||||||
/* 19B20C 8026C92C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B210 8026C930 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B214 8026C934 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B218 8026C938 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19B21C 8026C93C 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19B220 8026C940 16220002 */ bne $s1, $v0, .L8026C94C
|
|
||||||
/* 19B224 8026C944 00000000 */ nop
|
|
||||||
/* 19B228 8026C948 8E510148 */ lw $s1, 0x148($s2)
|
|
||||||
.L8026C94C:
|
|
||||||
/* 19B22C 8026C94C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B230 8026C950 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B234 8026C954 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B238 8026C958 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B23C 8026C95C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B240 8026C960 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B244 8026C964 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B248 8026C968 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B24C 8026C96C 46000606 */ mov.s $f24, $f0
|
|
||||||
/* 19B250 8026C970 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B254 8026C974 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B258 8026C978 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B25C 8026C97C 46000586 */ mov.s $f22, $f0
|
|
||||||
/* 19B260 8026C980 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B264 8026C984 0C09A75B */ jal get_actor
|
|
||||||
/* 19B268 8026C988 46000506 */ mov.s $f20, $f0
|
|
||||||
/* 19B26C 8026C98C 0040182D */ daddu $v1, $v0, $zero
|
|
||||||
/* 19B270 8026C990 E4780170 */ swc1 $f24, 0x170($v1)
|
|
||||||
/* 19B274 8026C994 E4760174 */ swc1 $f22, 0x174($v1)
|
|
||||||
/* 19B278 8026C998 E4740178 */ swc1 $f20, 0x178($v1)
|
|
||||||
/* 19B27C 8026C99C 8FBF001C */ lw $ra, 0x1c($sp)
|
|
||||||
/* 19B280 8026C9A0 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19B284 8026C9A4 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19B288 8026C9A8 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19B28C 8026C9AC D7B80030 */ ldc1 $f24, 0x30($sp)
|
|
||||||
/* 19B290 8026C9B0 D7B60028 */ ldc1 $f22, 0x28($sp)
|
|
||||||
/* 19B294 8026C9B4 D7B40020 */ ldc1 $f20, 0x20($sp)
|
|
||||||
/* 19B298 8026C9B8 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19B29C 8026C9BC 03E00008 */ jr $ra
|
|
||||||
/* 19B2A0 8026C9C0 27BD0038 */ addiu $sp, $sp, 0x38
|
|
@ -1,53 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel SetActorScaleModifier
|
|
||||||
/* 19B2A4 8026C9C4 27BDFFC8 */ addiu $sp, $sp, -0x38
|
|
||||||
/* 19B2A8 8026C9C8 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19B2AC 8026C9CC 0080902D */ daddu $s2, $a0, $zero
|
|
||||||
/* 19B2B0 8026C9D0 AFBF001C */ sw $ra, 0x1c($sp)
|
|
||||||
/* 19B2B4 8026C9D4 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19B2B8 8026C9D8 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19B2BC 8026C9DC F7B80030 */ sdc1 $f24, 0x30($sp)
|
|
||||||
/* 19B2C0 8026C9E0 F7B60028 */ sdc1 $f22, 0x28($sp)
|
|
||||||
/* 19B2C4 8026C9E4 F7B40020 */ sdc1 $f20, 0x20($sp)
|
|
||||||
/* 19B2C8 8026C9E8 8E50000C */ lw $s0, 0xc($s2)
|
|
||||||
/* 19B2CC 8026C9EC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B2D0 8026C9F0 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B2D4 8026C9F4 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B2D8 8026C9F8 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19B2DC 8026C9FC 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19B2E0 8026CA00 16220002 */ bne $s1, $v0, .L8026CA0C
|
|
||||||
/* 19B2E4 8026CA04 00000000 */ nop
|
|
||||||
/* 19B2E8 8026CA08 8E510148 */ lw $s1, 0x148($s2)
|
|
||||||
.L8026CA0C:
|
|
||||||
/* 19B2EC 8026CA0C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B2F0 8026CA10 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B2F4 8026CA14 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B2F8 8026CA18 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B2FC 8026CA1C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B300 8026CA20 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B304 8026CA24 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B308 8026CA28 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B30C 8026CA2C 46000606 */ mov.s $f24, $f0
|
|
||||||
/* 19B310 8026CA30 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B314 8026CA34 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B318 8026CA38 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B31C 8026CA3C 46000586 */ mov.s $f22, $f0
|
|
||||||
/* 19B320 8026CA40 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B324 8026CA44 0C09A75B */ jal get_actor
|
|
||||||
/* 19B328 8026CA48 46000506 */ mov.s $f20, $f0
|
|
||||||
/* 19B32C 8026CA4C 0040182D */ daddu $v1, $v0, $zero
|
|
||||||
/* 19B330 8026CA50 E478017C */ swc1 $f24, 0x17c($v1)
|
|
||||||
/* 19B334 8026CA54 E4760180 */ swc1 $f22, 0x180($v1)
|
|
||||||
/* 19B338 8026CA58 E4740184 */ swc1 $f20, 0x184($v1)
|
|
||||||
/* 19B33C 8026CA5C 8FBF001C */ lw $ra, 0x1c($sp)
|
|
||||||
/* 19B340 8026CA60 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19B344 8026CA64 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19B348 8026CA68 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19B34C 8026CA6C D7B80030 */ ldc1 $f24, 0x30($sp)
|
|
||||||
/* 19B350 8026CA70 D7B60028 */ ldc1 $f22, 0x28($sp)
|
|
||||||
/* 19B354 8026CA74 D7B40020 */ ldc1 $f20, 0x20($sp)
|
|
||||||
/* 19B358 8026CA78 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19B35C 8026CA7C 03E00008 */ jr $ra
|
|
||||||
/* 19B360 8026CA80 27BD0038 */ addiu $sp, $sp, 0x38
|
|
@ -1,52 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel SetPartMovementVar
|
|
||||||
/* 19AB0C 8026C22C 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19AB10 8026C230 AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19AB14 8026C234 0080982D */ daddu $s3, $a0, $zero
|
|
||||||
/* 19AB18 8026C238 AFBF0020 */ sw $ra, 0x20($sp)
|
|
||||||
/* 19AB1C 8026C23C AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19AB20 8026C240 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19AB24 8026C244 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19AB28 8026C248 8E70000C */ lw $s0, 0xc($s3)
|
|
||||||
/* 19AB2C 8026C24C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AB30 8026C250 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AB34 8026C254 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AB38 8026C258 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19AB3C 8026C25C 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19AB40 8026C260 16220002 */ bne $s1, $v0, .L8026C26C
|
|
||||||
/* 19AB44 8026C264 00000000 */ nop
|
|
||||||
/* 19AB48 8026C268 8E710148 */ lw $s1, 0x148($s3)
|
|
||||||
.L8026C26C:
|
|
||||||
/* 19AB4C 8026C26C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AB50 8026C270 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AB54 8026C274 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AB58 8026C278 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AB5C 8026C27C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AB60 8026C280 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AB64 8026C284 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AB68 8026C288 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AB6C 8026C28C 0040902D */ daddu $s2, $v0, $zero
|
|
||||||
/* 19AB70 8026C290 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AB74 8026C294 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AB78 8026C298 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AB7C 8026C29C 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19AB80 8026C2A0 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19AB84 8026C2A4 0C09A75B */ jal get_actor
|
|
||||||
/* 19AB88 8026C2A8 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19AB8C 8026C2AC 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19AB90 8026C2B0 0C099117 */ jal get_actor_part
|
|
||||||
/* 19AB94 8026C2B4 0240282D */ daddu $a1, $s2, $zero
|
|
||||||
/* 19AB98 8026C2B8 8C430010 */ lw $v1, 0x10($v0)
|
|
||||||
/* 19AB9C 8026C2BC 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19ABA0 8026C2C0 00508004 */ sllv $s0, $s0, $v0
|
|
||||||
/* 19ABA4 8026C2C4 00701821 */ addu $v1, $v1, $s0
|
|
||||||
/* 19ABA8 8026C2C8 AC71004C */ sw $s1, 0x4c($v1)
|
|
||||||
/* 19ABAC 8026C2CC 8FBF0020 */ lw $ra, 0x20($sp)
|
|
||||||
/* 19ABB0 8026C2D0 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19ABB4 8026C2D4 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19ABB8 8026C2D8 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19ABBC 8026C2DC 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19ABC0 8026C2E0 03E00008 */ jr $ra
|
|
||||||
/* 19ABC4 8026C2E4 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,72 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel SetPartRotation
|
|
||||||
/* 19AF14 8026C634 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19AF18 8026C638 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19AF1C 8026C63C 0080882D */ daddu $s1, $a0, $zero
|
|
||||||
/* 19AF20 8026C640 AFBF0024 */ sw $ra, 0x24($sp)
|
|
||||||
/* 19AF24 8026C644 AFB40020 */ sw $s4, 0x20($sp)
|
|
||||||
/* 19AF28 8026C648 AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19AF2C 8026C64C AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19AF30 8026C650 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19AF34 8026C654 8E30000C */ lw $s0, 0xc($s1)
|
|
||||||
/* 19AF38 8026C658 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AF3C 8026C65C 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AF40 8026C660 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AF44 8026C664 0040982D */ daddu $s3, $v0, $zero
|
|
||||||
/* 19AF48 8026C668 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AF4C 8026C66C 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AF50 8026C670 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19AF54 8026C674 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19AF58 8026C678 0040A02D */ daddu $s4, $v0, $zero
|
|
||||||
/* 19AF5C 8026C67C 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19AF60 8026C680 16620002 */ bne $s3, $v0, .L8026C68C
|
|
||||||
/* 19AF64 8026C684 00000000 */ nop
|
|
||||||
/* 19AF68 8026C688 8E330148 */ lw $s3, 0x148($s1)
|
|
||||||
.L8026C68C:
|
|
||||||
/* 19AF6C 8026C68C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AF70 8026C690 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AF74 8026C694 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19AF78 8026C698 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19AF7C 8026C69C 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AF80 8026C6A0 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19AF84 8026C6A4 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AF88 8026C6A8 44121000 */ mfc1 $s2, $f2
|
|
||||||
/* 19AF8C 8026C6AC 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19AF90 8026C6B0 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19AF94 8026C6B4 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19AF98 8026C6B8 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19AF9C 8026C6BC 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AFA0 8026C6C0 44111000 */ mfc1 $s1, $f2
|
|
||||||
/* 19AFA4 8026C6C4 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19AFA8 8026C6C8 00000000 */ nop
|
|
||||||
/* 19AFAC 8026C6CC 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19AFB0 8026C6D0 44101000 */ mfc1 $s0, $f2
|
|
||||||
/* 19AFB4 8026C6D4 0C09A75B */ jal get_actor
|
|
||||||
/* 19AFB8 8026C6D8 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19AFBC 8026C6DC 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19AFC0 8026C6E0 0C099117 */ jal get_actor_part
|
|
||||||
/* 19AFC4 8026C6E4 0280282D */ daddu $a1, $s4, $zero
|
|
||||||
/* 19AFC8 8026C6E8 0040182D */ daddu $v1, $v0, $zero
|
|
||||||
/* 19AFCC 8026C6EC 44920000 */ mtc1 $s2, $f0
|
|
||||||
/* 19AFD0 8026C6F0 00000000 */ nop
|
|
||||||
/* 19AFD4 8026C6F4 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19AFD8 8026C6F8 E4600038 */ swc1 $f0, 0x38($v1)
|
|
||||||
/* 19AFDC 8026C6FC 44910000 */ mtc1 $s1, $f0
|
|
||||||
/* 19AFE0 8026C700 00000000 */ nop
|
|
||||||
/* 19AFE4 8026C704 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19AFE8 8026C708 E460003C */ swc1 $f0, 0x3c($v1)
|
|
||||||
/* 19AFEC 8026C70C 44900000 */ mtc1 $s0, $f0
|
|
||||||
/* 19AFF0 8026C710 00000000 */ nop
|
|
||||||
/* 19AFF4 8026C714 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19AFF8 8026C718 E4600040 */ swc1 $f0, 0x40($v1)
|
|
||||||
/* 19AFFC 8026C71C 8FBF0024 */ lw $ra, 0x24($sp)
|
|
||||||
/* 19B000 8026C720 8FB40020 */ lw $s4, 0x20($sp)
|
|
||||||
/* 19B004 8026C724 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19B008 8026C728 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19B00C 8026C72C 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19B010 8026C730 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19B014 8026C734 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19B018 8026C738 03E00008 */ jr $ra
|
|
||||||
/* 19B01C 8026C73C 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,63 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel SetPartRotationOffset
|
|
||||||
/* 19B020 8026C740 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19B024 8026C744 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19B028 8026C748 0080882D */ daddu $s1, $a0, $zero
|
|
||||||
/* 19B02C 8026C74C AFBF0024 */ sw $ra, 0x24($sp)
|
|
||||||
/* 19B030 8026C750 AFB40020 */ sw $s4, 0x20($sp)
|
|
||||||
/* 19B034 8026C754 AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19B038 8026C758 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19B03C 8026C75C AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19B040 8026C760 8E30000C */ lw $s0, 0xc($s1)
|
|
||||||
/* 19B044 8026C764 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B048 8026C768 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B04C 8026C76C 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B050 8026C770 0040982D */ daddu $s3, $v0, $zero
|
|
||||||
/* 19B054 8026C774 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B058 8026C778 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B05C 8026C77C 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B060 8026C780 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B064 8026C784 0040A02D */ daddu $s4, $v0, $zero
|
|
||||||
/* 19B068 8026C788 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19B06C 8026C78C 16620002 */ bne $s3, $v0, .L8026C798
|
|
||||||
/* 19B070 8026C790 00000000 */ nop
|
|
||||||
/* 19B074 8026C794 8E330148 */ lw $s3, 0x148($s1)
|
|
||||||
.L8026C798:
|
|
||||||
/* 19B078 8026C798 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B07C 8026C79C 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B080 8026C7A0 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B084 8026C7A4 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B088 8026C7A8 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B08C 8026C7AC 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B090 8026C7B0 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19B094 8026C7B4 44121000 */ mfc1 $s2, $f2
|
|
||||||
/* 19B098 8026C7B8 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B09C 8026C7BC 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B0A0 8026C7C0 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B0A4 8026C7C4 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B0A8 8026C7C8 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19B0AC 8026C7CC 44111000 */ mfc1 $s1, $f2
|
|
||||||
/* 19B0B0 8026C7D0 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B0B4 8026C7D4 00000000 */ nop
|
|
||||||
/* 19B0B8 8026C7D8 4600008D */ trunc.w.s $f2, $f0
|
|
||||||
/* 19B0BC 8026C7DC 44101000 */ mfc1 $s0, $f2
|
|
||||||
/* 19B0C0 8026C7E0 0C09A75B */ jal get_actor
|
|
||||||
/* 19B0C4 8026C7E4 0260202D */ daddu $a0, $s3, $zero
|
|
||||||
/* 19B0C8 8026C7E8 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19B0CC 8026C7EC 0C099117 */ jal get_actor_part
|
|
||||||
/* 19B0D0 8026C7F0 0280282D */ daddu $a1, $s4, $zero
|
|
||||||
/* 19B0D4 8026C7F4 0040182D */ daddu $v1, $v0, $zero
|
|
||||||
/* 19B0D8 8026C7F8 A4720044 */ sh $s2, 0x44($v1)
|
|
||||||
/* 19B0DC 8026C7FC A4710046 */ sh $s1, 0x46($v1)
|
|
||||||
/* 19B0E0 8026C800 A4700048 */ sh $s0, 0x48($v1)
|
|
||||||
/* 19B0E4 8026C804 8FBF0024 */ lw $ra, 0x24($sp)
|
|
||||||
/* 19B0E8 8026C808 8FB40020 */ lw $s4, 0x20($sp)
|
|
||||||
/* 19B0EC 8026C80C 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19B0F0 8026C810 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19B0F4 8026C814 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19B0F8 8026C818 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19B0FC 8026C81C 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19B100 8026C820 03E00008 */ jr $ra
|
|
||||||
/* 19B104 8026C824 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,63 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
glabel SetPartScale
|
|
||||||
/* 19B42C 8026CB4C 27BDFFC0 */ addiu $sp, $sp, -0x40
|
|
||||||
/* 19B430 8026CB50 AFB10014 */ sw $s1, 0x14($sp)
|
|
||||||
/* 19B434 8026CB54 0080882D */ daddu $s1, $a0, $zero
|
|
||||||
/* 19B438 8026CB58 AFBF0020 */ sw $ra, 0x20($sp)
|
|
||||||
/* 19B43C 8026CB5C AFB3001C */ sw $s3, 0x1c($sp)
|
|
||||||
/* 19B440 8026CB60 AFB20018 */ sw $s2, 0x18($sp)
|
|
||||||
/* 19B444 8026CB64 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 19B448 8026CB68 F7B80038 */ sdc1 $f24, 0x38($sp)
|
|
||||||
/* 19B44C 8026CB6C F7B60030 */ sdc1 $f22, 0x30($sp)
|
|
||||||
/* 19B450 8026CB70 F7B40028 */ sdc1 $f20, 0x28($sp)
|
|
||||||
/* 19B454 8026CB74 8E30000C */ lw $s0, 0xc($s1)
|
|
||||||
/* 19B458 8026CB78 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B45C 8026CB7C 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B460 8026CB80 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B464 8026CB84 0040902D */ daddu $s2, $v0, $zero
|
|
||||||
/* 19B468 8026CB88 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B46C 8026CB8C 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B470 8026CB90 0C0B1EAF */ jal get_variable
|
|
||||||
/* 19B474 8026CB94 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B478 8026CB98 0040982D */ daddu $s3, $v0, $zero
|
|
||||||
/* 19B47C 8026CB9C 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19B480 8026CBA0 16420002 */ bne $s2, $v0, .L8026CBAC
|
|
||||||
/* 19B484 8026CBA4 00000000 */ nop
|
|
||||||
/* 19B488 8026CBA8 8E320148 */ lw $s2, 0x148($s1)
|
|
||||||
.L8026CBAC:
|
|
||||||
/* 19B48C 8026CBAC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B490 8026CBB0 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B494 8026CBB4 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B498 8026CBB8 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B49C 8026CBBC 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B4A0 8026CBC0 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19B4A4 8026CBC4 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B4A8 8026CBC8 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B4AC 8026CBCC 46000606 */ mov.s $f24, $f0
|
|
||||||
/* 19B4B0 8026CBD0 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19B4B4 8026CBD4 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19B4B8 8026CBD8 0C0B210B */ jal get_float_variable
|
|
||||||
/* 19B4BC 8026CBDC 46000586 */ mov.s $f22, $f0
|
|
||||||
/* 19B4C0 8026CBE0 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19B4C4 8026CBE4 0C09A75B */ jal get_actor
|
|
||||||
/* 19B4C8 8026CBE8 46000506 */ mov.s $f20, $f0
|
|
||||||
/* 19B4CC 8026CBEC 0040202D */ daddu $a0, $v0, $zero
|
|
||||||
/* 19B4D0 8026CBF0 0C099117 */ jal get_actor_part
|
|
||||||
/* 19B4D4 8026CBF4 0260282D */ daddu $a1, $s3, $zero
|
|
||||||
/* 19B4D8 8026CBF8 0040182D */ daddu $v1, $v0, $zero
|
|
||||||
/* 19B4DC 8026CBFC E478004C */ swc1 $f24, 0x4c($v1)
|
|
||||||
/* 19B4E0 8026CC00 E4760050 */ swc1 $f22, 0x50($v1)
|
|
||||||
/* 19B4E4 8026CC04 E4740054 */ swc1 $f20, 0x54($v1)
|
|
||||||
/* 19B4E8 8026CC08 8FBF0020 */ lw $ra, 0x20($sp)
|
|
||||||
/* 19B4EC 8026CC0C 8FB3001C */ lw $s3, 0x1c($sp)
|
|
||||||
/* 19B4F0 8026CC10 8FB20018 */ lw $s2, 0x18($sp)
|
|
||||||
/* 19B4F4 8026CC14 8FB10014 */ lw $s1, 0x14($sp)
|
|
||||||
/* 19B4F8 8026CC18 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 19B4FC 8026CC1C D7B80038 */ ldc1 $f24, 0x38($sp)
|
|
||||||
/* 19B500 8026CC20 D7B60030 */ ldc1 $f22, 0x30($sp)
|
|
||||||
/* 19B504 8026CC24 D7B40028 */ ldc1 $f20, 0x28($sp)
|
|
||||||
/* 19B508 8026CC28 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19B50C 8026CC2C 03E00008 */ jr $ra
|
|
||||||
/* 19B510 8026CC30 27BD0040 */ addiu $sp, $sp, 0x40
|
|
@ -1047,7 +1047,7 @@ typedef struct ActorPart {
|
|||||||
/* 0x38 */ Vec3f rotation;
|
/* 0x38 */ Vec3f rotation;
|
||||||
/* 0x44 */ Vec3s rotationPivotOffset;
|
/* 0x44 */ Vec3s rotationPivotOffset;
|
||||||
/* 0x4A */ char unk_4A[2];
|
/* 0x4A */ char unk_4A[2];
|
||||||
/* 0x4C */ f32 scale[3];
|
/* 0x4C */ Vec3f scale;
|
||||||
/* 0x58 */ Vec3f currentPos;
|
/* 0x58 */ Vec3f currentPos;
|
||||||
/* 0x64 */ f32 yaw;
|
/* 0x64 */ f32 yaw;
|
||||||
/* 0x68 */ s16 unkOffset[2];
|
/* 0x68 */ s16 unkOffset[2];
|
||||||
@ -1269,11 +1269,11 @@ typedef struct Actor {
|
|||||||
/* 0x144 */ Vec3f currentPos;
|
/* 0x144 */ Vec3f currentPos;
|
||||||
/* 0x150 */ Vec3s headOffset;
|
/* 0x150 */ Vec3s headOffset;
|
||||||
/* 0x156 */ s16 healthBarPosition[3];
|
/* 0x156 */ s16 healthBarPosition[3];
|
||||||
/* 0x15C */ f32 rotation[3];
|
/* 0x15C */ Vec3f rotation;
|
||||||
/* 0x168 */ s16 rotationPivotOffset[3];
|
/* 0x168 */ Vec3s rotationPivotOffset;
|
||||||
/* 0x16E */ char unk_16E[2];
|
/* 0x16E */ char unk_16E[2];
|
||||||
/* 0x170 */ f32 scale[3];
|
/* 0x170 */ Vec3f scale;
|
||||||
/* 0x17C */ f32 scaleModifier[3]; /* multiplies normal scale factors componentwise */
|
/* 0x17C */ Vec3f scaleModifier; /* multiplies normal scale factors componentwise */
|
||||||
/* 0x188 */ f32 scalingFactor;
|
/* 0x188 */ f32 scalingFactor;
|
||||||
/* 0x18C */ f32 yaw;
|
/* 0x18C */ f32 yaw;
|
||||||
/* 0x190 */ Vec2b size;
|
/* 0x190 */ Vec2b size;
|
||||||
|
@ -1145,33 +1145,331 @@ ApiStatus AddActorVar(ScriptInstance* script, s32 isInitialCall) {
|
|||||||
INCLUDE_ASM(s32, "code_197F40", AddActorVar);
|
INCLUDE_ASM(s32, "code_197F40", AddActorVar);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", GetPartMovementVar);
|
ApiStatus GetPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
s32 partIndex;
|
||||||
|
s32 tableIndex;
|
||||||
|
s32 outVar;
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", SetPartMovementVar);
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", AddPartMovementVar);
|
partIndex = get_variable(script, *args++);
|
||||||
|
tableIndex = get_variable(script, *args++);
|
||||||
|
outVar = *args++;
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", SetActorRotation);
|
set_variable(script, outVar, get_actor_part(get_actor(actorID), partIndex)->movement->varTable[tableIndex]);
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", SetActorRotationOffset);
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", GetActorRotation);
|
ApiStatus SetPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
s32 partIndex;
|
||||||
|
s32 tableIndex;
|
||||||
|
s32 val;
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", SetPartRotation);
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", SetPartRotationOffset);
|
partIndex = get_variable(script, *args++);
|
||||||
|
tableIndex = get_variable(script, *args++);
|
||||||
|
val = get_variable(script, *args++);
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", GetPartRotation);
|
get_actor_part(get_actor(actorID), partIndex)->movement->varTable[tableIndex] = val;
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", SetActorScale);
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", SetActorScaleModifier);
|
ApiStatus AddPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
s32 partIndex;
|
||||||
|
s32 tableIndex;
|
||||||
|
s32 val;
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", GetActorScale);
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", SetPartScale);
|
partIndex = get_variable(script, *args++);
|
||||||
|
tableIndex = get_variable(script, *args++);
|
||||||
|
val = get_variable(script, *args++);
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "code_197F40", GetPartScale);
|
get_actor_part(get_actor(actorID), partIndex)->movement->varTable[tableIndex] += val;
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus SetActorRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
Actor* actor;
|
||||||
|
s32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = get_float_variable(script, *args++);
|
||||||
|
y = get_float_variable(script, *args++);
|
||||||
|
z = get_float_variable(script, *args++);
|
||||||
|
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
|
||||||
|
if (x != -250000000) {
|
||||||
|
actor->rotation.x = x;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (y != -250000000) {
|
||||||
|
actor->rotation.y = y;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (z != -250000000) {
|
||||||
|
actor->rotation.z = z;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus SetActorRotationOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
Actor* actor;
|
||||||
|
s32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = get_float_variable(script, *args++);
|
||||||
|
y = get_float_variable(script, *args++);
|
||||||
|
z = get_float_variable(script, *args++);
|
||||||
|
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
|
||||||
|
actor->rotationPivotOffset.x = x;
|
||||||
|
actor->rotationPivotOffset.y = y;
|
||||||
|
actor->rotationPivotOffset.z = z;
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus GetActorRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
Actor* actor;
|
||||||
|
s32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = *args++;
|
||||||
|
y = *args++;
|
||||||
|
z = *args++;
|
||||||
|
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
|
||||||
|
set_variable(script, x, actor->rotation.x);
|
||||||
|
set_variable(script, y, actor->rotation.y);
|
||||||
|
set_variable(script, z, actor->rotation.z);
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus SetPartRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
s32 partIndex = get_variable(script, *args++);
|
||||||
|
ActorPart* actorPart;
|
||||||
|
s32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = get_float_variable(script, *args++);
|
||||||
|
y = get_float_variable(script, *args++);
|
||||||
|
z = get_float_variable(script, *args++);
|
||||||
|
|
||||||
|
actorPart = get_actor_part(get_actor(actorID), partIndex);
|
||||||
|
|
||||||
|
actorPart->rotation.x = x;
|
||||||
|
actorPart->rotation.y = y;
|
||||||
|
actorPart->rotation.z = z;
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus SetPartRotationOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
s32 partIndex = get_variable(script, *args++);
|
||||||
|
ActorPart* actorPart;
|
||||||
|
s32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = get_float_variable(script, *args++);
|
||||||
|
y = get_float_variable(script, *args++);
|
||||||
|
z = get_float_variable(script, *args++);
|
||||||
|
|
||||||
|
actorPart = get_actor_part(get_actor(actorID), partIndex);
|
||||||
|
|
||||||
|
actorPart->rotationPivotOffset.x = x;
|
||||||
|
actorPart->rotationPivotOffset.y = y;
|
||||||
|
actorPart->rotationPivotOffset.z = z;
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus GetPartRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
s32 partIndex = get_variable(script, *args++);
|
||||||
|
ActorPart* actorPart;
|
||||||
|
s32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = *args++;
|
||||||
|
y = *args++;
|
||||||
|
z = *args++;
|
||||||
|
|
||||||
|
actorPart = get_actor_part(get_actor(actorID), partIndex);
|
||||||
|
|
||||||
|
set_float_variable(script, x, actorPart->rotation.x);
|
||||||
|
set_float_variable(script, y, actorPart->rotation.y);
|
||||||
|
set_float_variable(script, z, actorPart->rotation.z);
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus SetActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
Actor* actor;
|
||||||
|
f32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = get_float_variable(script, *args++);
|
||||||
|
y = get_float_variable(script, *args++);
|
||||||
|
z = get_float_variable(script, *args++);
|
||||||
|
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
|
||||||
|
actor->scale.x = x;
|
||||||
|
actor->scale.y = y;
|
||||||
|
actor->scale.z = z;
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus SetActorScaleModifier(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
Actor* actor;
|
||||||
|
f32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = get_float_variable(script, *args++);
|
||||||
|
y = get_float_variable(script, *args++);
|
||||||
|
z = get_float_variable(script, *args++);
|
||||||
|
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
|
||||||
|
actor->scaleModifier.x = x;
|
||||||
|
actor->scaleModifier.y = y;
|
||||||
|
actor->scaleModifier.z = z;
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus GetActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
Actor* actor;
|
||||||
|
f32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = *args++;
|
||||||
|
y = *args++;
|
||||||
|
z = *args++;
|
||||||
|
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
|
||||||
|
set_float_variable(script, x, actor->scale.x);
|
||||||
|
set_float_variable(script, y, actor->scale.y);
|
||||||
|
set_float_variable(script, z, actor->scale.z);
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus SetPartScale(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
s32 partIndex = get_variable(script, *args++);
|
||||||
|
ActorPart* actorPart;
|
||||||
|
f32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = get_float_variable(script, *args++);
|
||||||
|
y = get_float_variable(script, *args++);
|
||||||
|
z = get_float_variable(script, *args++);
|
||||||
|
|
||||||
|
actorPart = get_actor_part(get_actor(actorID), partIndex);
|
||||||
|
|
||||||
|
actorPart->scale.x = x;
|
||||||
|
actorPart->scale.y = y;
|
||||||
|
actorPart->scale.z = z;
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus GetPartScale(ScriptInstance* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
ActorID actorID = get_variable(script, *args++);
|
||||||
|
s32 partIndex = get_variable(script, *args++);
|
||||||
|
ActorPart* actorPart;
|
||||||
|
s32 x, y, z;
|
||||||
|
|
||||||
|
if (actorID == ActorID_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
|
||||||
|
x = *args++;
|
||||||
|
y = *args++;
|
||||||
|
z = *args++;
|
||||||
|
|
||||||
|
actorPart = get_actor_part(get_actor(actorID), partIndex);
|
||||||
|
|
||||||
|
set_float_variable(script, x, actorPart->scale.x);
|
||||||
|
set_float_variable(script, y, actorPart->scale.y);
|
||||||
|
set_float_variable(script, z, actorPart->scale.z);
|
||||||
|
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
|
||||||
ApiStatus GetBattleFlags(ScriptInstance* script, s32 isInitialCall) {
|
ApiStatus GetBattleFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||||
set_variable(script, *script->ptrReadPos, gBattleStatus.flags1);
|
set_variable(script, *script->ptrReadPos, gBattleStatus.flags1);
|
||||||
|
Loading…
Reference in New Issue
Block a user