Documenting Mumbo Mountain

This commit is contained in:
Adrien Bonnin
2024-09-05 13:18:58 +02:00
committed by Adrien Bonnin
parent fd6a60a4b4
commit 9d2e6efbda
10 changed files with 237 additions and 200 deletions

View File

@@ -316,16 +316,16 @@ f32 func_8028E904(void){
return func_802915D8();
}
f32 func_8028E924(f32 arg0[3], s32 arg1){
f32 func_8028E924(f32 pos[3], s32 arg1){
s32 *sp1C;
baModel_80292284(arg0, arg1);
baModel_80292284(pos, arg1);
baMarker_8028D6F0(&sp1C);
return (f32) sp1C[arg1];
}
void func_8028E964(f32 arg0[3]){
func_8028E924(arg0, 0);
void func_8028E964(f32 pos[3]){
func_8028E924(pos, 0);
}
f32 func_8028E984(void){

View File

@@ -994,21 +994,24 @@ NodeProp *cubeList_findNodePropByActorId(enum actor_e actor_id, s32 position[3])
return NULL;
}
NodeProp *func_80304C38(enum actor_e actor_id, Actor *arg1){
s32 vec[3];
s32 *phi_a1;
NodeProp *func_80304C38(enum actor_e actor_id, Actor *actor){
s32 tmp_position[3];
s32 *position;
if (arg1 != NULL) {
vec[0] = arg1->position_x;
vec[1] = arg1->position_y;
vec[2] = arg1->position_z;
if (actor != NULL) {
tmp_position[0] = actor->position_x;
tmp_position[1] = actor->position_y;
tmp_position[2] = actor->position_z;
}
if (arg1 == NULL) {
phi_a1 = NULL;
} else {
phi_a1 = vec;
if (actor == NULL) {
position = NULL;
}
return cubeList_findNodePropByActorId(actor_id, phi_a1);
else {
position = tmp_position;
}
return cubeList_findNodePropByActorId(actor_id, position);
}
NodeProp *func_80304CAC(s32 arg0, f32 *arg1) {

View File

@@ -1570,11 +1570,11 @@ bool func_803296D8(Actor *this, s32 dist){
s32 func_8032970C(Actor *this){
f32 sp24[3];
f32 sp18[3];
f32 plyr_pos[3];
func_8028E964(sp24);
_player_getPosition(sp18);
sp24[1] = sp18[1];
_player_getPosition(plyr_pos);
sp24[1] = plyr_pos[1];
return (s32) DIST_SQ_VEC3F(this->position, sp24);
}