Lots more matching Camera-related functions

This commit is contained in:
Jdog 2020-08-20 14:16:52 -07:00
parent 89e749a724
commit eb82e98854
16 changed files with 169 additions and 615 deletions

View File

@ -1,34 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetCamDistance
/* 0F0A34 802CC084 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0F0A38 802CC088 AFB10014 */ sw $s1, 0x14($sp)
/* 0F0A3C 802CC08C 0080882D */ daddu $s1, $a0, $zero
/* 0F0A40 802CC090 AFBF0018 */ sw $ra, 0x18($sp)
/* 0F0A44 802CC094 AFB00010 */ sw $s0, 0x10($sp)
/* 0F0A48 802CC098 8E30000C */ lw $s0, 0xc($s1)
/* 0F0A4C 802CC09C 8E050000 */ lw $a1, ($s0)
/* 0F0A50 802CC0A0 0C0B1EAF */ jal get_variable
/* 0F0A54 802CC0A4 26100004 */ addiu $s0, $s0, 4
/* 0F0A58 802CC0A8 00021880 */ sll $v1, $v0, 2
/* 0F0A5C 802CC0AC 00621821 */ addu $v1, $v1, $v0
/* 0F0A60 802CC0B0 00031880 */ sll $v1, $v1, 2
/* 0F0A64 802CC0B4 00621823 */ subu $v1, $v1, $v0
/* 0F0A68 802CC0B8 000310C0 */ sll $v0, $v1, 3
/* 0F0A6C 802CC0BC 00621821 */ addu $v1, $v1, $v0
/* 0F0A70 802CC0C0 000318C0 */ sll $v1, $v1, 3
/* 0F0A74 802CC0C4 8E050000 */ lw $a1, ($s0)
/* 0F0A78 802CC0C8 3C06800B */ lui $a2, 0x800b
/* 0F0A7C 802CC0CC 00C33021 */ addu $a2, $a2, $v1
/* 0F0A80 802CC0D0 8CC6225C */ lw $a2, 0x225c($a2)
/* 0F0A84 802CC0D4 0C0B2190 */ jal set_float_variable
/* 0F0A88 802CC0D8 0220202D */ daddu $a0, $s1, $zero
/* 0F0A8C 802CC0DC 8FBF0018 */ lw $ra, 0x18($sp)
/* 0F0A90 802CC0E0 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0A94 802CC0E4 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0A98 802CC0E8 24020002 */ addiu $v0, $zero, 2
/* 0F0A9C 802CC0EC 03E00008 */ jr $ra
/* 0F0AA0 802CC0F0 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetCamPitch
/* 0F09A4 802CBFF4 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0F09A8 802CBFF8 AFB20018 */ sw $s2, 0x18($sp)
/* 0F09AC 802CBFFC 0080902D */ daddu $s2, $a0, $zero
/* 0F09B0 802CC000 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F09B4 802CC004 AFB10014 */ sw $s1, 0x14($sp)
/* 0F09B8 802CC008 AFB00010 */ sw $s0, 0x10($sp)
/* 0F09BC 802CC00C 8E51000C */ lw $s1, 0xc($s2)
/* 0F09C0 802CC010 8E250000 */ lw $a1, ($s1)
/* 0F09C4 802CC014 0C0B1EAF */ jal get_variable
/* 0F09C8 802CC018 26310004 */ addiu $s1, $s1, 4
/* 0F09CC 802CC01C 3C03800B */ lui $v1, 0x800b
/* 0F09D0 802CC020 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F09D4 802CC024 00028080 */ sll $s0, $v0, 2
/* 0F09D8 802CC028 02028021 */ addu $s0, $s0, $v0
/* 0F09DC 802CC02C 00108080 */ sll $s0, $s0, 2
/* 0F09E0 802CC030 02028023 */ subu $s0, $s0, $v0
/* 0F09E4 802CC034 001010C0 */ sll $v0, $s0, 3
/* 0F09E8 802CC038 02028021 */ addu $s0, $s0, $v0
/* 0F09EC 802CC03C 001080C0 */ sll $s0, $s0, 3
/* 0F09F0 802CC040 02038021 */ addu $s0, $s0, $v1
/* 0F09F4 802CC044 8E250000 */ lw $a1, ($s1)
/* 0F09F8 802CC048 8E0604E0 */ lw $a2, 0x4e0($s0)
/* 0F09FC 802CC04C 8E310004 */ lw $s1, 4($s1)
/* 0F0A00 802CC050 0C0B2190 */ jal set_float_variable
/* 0F0A04 802CC054 0240202D */ daddu $a0, $s2, $zero
/* 0F0A08 802CC058 0240202D */ daddu $a0, $s2, $zero
/* 0F0A0C 802CC05C 8E0604FC */ lw $a2, 0x4fc($s0)
/* 0F0A10 802CC060 0C0B2190 */ jal set_float_variable
/* 0F0A14 802CC064 0220282D */ daddu $a1, $s1, $zero
/* 0F0A18 802CC068 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F0A1C 802CC06C 8FB20018 */ lw $s2, 0x18($sp)
/* 0F0A20 802CC070 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0A24 802CC074 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0A28 802CC078 24020002 */ addiu $v0, $zero, 2
/* 0F0A2C 802CC07C 03E00008 */ jr $ra
/* 0F0A30 802CC080 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetCamPosA
/* 0F0AA4 802CC0F4 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0F0AA8 802CC0F8 AFB20018 */ sw $s2, 0x18($sp)
/* 0F0AAC 802CC0FC 0080902D */ daddu $s2, $a0, $zero
/* 0F0AB0 802CC100 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F0AB4 802CC104 AFB10014 */ sw $s1, 0x14($sp)
/* 0F0AB8 802CC108 AFB00010 */ sw $s0, 0x10($sp)
/* 0F0ABC 802CC10C 8E51000C */ lw $s1, 0xc($s2)
/* 0F0AC0 802CC110 8E250000 */ lw $a1, ($s1)
/* 0F0AC4 802CC114 0C0B1EAF */ jal get_variable
/* 0F0AC8 802CC118 26310004 */ addiu $s1, $s1, 4
/* 0F0ACC 802CC11C 3C03800B */ lui $v1, 0x800b
/* 0F0AD0 802CC120 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0AD4 802CC124 00028080 */ sll $s0, $v0, 2
/* 0F0AD8 802CC128 02028021 */ addu $s0, $s0, $v0
/* 0F0ADC 802CC12C 00108080 */ sll $s0, $s0, 2
/* 0F0AE0 802CC130 02028023 */ subu $s0, $s0, $v0
/* 0F0AE4 802CC134 001010C0 */ sll $v0, $s0, 3
/* 0F0AE8 802CC138 02028021 */ addu $s0, $s0, $v0
/* 0F0AEC 802CC13C 001080C0 */ sll $s0, $s0, 3
/* 0F0AF0 802CC140 02038021 */ addu $s0, $s0, $v1
/* 0F0AF4 802CC144 8E250000 */ lw $a1, ($s1)
/* 0F0AF8 802CC148 8E0604E4 */ lw $a2, 0x4e4($s0)
/* 0F0AFC 802CC14C 8E310004 */ lw $s1, 4($s1)
/* 0F0B00 802CC150 0C0B2190 */ jal set_float_variable
/* 0F0B04 802CC154 0240202D */ daddu $a0, $s2, $zero
/* 0F0B08 802CC158 0240202D */ daddu $a0, $s2, $zero
/* 0F0B0C 802CC15C 8E0604EC */ lw $a2, 0x4ec($s0)
/* 0F0B10 802CC160 0C0B2190 */ jal set_float_variable
/* 0F0B14 802CC164 0220282D */ daddu $a1, $s1, $zero
/* 0F0B18 802CC168 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F0B1C 802CC16C 8FB20018 */ lw $s2, 0x18($sp)
/* 0F0B20 802CC170 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0B24 802CC174 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0B28 802CC178 24020002 */ addiu $v0, $zero, 2
/* 0F0B2C 802CC17C 03E00008 */ jr $ra
/* 0F0B30 802CC180 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetCamPosB
/* 0F0B34 802CC184 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0F0B38 802CC188 AFB20018 */ sw $s2, 0x18($sp)
/* 0F0B3C 802CC18C 0080902D */ daddu $s2, $a0, $zero
/* 0F0B40 802CC190 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F0B44 802CC194 AFB10014 */ sw $s1, 0x14($sp)
/* 0F0B48 802CC198 AFB00010 */ sw $s0, 0x10($sp)
/* 0F0B4C 802CC19C 8E51000C */ lw $s1, 0xc($s2)
/* 0F0B50 802CC1A0 8E250000 */ lw $a1, ($s1)
/* 0F0B54 802CC1A4 0C0B1EAF */ jal get_variable
/* 0F0B58 802CC1A8 26310004 */ addiu $s1, $s1, 4
/* 0F0B5C 802CC1AC 3C03800B */ lui $v1, 0x800b
/* 0F0B60 802CC1B0 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0B64 802CC1B4 00028080 */ sll $s0, $v0, 2
/* 0F0B68 802CC1B8 02028021 */ addu $s0, $s0, $v0
/* 0F0B6C 802CC1BC 00108080 */ sll $s0, $s0, 2
/* 0F0B70 802CC1C0 02028023 */ subu $s0, $s0, $v0
/* 0F0B74 802CC1C4 001010C0 */ sll $v0, $s0, 3
/* 0F0B78 802CC1C8 02028021 */ addu $s0, $s0, $v0
/* 0F0B7C 802CC1CC 001080C0 */ sll $s0, $s0, 3
/* 0F0B80 802CC1D0 02038021 */ addu $s0, $s0, $v1
/* 0F0B84 802CC1D4 8E250000 */ lw $a1, ($s1)
/* 0F0B88 802CC1D8 8E0604F0 */ lw $a2, 0x4f0($s0)
/* 0F0B8C 802CC1DC 8E310004 */ lw $s1, 4($s1)
/* 0F0B90 802CC1E0 0C0B2190 */ jal set_float_variable
/* 0F0B94 802CC1E4 0240202D */ daddu $a0, $s2, $zero
/* 0F0B98 802CC1E8 0240202D */ daddu $a0, $s2, $zero
/* 0F0B9C 802CC1EC 8E0604F8 */ lw $a2, 0x4f8($s0)
/* 0F0BA0 802CC1F0 0C0B2190 */ jal set_float_variable
/* 0F0BA4 802CC1F4 0220282D */ daddu $a1, $s1, $zero
/* 0F0BA8 802CC1F8 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F0BAC 802CC1FC 8FB20018 */ lw $s2, 0x18($sp)
/* 0F0BB0 802CC200 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0BB4 802CC204 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0BB8 802CC208 24020002 */ addiu $v0, $zero, 2
/* 0F0BBC 802CC20C 03E00008 */ jr $ra
/* 0F0BC0 802CC210 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetCamPosC
/* 0F0BC4 802CC214 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0F0BC8 802CC218 AFB20018 */ sw $s2, 0x18($sp)
/* 0F0BCC 802CC21C 0080902D */ daddu $s2, $a0, $zero
/* 0F0BD0 802CC220 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F0BD4 802CC224 AFB10014 */ sw $s1, 0x14($sp)
/* 0F0BD8 802CC228 AFB00010 */ sw $s0, 0x10($sp)
/* 0F0BDC 802CC22C 8E51000C */ lw $s1, 0xc($s2)
/* 0F0BE0 802CC230 8E250000 */ lw $a1, ($s1)
/* 0F0BE4 802CC234 0C0B1EAF */ jal get_variable
/* 0F0BE8 802CC238 26310004 */ addiu $s1, $s1, 4
/* 0F0BEC 802CC23C 3C03800B */ lui $v1, 0x800b
/* 0F0BF0 802CC240 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0BF4 802CC244 00028080 */ sll $s0, $v0, 2
/* 0F0BF8 802CC248 02028021 */ addu $s0, $s0, $v0
/* 0F0BFC 802CC24C 00108080 */ sll $s0, $s0, 2
/* 0F0C00 802CC250 02028023 */ subu $s0, $s0, $v0
/* 0F0C04 802CC254 001010C0 */ sll $v0, $s0, 3
/* 0F0C08 802CC258 02028021 */ addu $s0, $s0, $v0
/* 0F0C0C 802CC25C 001080C0 */ sll $s0, $s0, 3
/* 0F0C10 802CC260 02038021 */ addu $s0, $s0, $v1
/* 0F0C14 802CC264 8E250000 */ lw $a1, ($s1)
/* 0F0C18 802CC268 8E0604E8 */ lw $a2, 0x4e8($s0)
/* 0F0C1C 802CC26C 8E310004 */ lw $s1, 4($s1)
/* 0F0C20 802CC270 0C0B2190 */ jal set_float_variable
/* 0F0C24 802CC274 0240202D */ daddu $a0, $s2, $zero
/* 0F0C28 802CC278 0240202D */ daddu $a0, $s2, $zero
/* 0F0C2C 802CC27C 8E0604F4 */ lw $a2, 0x4f4($s0)
/* 0F0C30 802CC280 0C0B2190 */ jal set_float_variable
/* 0F0C34 802CC284 0220282D */ daddu $a1, $s1, $zero
/* 0F0C38 802CC288 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F0C3C 802CC28C 8FB20018 */ lw $s2, 0x18($sp)
/* 0F0C40 802CC290 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0C44 802CC294 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0C48 802CC298 24020002 */ addiu $v0, $zero, 2
/* 0F0C4C 802CC29C 03E00008 */ jr $ra
/* 0F0C50 802CC2A0 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,50 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetCamPosition
/* 0F0C54 802CC2A4 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 0F0C58 802CC2A8 AFB20018 */ sw $s2, 0x18($sp)
/* 0F0C5C 802CC2AC 0080902D */ daddu $s2, $a0, $zero
/* 0F0C60 802CC2B0 AFBF0020 */ sw $ra, 0x20($sp)
/* 0F0C64 802CC2B4 AFB3001C */ sw $s3, 0x1c($sp)
/* 0F0C68 802CC2B8 AFB10014 */ sw $s1, 0x14($sp)
/* 0F0C6C 802CC2BC AFB00010 */ sw $s0, 0x10($sp)
/* 0F0C70 802CC2C0 8E51000C */ lw $s1, 0xc($s2)
/* 0F0C74 802CC2C4 8E250000 */ lw $a1, ($s1)
/* 0F0C78 802CC2C8 0C0B1EAF */ jal get_variable
/* 0F0C7C 802CC2CC 26310004 */ addiu $s1, $s1, 4
/* 0F0C80 802CC2D0 8E250000 */ lw $a1, ($s1)
/* 0F0C84 802CC2D4 26310004 */ addiu $s1, $s1, 4
/* 0F0C88 802CC2D8 3C03800B */ lui $v1, 0x800b
/* 0F0C8C 802CC2DC 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0C90 802CC2E0 00028080 */ sll $s0, $v0, 2
/* 0F0C94 802CC2E4 02028021 */ addu $s0, $s0, $v0
/* 0F0C98 802CC2E8 00108080 */ sll $s0, $s0, 2
/* 0F0C9C 802CC2EC 02028023 */ subu $s0, $s0, $v0
/* 0F0CA0 802CC2F0 001010C0 */ sll $v0, $s0, 3
/* 0F0CA4 802CC2F4 02028021 */ addu $s0, $s0, $v0
/* 0F0CA8 802CC2F8 001080C0 */ sll $s0, $s0, 3
/* 0F0CAC 802CC2FC 02038021 */ addu $s0, $s0, $v1
/* 0F0CB0 802CC300 8E0604B0 */ lw $a2, 0x4b0($s0)
/* 0F0CB4 802CC304 8E330000 */ lw $s3, ($s1)
/* 0F0CB8 802CC308 8E310004 */ lw $s1, 4($s1)
/* 0F0CBC 802CC30C 0C0B2190 */ jal set_float_variable
/* 0F0CC0 802CC310 0240202D */ daddu $a0, $s2, $zero
/* 0F0CC4 802CC314 0240202D */ daddu $a0, $s2, $zero
/* 0F0CC8 802CC318 8E0604B4 */ lw $a2, 0x4b4($s0)
/* 0F0CCC 802CC31C 0C0B2190 */ jal set_float_variable
/* 0F0CD0 802CC320 0260282D */ daddu $a1, $s3, $zero
/* 0F0CD4 802CC324 0240202D */ daddu $a0, $s2, $zero
/* 0F0CD8 802CC328 8E0604B8 */ lw $a2, 0x4b8($s0)
/* 0F0CDC 802CC32C 0C0B2190 */ jal set_float_variable
/* 0F0CE0 802CC330 0220282D */ daddu $a1, $s1, $zero
/* 0F0CE4 802CC334 8FBF0020 */ lw $ra, 0x20($sp)
/* 0F0CE8 802CC338 8FB3001C */ lw $s3, 0x1c($sp)
/* 0F0CEC 802CC33C 8FB20018 */ lw $s2, 0x18($sp)
/* 0F0CF0 802CC340 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0CF4 802CC344 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0CF8 802CC348 24020002 */ addiu $v0, $zero, 2
/* 0F0CFC 802CC34C 03E00008 */ jr $ra
/* 0F0D00 802CC350 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,42 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel GetCamType
/* 0F0914 802CBF64 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0F0918 802CBF68 AFB20018 */ sw $s2, 0x18($sp)
/* 0F091C 802CBF6C 0080902D */ daddu $s2, $a0, $zero
/* 0F0920 802CBF70 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F0924 802CBF74 AFB10014 */ sw $s1, 0x14($sp)
/* 0F0928 802CBF78 AFB00010 */ sw $s0, 0x10($sp)
/* 0F092C 802CBF7C 8E51000C */ lw $s1, 0xc($s2)
/* 0F0930 802CBF80 8E250000 */ lw $a1, ($s1)
/* 0F0934 802CBF84 0C0B1EAF */ jal get_variable
/* 0F0938 802CBF88 26310004 */ addiu $s1, $s1, 4
/* 0F093C 802CBF8C 3C03800B */ lui $v1, 0x800b
/* 0F0940 802CBF90 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0944 802CBF94 00028080 */ sll $s0, $v0, 2
/* 0F0948 802CBF98 02028021 */ addu $s0, $s0, $v0
/* 0F094C 802CBF9C 00108080 */ sll $s0, $s0, 2
/* 0F0950 802CBFA0 02028023 */ subu $s0, $s0, $v0
/* 0F0954 802CBFA4 001010C0 */ sll $v0, $s0, 3
/* 0F0958 802CBFA8 02028021 */ addu $s0, $s0, $v0
/* 0F095C 802CBFAC 001080C0 */ sll $s0, $s0, 3
/* 0F0960 802CBFB0 02038021 */ addu $s0, $s0, $v1
/* 0F0964 802CBFB4 8E250000 */ lw $a1, ($s1)
/* 0F0968 802CBFB8 8E0604D8 */ lw $a2, 0x4d8($s0)
/* 0F096C 802CBFBC 8E310004 */ lw $s1, 4($s1)
/* 0F0970 802CBFC0 0C0B2026 */ jal set_variable
/* 0F0974 802CBFC4 0240202D */ daddu $a0, $s2, $zero
/* 0F0978 802CBFC8 0240202D */ daddu $a0, $s2, $zero
/* 0F097C 802CBFCC 8E060500 */ lw $a2, 0x500($s0)
/* 0F0980 802CBFD0 0C0B2026 */ jal set_variable
/* 0F0984 802CBFD4 0220282D */ daddu $a1, $s1, $zero
/* 0F0988 802CBFD8 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F098C 802CBFDC 8FB20018 */ lw $s2, 0x18($sp)
/* 0F0990 802CBFE0 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0994 802CBFE4 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0998 802CBFE8 24020002 */ addiu $v0, $zero, 2
/* 0F099C 802CBFEC 03E00008 */ jr $ra
/* 0F09A0 802CBFF0 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,35 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetCamDistance
/* 0F0594 802CBBE4 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0F0598 802CBBE8 AFB10014 */ sw $s1, 0x14($sp)
/* 0F059C 802CBBEC 0080882D */ daddu $s1, $a0, $zero
/* 0F05A0 802CBBF0 AFBF0018 */ sw $ra, 0x18($sp)
/* 0F05A4 802CBBF4 AFB00010 */ sw $s0, 0x10($sp)
/* 0F05A8 802CBBF8 8E30000C */ lw $s0, 0xc($s1)
/* 0F05AC 802CBBFC 8E050000 */ lw $a1, ($s0)
/* 0F05B0 802CBC00 0C0B1EAF */ jal get_variable
/* 0F05B4 802CBC04 26100004 */ addiu $s0, $s0, 4
/* 0F05B8 802CBC08 0220202D */ daddu $a0, $s1, $zero
/* 0F05BC 802CBC0C 3C03800B */ lui $v1, 0x800b
/* 0F05C0 802CBC10 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F05C4 802CBC14 8E050000 */ lw $a1, ($s0)
/* 0F05C8 802CBC18 00028080 */ sll $s0, $v0, 2
/* 0F05CC 802CBC1C 02028021 */ addu $s0, $s0, $v0
/* 0F05D0 802CBC20 00108080 */ sll $s0, $s0, 2
/* 0F05D4 802CBC24 02028023 */ subu $s0, $s0, $v0
/* 0F05D8 802CBC28 001010C0 */ sll $v0, $s0, 3
/* 0F05DC 802CBC2C 02028021 */ addu $s0, $s0, $v0
/* 0F05E0 802CBC30 001080C0 */ sll $s0, $s0, 3
/* 0F05E4 802CBC34 0C0B210B */ jal get_float_variable
/* 0F05E8 802CBC38 02038021 */ addu $s0, $s0, $v1
/* 0F05EC 802CBC3C E60004DC */ swc1 $f0, 0x4dc($s0)
/* 0F05F0 802CBC40 8FBF0018 */ lw $ra, 0x18($sp)
/* 0F05F4 802CBC44 8FB10014 */ lw $s1, 0x14($sp)
/* 0F05F8 802CBC48 8FB00010 */ lw $s0, 0x10($sp)
/* 0F05FC 802CBC4C 24020002 */ addiu $v0, $zero, 2
/* 0F0600 802CBC50 03E00008 */ jr $ra
/* 0F0604 802CBC54 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,45 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetCamPitch
/* 0F04F8 802CBB48 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 0F04FC 802CBB4C AFB20018 */ sw $s2, 0x18($sp)
/* 0F0500 802CBB50 0080902D */ daddu $s2, $a0, $zero
/* 0F0504 802CBB54 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F0508 802CBB58 AFB10014 */ sw $s1, 0x14($sp)
/* 0F050C 802CBB5C AFB00010 */ sw $s0, 0x10($sp)
/* 0F0510 802CBB60 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 0F0514 802CBB64 8E51000C */ lw $s1, 0xc($s2)
/* 0F0518 802CBB68 8E250000 */ lw $a1, ($s1)
/* 0F051C 802CBB6C 0C0B1EAF */ jal get_variable
/* 0F0520 802CBB70 26310004 */ addiu $s1, $s1, 4
/* 0F0524 802CBB74 8E250000 */ lw $a1, ($s1)
/* 0F0528 802CBB78 26310004 */ addiu $s1, $s1, 4
/* 0F052C 802CBB7C 0240202D */ daddu $a0, $s2, $zero
/* 0F0530 802CBB80 3C03800B */ lui $v1, 0x800b
/* 0F0534 802CBB84 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0538 802CBB88 00028080 */ sll $s0, $v0, 2
/* 0F053C 802CBB8C 02028021 */ addu $s0, $s0, $v0
/* 0F0540 802CBB90 00108080 */ sll $s0, $s0, 2
/* 0F0544 802CBB94 02028023 */ subu $s0, $s0, $v0
/* 0F0548 802CBB98 001010C0 */ sll $v0, $s0, 3
/* 0F054C 802CBB9C 02028021 */ addu $s0, $s0, $v0
/* 0F0550 802CBBA0 001080C0 */ sll $s0, $s0, 3
/* 0F0554 802CBBA4 0C0B210B */ jal get_float_variable
/* 0F0558 802CBBA8 02038021 */ addu $s0, $s0, $v1
/* 0F055C 802CBBAC 0240202D */ daddu $a0, $s2, $zero
/* 0F0560 802CBBB0 8E250000 */ lw $a1, ($s1)
/* 0F0564 802CBBB4 0C0B210B */ jal get_float_variable
/* 0F0568 802CBBB8 46000506 */ mov.s $f20, $f0
/* 0F056C 802CBBBC E61404E0 */ swc1 $f20, 0x4e0($s0)
/* 0F0570 802CBBC0 E60004FC */ swc1 $f0, 0x4fc($s0)
/* 0F0574 802CBBC4 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F0578 802CBBC8 8FB20018 */ lw $s2, 0x18($sp)
/* 0F057C 802CBBCC 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0580 802CBBD0 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0584 802CBBD4 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 0F0588 802CBBD8 24020002 */ addiu $v0, $zero, 2
/* 0F058C 802CBBDC 03E00008 */ jr $ra
/* 0F0590 802CBBE0 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,45 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetCamPosA
/* 0F0608 802CBC58 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 0F060C 802CBC5C AFB20018 */ sw $s2, 0x18($sp)
/* 0F0610 802CBC60 0080902D */ daddu $s2, $a0, $zero
/* 0F0614 802CBC64 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F0618 802CBC68 AFB10014 */ sw $s1, 0x14($sp)
/* 0F061C 802CBC6C AFB00010 */ sw $s0, 0x10($sp)
/* 0F0620 802CBC70 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 0F0624 802CBC74 8E51000C */ lw $s1, 0xc($s2)
/* 0F0628 802CBC78 8E250000 */ lw $a1, ($s1)
/* 0F062C 802CBC7C 0C0B1EAF */ jal get_variable
/* 0F0630 802CBC80 26310004 */ addiu $s1, $s1, 4
/* 0F0634 802CBC84 8E250000 */ lw $a1, ($s1)
/* 0F0638 802CBC88 26310004 */ addiu $s1, $s1, 4
/* 0F063C 802CBC8C 0240202D */ daddu $a0, $s2, $zero
/* 0F0640 802CBC90 3C03800B */ lui $v1, 0x800b
/* 0F0644 802CBC94 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0648 802CBC98 00028080 */ sll $s0, $v0, 2
/* 0F064C 802CBC9C 02028021 */ addu $s0, $s0, $v0
/* 0F0650 802CBCA0 00108080 */ sll $s0, $s0, 2
/* 0F0654 802CBCA4 02028023 */ subu $s0, $s0, $v0
/* 0F0658 802CBCA8 001010C0 */ sll $v0, $s0, 3
/* 0F065C 802CBCAC 02028021 */ addu $s0, $s0, $v0
/* 0F0660 802CBCB0 001080C0 */ sll $s0, $s0, 3
/* 0F0664 802CBCB4 0C0B210B */ jal get_float_variable
/* 0F0668 802CBCB8 02038021 */ addu $s0, $s0, $v1
/* 0F066C 802CBCBC 0240202D */ daddu $a0, $s2, $zero
/* 0F0670 802CBCC0 8E250000 */ lw $a1, ($s1)
/* 0F0674 802CBCC4 0C0B210B */ jal get_float_variable
/* 0F0678 802CBCC8 46000506 */ mov.s $f20, $f0
/* 0F067C 802CBCCC E61404E4 */ swc1 $f20, 0x4e4($s0)
/* 0F0680 802CBCD0 E60004EC */ swc1 $f0, 0x4ec($s0)
/* 0F0684 802CBCD4 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F0688 802CBCD8 8FB20018 */ lw $s2, 0x18($sp)
/* 0F068C 802CBCDC 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0690 802CBCE0 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0694 802CBCE4 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 0F0698 802CBCE8 24020002 */ addiu $v0, $zero, 2
/* 0F069C 802CBCEC 03E00008 */ jr $ra
/* 0F06A0 802CBCF0 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,45 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetCamPosB
/* 0F06A4 802CBCF4 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 0F06A8 802CBCF8 AFB20018 */ sw $s2, 0x18($sp)
/* 0F06AC 802CBCFC 0080902D */ daddu $s2, $a0, $zero
/* 0F06B0 802CBD00 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F06B4 802CBD04 AFB10014 */ sw $s1, 0x14($sp)
/* 0F06B8 802CBD08 AFB00010 */ sw $s0, 0x10($sp)
/* 0F06BC 802CBD0C F7B40020 */ sdc1 $f20, 0x20($sp)
/* 0F06C0 802CBD10 8E51000C */ lw $s1, 0xc($s2)
/* 0F06C4 802CBD14 8E250000 */ lw $a1, ($s1)
/* 0F06C8 802CBD18 0C0B1EAF */ jal get_variable
/* 0F06CC 802CBD1C 26310004 */ addiu $s1, $s1, 4
/* 0F06D0 802CBD20 8E250000 */ lw $a1, ($s1)
/* 0F06D4 802CBD24 26310004 */ addiu $s1, $s1, 4
/* 0F06D8 802CBD28 0240202D */ daddu $a0, $s2, $zero
/* 0F06DC 802CBD2C 3C03800B */ lui $v1, 0x800b
/* 0F06E0 802CBD30 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F06E4 802CBD34 00028080 */ sll $s0, $v0, 2
/* 0F06E8 802CBD38 02028021 */ addu $s0, $s0, $v0
/* 0F06EC 802CBD3C 00108080 */ sll $s0, $s0, 2
/* 0F06F0 802CBD40 02028023 */ subu $s0, $s0, $v0
/* 0F06F4 802CBD44 001010C0 */ sll $v0, $s0, 3
/* 0F06F8 802CBD48 02028021 */ addu $s0, $s0, $v0
/* 0F06FC 802CBD4C 001080C0 */ sll $s0, $s0, 3
/* 0F0700 802CBD50 0C0B210B */ jal get_float_variable
/* 0F0704 802CBD54 02038021 */ addu $s0, $s0, $v1
/* 0F0708 802CBD58 0240202D */ daddu $a0, $s2, $zero
/* 0F070C 802CBD5C 8E250000 */ lw $a1, ($s1)
/* 0F0710 802CBD60 0C0B210B */ jal get_float_variable
/* 0F0714 802CBD64 46000506 */ mov.s $f20, $f0
/* 0F0718 802CBD68 E61404F0 */ swc1 $f20, 0x4f0($s0)
/* 0F071C 802CBD6C E60004F8 */ swc1 $f0, 0x4f8($s0)
/* 0F0720 802CBD70 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F0724 802CBD74 8FB20018 */ lw $s2, 0x18($sp)
/* 0F0728 802CBD78 8FB10014 */ lw $s1, 0x14($sp)
/* 0F072C 802CBD7C 8FB00010 */ lw $s0, 0x10($sp)
/* 0F0730 802CBD80 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 0F0734 802CBD84 24020002 */ addiu $v0, $zero, 2
/* 0F0738 802CBD88 03E00008 */ jr $ra
/* 0F073C 802CBD8C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,45 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetCamPosC
/* 0F0740 802CBD90 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 0F0744 802CBD94 AFB20018 */ sw $s2, 0x18($sp)
/* 0F0748 802CBD98 0080902D */ daddu $s2, $a0, $zero
/* 0F074C 802CBD9C AFBF001C */ sw $ra, 0x1c($sp)
/* 0F0750 802CBDA0 AFB10014 */ sw $s1, 0x14($sp)
/* 0F0754 802CBDA4 AFB00010 */ sw $s0, 0x10($sp)
/* 0F0758 802CBDA8 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 0F075C 802CBDAC 8E51000C */ lw $s1, 0xc($s2)
/* 0F0760 802CBDB0 8E250000 */ lw $a1, ($s1)
/* 0F0764 802CBDB4 0C0B1EAF */ jal get_variable
/* 0F0768 802CBDB8 26310004 */ addiu $s1, $s1, 4
/* 0F076C 802CBDBC 8E250000 */ lw $a1, ($s1)
/* 0F0770 802CBDC0 26310004 */ addiu $s1, $s1, 4
/* 0F0774 802CBDC4 0240202D */ daddu $a0, $s2, $zero
/* 0F0778 802CBDC8 3C03800B */ lui $v1, 0x800b
/* 0F077C 802CBDCC 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0780 802CBDD0 00028080 */ sll $s0, $v0, 2
/* 0F0784 802CBDD4 02028021 */ addu $s0, $s0, $v0
/* 0F0788 802CBDD8 00108080 */ sll $s0, $s0, 2
/* 0F078C 802CBDDC 02028023 */ subu $s0, $s0, $v0
/* 0F0790 802CBDE0 001010C0 */ sll $v0, $s0, 3
/* 0F0794 802CBDE4 02028021 */ addu $s0, $s0, $v0
/* 0F0798 802CBDE8 001080C0 */ sll $s0, $s0, 3
/* 0F079C 802CBDEC 0C0B210B */ jal get_float_variable
/* 0F07A0 802CBDF0 02038021 */ addu $s0, $s0, $v1
/* 0F07A4 802CBDF4 0240202D */ daddu $a0, $s2, $zero
/* 0F07A8 802CBDF8 8E250000 */ lw $a1, ($s1)
/* 0F07AC 802CBDFC 0C0B210B */ jal get_float_variable
/* 0F07B0 802CBE00 46000506 */ mov.s $f20, $f0
/* 0F07B4 802CBE04 E61404E8 */ swc1 $f20, 0x4e8($s0)
/* 0F07B8 802CBE08 E60004F4 */ swc1 $f0, 0x4f4($s0)
/* 0F07BC 802CBE0C 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F07C0 802CBE10 8FB20018 */ lw $s2, 0x18($sp)
/* 0F07C4 802CBE14 8FB10014 */ lw $s1, 0x14($sp)
/* 0F07C8 802CBE18 8FB00010 */ lw $s0, 0x10($sp)
/* 0F07CC 802CBE1C D7B40020 */ ldc1 $f20, 0x20($sp)
/* 0F07D0 802CBE20 24020002 */ addiu $v0, $zero, 2
/* 0F07D4 802CBE24 03E00008 */ jr $ra
/* 0F07D8 802CBE28 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -1,35 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetCamSpeed
/* 0F08A0 802CBEF0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0F08A4 802CBEF4 AFB10014 */ sw $s1, 0x14($sp)
/* 0F08A8 802CBEF8 0080882D */ daddu $s1, $a0, $zero
/* 0F08AC 802CBEFC AFBF0018 */ sw $ra, 0x18($sp)
/* 0F08B0 802CBF00 AFB00010 */ sw $s0, 0x10($sp)
/* 0F08B4 802CBF04 8E30000C */ lw $s0, 0xc($s1)
/* 0F08B8 802CBF08 8E050000 */ lw $a1, ($s0)
/* 0F08BC 802CBF0C 0C0B1EAF */ jal get_variable
/* 0F08C0 802CBF10 26100004 */ addiu $s0, $s0, 4
/* 0F08C4 802CBF14 0220202D */ daddu $a0, $s1, $zero
/* 0F08C8 802CBF18 8E050000 */ lw $a1, ($s0)
/* 0F08CC 802CBF1C 0C0B210B */ jal get_float_variable
/* 0F08D0 802CBF20 0040802D */ daddu $s0, $v0, $zero
/* 0F08D4 802CBF24 24020002 */ addiu $v0, $zero, 2
/* 0F08D8 802CBF28 00501804 */ sllv $v1, $s0, $v0
/* 0F08DC 802CBF2C 00701821 */ addu $v1, $v1, $s0
/* 0F08E0 802CBF30 00431804 */ sllv $v1, $v1, $v0
/* 0F08E4 802CBF34 00701823 */ subu $v1, $v1, $s0
/* 0F08E8 802CBF38 000320C0 */ sll $a0, $v1, 3
/* 0F08EC 802CBF3C 00641821 */ addu $v1, $v1, $a0
/* 0F08F0 802CBF40 000318C0 */ sll $v1, $v1, 3
/* 0F08F4 802CBF44 3C01800B */ lui $at, 0x800b
/* 0F08F8 802CBF48 00230821 */ addu $at, $at, $v1
/* 0F08FC 802CBF4C E4202210 */ swc1 $f0, 0x2210($at)
/* 0F0900 802CBF50 8FBF0018 */ lw $ra, 0x18($sp)
/* 0F0904 802CBF54 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0908 802CBF58 8FB00010 */ lw $s0, 0x10($sp)
/* 0F090C 802CBF5C 03E00008 */ jr $ra
/* 0F0910 802CBF60 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,55 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel SetPanTarget
/* 0F07DC 802CBE2C 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 0F07E0 802CBE30 AFB20018 */ sw $s2, 0x18($sp)
/* 0F07E4 802CBE34 0080902D */ daddu $s2, $a0, $zero
/* 0F07E8 802CBE38 AFBF001C */ sw $ra, 0x1c($sp)
/* 0F07EC 802CBE3C AFB10014 */ sw $s1, 0x14($sp)
/* 0F07F0 802CBE40 AFB00010 */ sw $s0, 0x10($sp)
/* 0F07F4 802CBE44 F7B60028 */ sdc1 $f22, 0x28($sp)
/* 0F07F8 802CBE48 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 0F07FC 802CBE4C 8E51000C */ lw $s1, 0xc($s2)
/* 0F0800 802CBE50 8E250000 */ lw $a1, ($s1)
/* 0F0804 802CBE54 0C0B1EAF */ jal get_variable
/* 0F0808 802CBE58 26310004 */ addiu $s1, $s1, 4
/* 0F080C 802CBE5C 8E250000 */ lw $a1, ($s1)
/* 0F0810 802CBE60 26310004 */ addiu $s1, $s1, 4
/* 0F0814 802CBE64 0240202D */ daddu $a0, $s2, $zero
/* 0F0818 802CBE68 3C03800B */ lui $v1, 0x800b
/* 0F081C 802CBE6C 24631D80 */ addiu $v1, $v1, 0x1d80
/* 0F0820 802CBE70 00028080 */ sll $s0, $v0, 2
/* 0F0824 802CBE74 02028021 */ addu $s0, $s0, $v0
/* 0F0828 802CBE78 00108080 */ sll $s0, $s0, 2
/* 0F082C 802CBE7C 02028023 */ subu $s0, $s0, $v0
/* 0F0830 802CBE80 001010C0 */ sll $v0, $s0, 3
/* 0F0834 802CBE84 02028021 */ addu $s0, $s0, $v0
/* 0F0838 802CBE88 001080C0 */ sll $s0, $s0, 3
/* 0F083C 802CBE8C 0C0B210B */ jal get_float_variable
/* 0F0840 802CBE90 02038021 */ addu $s0, $s0, $v1
/* 0F0844 802CBE94 8E250000 */ lw $a1, ($s1)
/* 0F0848 802CBE98 26310004 */ addiu $s1, $s1, 4
/* 0F084C 802CBE9C 0240202D */ daddu $a0, $s2, $zero
/* 0F0850 802CBEA0 0C0B210B */ jal get_float_variable
/* 0F0854 802CBEA4 46000586 */ mov.s $f22, $f0
/* 0F0858 802CBEA8 0240202D */ daddu $a0, $s2, $zero
/* 0F085C 802CBEAC 8E250000 */ lw $a1, ($s1)
/* 0F0860 802CBEB0 0C0B210B */ jal get_float_variable
/* 0F0864 802CBEB4 46000506 */ mov.s $f20, $f0
/* 0F0868 802CBEB8 24030001 */ addiu $v1, $zero, 1
/* 0F086C 802CBEBC E61604B0 */ swc1 $f22, 0x4b0($s0)
/* 0F0870 802CBEC0 E61404B4 */ swc1 $f20, 0x4b4($s0)
/* 0F0874 802CBEC4 E60004B8 */ swc1 $f0, 0x4b8($s0)
/* 0F0878 802CBEC8 A6030506 */ sh $v1, 0x506($s0)
/* 0F087C 802CBECC 8FBF001C */ lw $ra, 0x1c($sp)
/* 0F0880 802CBED0 8FB20018 */ lw $s2, 0x18($sp)
/* 0F0884 802CBED4 8FB10014 */ lw $s1, 0x14($sp)
/* 0F0888 802CBED8 8FB00010 */ lw $s0, 0x10($sp)
/* 0F088C 802CBEDC D7B60028 */ ldc1 $f22, 0x28($sp)
/* 0F0890 802CBEE0 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 0F0894 802CBEE4 24020002 */ addiu $v0, $zero, 2
/* 0F0898 802CBEE8 03E00008 */ jr $ra
/* 0F089C 802CBEEC 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -480,7 +480,7 @@ typedef struct Camera {
/* 0x4FC */ f32 controllerViewPitch;
/* 0x500 */ s32 unk_500;
/* 0x504 */ s16 boolTargetPlayer;
/* 0x506 */ char unk_506[2];
/* 0x506 */ u16 unk_506;
/* 0x508 */ s32 panPhase;
/* 0x50C */ f32 leadAmount;
/* 0x510 */ char unk_510[36];

