The first commit
This commit is contained in:
44
src/core2/code_EE40.c
Normal file
44
src/core2/code_EE40.c
Normal file
@@ -0,0 +1,44 @@
|
||||
#include <ultra64.h>
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
/* .bss */
|
||||
struct{
|
||||
f32 unk0[3];
|
||||
f32 unkC[3];
|
||||
u8 unk18;
|
||||
u8 pad19[3];
|
||||
} D_8037C3C0;
|
||||
|
||||
/* .code */
|
||||
void func_80295DD0(void){
|
||||
s32 sp24[3];
|
||||
s32 sp18[3];
|
||||
|
||||
func_80309998(sp18, sp24);
|
||||
ml_vec3w_to_vec3f(D_8037C3C0.unkC, sp18);
|
||||
ml_vec3w_to_vec3f(D_8037C3C0.unk0, sp24);
|
||||
D_8037C3C0.unkC[0] -= 400.0f;
|
||||
D_8037C3C0.unkC[1] = -8000.0f;
|
||||
D_8037C3C0.unkC[2] -= 400.0f;
|
||||
D_8037C3C0.unk0[0] += 400.0f;
|
||||
D_8037C3C0.unk0[1] += 1000.0f;
|
||||
D_8037C3C0.unk0[2] += 400.0f;
|
||||
D_8037C3C0.unk18 = 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
void func_80295E74(void){
|
||||
f32 sp1C[3];
|
||||
_player_getPosition(sp1C);
|
||||
if(!func_802584FC(sp1C, D_8037C3C0.unkC, D_8037C3C0.unk0)){
|
||||
if(D_8037C3C0.unk18 == 0){
|
||||
D_8037C3C0.unk18 = 1;
|
||||
func_8029B6F0();
|
||||
}
|
||||
else{
|
||||
func_802978DC(7);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user