88%, FP/code_5CC0.c done
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# banjo (87.9186%)
|
||||
# banjo (88.0030%)
|
||||
|
||||
<img src="./progress/progress_total.svg">
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
</mask>
|
||||
<g mask="url(#anybadge_1)">
|
||||
<path fill="#555" d="M0 0h24v20H0z"/>
|
||||
<path fill="#19e000" d="M24 0h67v20H24z"/>
|
||||
<path fill="#0de000" d="M24 0h67v20H24z"/>
|
||||
<path fill="url(#b)" d="M0 0h91v20H0z"/>
|
||||
</g>
|
||||
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
@@ -17,7 +17,7 @@
|
||||
<text x="12.0" y="14">FP</text>
|
||||
</g>
|
||||
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="58.5" y="15" fill="#010101" fill-opacity=".3">94.3166%</text>
|
||||
<text x="57.5" y="14">94.3166%</text>
|
||||
<text x="58.5" y="15" fill="#010101" fill-opacity=".3">97.1669%</text>
|
||||
<text x="57.5" y="14">97.1669%</text>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -17,7 +17,7 @@
|
||||
<text x="75.0" y="14">Banjo-Kazooie (us.v10)</text>
|
||||
</g>
|
||||
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="184.5" y="15" fill="#010101" fill-opacity=".3">87.9186%</text>
|
||||
<text x="183.5" y="14">87.9186%</text>
|
||||
<text x="184.5" y="15" fill="#010101" fill-opacity=".3">88.0030%</text>
|
||||
<text x="183.5" y="14">88.0030%</text>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -265,9 +265,6 @@ void func_8038C94C(ActorMarker *caller, enum asset_e text_id, s32 arg2){
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef NONAMTCHING
|
||||
#pragma GLOBAL_ASM("asm/nonmatchings/FP/code_5CC0/func_8038C9A0.s")
|
||||
#else
|
||||
void func_8038C9A0(Actor *this){
|
||||
Actor *other; //sp34
|
||||
void * sp30;
|
||||
@@ -302,16 +299,15 @@ void func_8038C9A0(Actor *this){
|
||||
FUNC_8030E8B4(SFX_7B_ICE_BREAKING_1, 1.0f, 32000, this->position, 0x6d6, 0xdac);\
|
||||
marker_despawn(this->marker);
|
||||
return;
|
||||
}//L8038CB04
|
||||
}
|
||||
|
||||
switch(this->state){
|
||||
case 1:// 8038CB2C
|
||||
if(func_8038C718(this, 0))
|
||||
break;
|
||||
|
||||
func_80328B8C(this, 2, 0.001f, 1);
|
||||
func_8038C428(this, D_80392088, randf2(20.0f, 24.0f));
|
||||
this->unk60 = this->yaw;
|
||||
if(!func_8038C718(this, 0)){
|
||||
func_80328B8C(this, 2, 0.001f, 1);
|
||||
func_8038C428(this, D_80392088, randf2(20.0f, 24.0f));
|
||||
this->unk60 = this->yaw;
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:// 8038CB8C
|
||||
@@ -331,27 +327,25 @@ void func_8038C9A0(Actor *this){
|
||||
this->unk38_31 = FALSE;
|
||||
}
|
||||
|
||||
if(func_8038C718(this, 0.0f))
|
||||
return;
|
||||
|
||||
if(func_8038C844(this->position, D_80392088)){
|
||||
func_80328B8C(this, 3, 0.001f, 1);
|
||||
func_8038C428(this, D_80392094, 0.0f);
|
||||
}
|
||||
else{
|
||||
func_8038C428(this, D_80392088, randf2(20.0f, 24.0f));
|
||||
if(!func_8038C718(this, 0.0f)){
|
||||
if(func_8038C844(this->position, D_80392088)){
|
||||
func_80328B8C(this, 3, 0.001f, 1);
|
||||
func_8038C428(this, D_80392094, 0.0f);
|
||||
}
|
||||
else{
|
||||
func_8038C428(this, D_80392088, randf2(20.0f, 24.0f));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 3:// 8038CCFC
|
||||
if(func_8038C718(this, 0.0f))
|
||||
break;
|
||||
|
||||
if(other->unk38_31 != 0){
|
||||
other->unk38_31--;
|
||||
if(!func_8038C718(this, 0.0f)){
|
||||
if(other->unk38_31 != 0){
|
||||
other->unk38_31--;
|
||||
}
|
||||
func_8025A6EC(COMUSIC_2B_DING_B, 28000);
|
||||
marker_despawn(this->marker);
|
||||
}
|
||||
func_8025A6EC(COMUSIC_2B_DING_B, 28000);
|
||||
marker_despawn(this->marker);
|
||||
break;
|
||||
|
||||
case 4:// 8038CD58
|
||||
@@ -373,20 +367,19 @@ void func_8038C9A0(Actor *this){
|
||||
case 5:// 8038CE14
|
||||
this->yaw_moving = (f32)func_80329784(this);
|
||||
func_80328FB0(this, 8.0f);
|
||||
if(func_8038C718(this, this->unk1C[1]))
|
||||
break;
|
||||
|
||||
this->velocity[1] = randf2(14.0f, 20.0f);
|
||||
if(!func_8038C718(this, this->unk1C[1])){
|
||||
this->velocity[1] = randf2(14.0f, 20.0f);
|
||||
}
|
||||
break;
|
||||
|
||||
case 6:// 8038CE64
|
||||
this->position_y -= 5.0f;
|
||||
if(this->position_y < this->unk1C[2] - 50.0f){
|
||||
this->velocity_x = 0.0f;
|
||||
other->velocity_x = 0.0f;
|
||||
marker_despawn(this->marker);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}//L8038CEB0
|
||||
}
|
||||
#endif
|
||||
|
@@ -268,10 +268,11 @@ f32 func_803603AC(Actor *this, s32 arg1, u8 arg2);
|
||||
#pragma GLOBAL_ASM("asm/nonmatchings/core2/code_D89E0/func_803603AC.s")
|
||||
#else
|
||||
f32 func_803603AC(Actor *this, s32 arg1, u8 arg2){
|
||||
f32 sp20[3];
|
||||
f32 num;
|
||||
f32 den;
|
||||
f32 phi_f2;
|
||||
f32 sp2C[3];
|
||||
f32 sp20[3];
|
||||
|
||||
switch (arg2) {
|
||||
case 1:
|
||||
@@ -284,15 +285,24 @@ f32 func_803603AC(Actor *this, s32 arg1, u8 arg2){
|
||||
sp20[2] = this->unk1C[2];
|
||||
break;
|
||||
}
|
||||
|
||||
den = (this->position[0] - sp20[0])*(this->position[0] - sp20[0]) + (this->position[2] - sp20[2])*(this->position[2] - sp20[2]);
|
||||
num = (this->position[1] - sp20[1]) - (f32)arg1;
|
||||
|
||||
sp2C[0] = (this->position[0] - sp20[0]);
|
||||
sp2C[1] = (this->position[1] - sp20[1]);
|
||||
sp2C[2] = (this->position[2] - sp20[2]);
|
||||
|
||||
den =(sp2C[0]*sp2C[0] + sp2C[2]*sp2C[2]);
|
||||
if(den);
|
||||
num = (sp2C[1] - arg1);
|
||||
if(num == 0.0 || den == 0.0)
|
||||
return 0.0f;
|
||||
phi_f2 = -num/den;
|
||||
return (phi_f2 >= 4.0f) ? 4.0f
|
||||
: (phi_f2 <= -4.0f) ? -4.0f
|
||||
: phi_f2;
|
||||
|
||||
phi_f2 = -(this->unk28*num)/den;
|
||||
if (phi_f2 >= 4.0f) {
|
||||
return 4.0f;
|
||||
}
|
||||
if(-4.0f >= phi_f2)
|
||||
phi_f2 = -4.0f;
|
||||
return phi_f2;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -40,7 +40,7 @@ segments:
|
||||
- [0x4400, c, code_4400] #DONE
|
||||
- [0x45D0, c, code_45D0] #DONE
|
||||
- [0x4770, c, code_4770] #DONE
|
||||
- [0x5CC0, c, code_5CC0]
|
||||
- [0x5CC0, c, code_5CC0] #DONE
|
||||
- [0x6AE0, c, code_6AE0] #DONE
|
||||
- [0x7980, c, code_7980] #DONE
|
||||
- [0x8330, c, code_8330] #DONE
|
||||
|
Reference in New Issue
Block a user