View File

@ -123,39 +123,192 @@ ApiStatus SetCamType(ScriptInstance* script, s32 isInitialCall) {
Camera* camera = &cameras[id];
s32 controllerType = get_variable(script, *args++);
s32 enabled = get_variable(script, *args++);
camera->unk_500 = enabled;
camera->controllerType = controllerType;
return ApiStatus_DONE2;
}
INCLUDE_API_ASM("code_ef070_len_3400", SetCamPitch);
ApiStatus SetCamPitch(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
f32 boomPitch = get_float_variable(script, *args++);
f32 viewPitch = get_float_variable(script, *args++);
INCLUDE_API_ASM("code_ef070_len_3400", SetCamDistance);
camera->controllerBoomPitch = boomPitch;
camera->controllerViewPitch = viewPitch;
return ApiStatus_DONE2;
}
INCLUDE_API_ASM("code_ef070_len_3400", SetCamPosA);
ApiStatus SetCamDistance(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
f32 boomLength = get_float_variable(script, *args++);
INCLUDE_API_ASM("code_ef070_len_3400", SetCamPosB);
camera->controllerBoomLen = boomLength;
return ApiStatus_DONE2;
}
INCLUDE_API_ASM("code_ef070_len_3400", SetCamPosC);
ApiStatus SetCamPosA(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
f32 x = get_float_variable(script, *args++);
f32 z = get_float_variable(script, *args++);
INCLUDE_API_ASM("code_ef070_len_3400", SetPanTarget);
camera->posA.x = x;
camera->posA.z = z;
return ApiStatus_DONE2;
}
INCLUDE_API_ASM("code_ef070_len_3400", SetCamSpeed);
ApiStatus SetCamPosB(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
f32 x = get_float_variable(script, *args++);
f32 z = get_float_variable(script, *args++);
INCLUDE_API_ASM("code_ef070_len_3400", GetCamType);
camera->posB.x = x;
camera->posB.z = z;
return ApiStatus_DONE2;
}
INCLUDE_API_ASM("code_ef070_len_3400", GetCamPitch);
ApiStatus SetCamPosC(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
f32 y1 = get_float_variable(script, *args++);
f32 y2 = get_float_variable(script, *args++);
INCLUDE_API_ASM("code_ef070_len_3400", GetCamDistance);
camera->posA.y = y1;
camera->posB.y = y2;
return ApiStatus_DONE2;
}
INCLUDE_API_ASM("code_ef070_len_3400", GetCamPosA);
ApiStatus SetPanTarget(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
f32 x = get_float_variable(script, *args++);
f32 y = get_float_variable(script, *args++);
f32 z = get_float_variable(script, *args++);
INCLUDE_API_ASM("code_ef070_len_3400", GetCamPosB);
camera->movePos.x = x;
camera->movePos.y = y;
camera->movePos.z = z;
camera->unk_506 = 1;
return ApiStatus_DONE2;
}
INCLUDE_API_ASM("code_ef070_len_3400", GetCamPosC);
ApiStatus SetCamSpeed(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
f32 speed = get_float_variable(script, *args++);
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
INCLUDE_API_ASM("code_ef070_len_3400", GetCamPosition);
camera->moveSpeed = speed;
return ApiStatus_DONE2;
}
ApiStatus GetCamType(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Bytecode outVar1 = *args++;
Bytecode outVar2 = *args++;
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
set_variable(script, outVar1, camera->controllerType);
set_variable(script, outVar2, camera->unk_500);
return ApiStatus_DONE2;
}
ApiStatus GetCamPitch(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Bytecode outVar1 = *args++;
Bytecode outVar2 = *args++;
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
set_float_variable(script, outVar1, camera->controllerBoomPitch);
set_float_variable(script, outVar2, camera->controllerViewPitch);
return ApiStatus_DONE2;
}
ApiStatus GetCamDistance(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Bytecode outVar1 = *args++;
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
set_float_variable(script, outVar1, camera->controllerBoomLen);
return ApiStatus_DONE2;
}
ApiStatus GetCamPosA(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Bytecode outVar1 = *args++;
Bytecode outVar2 = *args++;
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
set_float_variable(script, outVar1, camera->posA.x);
set_float_variable(script, outVar2, camera->posA.z);
return ApiStatus_DONE2;
}
ApiStatus GetCamPosB(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Bytecode outVar1 = *args++;
Bytecode outVar2 = *args++;
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
set_float_variable(script, outVar1, camera->posB.x);
set_float_variable(script, outVar2, camera->posB.z);
return ApiStatus_DONE2;
}
ApiStatus GetCamPosC(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Bytecode outVar1 = *args++;
Bytecode outVar2 = *args++;
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
set_float_variable(script, outVar1, camera->posA.y);
set_float_variable(script, outVar2, camera->posB.y);
return ApiStatus_DONE2;
}
ApiStatus GetCamPosition(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 id = get_variable(script, *args++);
Bytecode outVar1 = *args++;
Bytecode outVar2 = *args++;
Bytecode outVar3 = *args++;
Camera* cameras = &gCameras;
Camera* camera = &cameras[id];
set_float_variable(script, outVar1, camera->movePos.x);
set_float_variable(script, outVar2, camera->movePos.y);
set_float_variable(script, outVar3, camera->movePos.z);
return ApiStatus_DONE2;
}
INCLUDE_API_ASM("code_ef070_len_3400", WaitForCam);