Renaming Mumbo Mountains
This commit is contained in:
@@ -2290,9 +2290,18 @@ enum bs_e
|
|||||||
BS_A5_WONDERWING_UNKA5
|
BS_A5_WONDERWING_UNKA5
|
||||||
};
|
};
|
||||||
|
|
||||||
enum map_flags_e
|
enum mm_specific_flags {
|
||||||
{
|
MM_SPECIFIC_FLAG_0_UNKNOWN,
|
||||||
mapflag_mm_main_hit_with_orange = 8
|
|
||||||
|
MM_SPECIFIC_FLAG_2_UNKNOWN = 0x2,
|
||||||
|
MM_SPECIFIC_FLAG_3_UNKNOWN,
|
||||||
|
MM_SPECIFIC_FLAG_4_SHAKE,
|
||||||
|
|
||||||
|
MM_SPECIFIC_FLAG_6_UNKNOWN = 0x6,
|
||||||
|
|
||||||
|
MM_SPECIFIC_FLAG_8_HIT_WITH_ORANGE = 0x8,
|
||||||
|
MM_SPECIFIC_FLAG_9_UNKNOWN,
|
||||||
|
MM_SPECIFIC_FLAG_A_UNKNOWN
|
||||||
};
|
};
|
||||||
|
|
||||||
enum item_e
|
enum item_e
|
||||||
|
@@ -9,24 +9,34 @@
|
|||||||
void func_80353064(f32 *, f32);
|
void func_80353064(f32 *, f32);
|
||||||
void func_802BB3DC(s32, f32, f32);
|
void func_802BB3DC(s32, f32, f32);
|
||||||
void func_80244BB0(s32, s32, s32, f32);
|
void func_80244BB0(s32, s32, s32, f32);
|
||||||
|
s32 mapSpecificFlags_get(s32);
|
||||||
|
|
||||||
/* public function declarations */
|
/* public function declarations */
|
||||||
void chchimpystump_update(Actor *this);
|
void chchimpystump_update(Actor *this);
|
||||||
|
|
||||||
/* .data */
|
/* .data */
|
||||||
ActorInfo chchimpystump = { MARKER_95_CHIMPY_STUMP, ACTOR_C5_CHIMPY_STUMP, ASSET_3C8_MODEL_CHIMPY_STUMP,
|
enum chchimpystump_state_e {
|
||||||
|
CHIMPY_STUMP_STATE_1_LOWERED = 1,
|
||||||
|
CHIMPY_STUMP_STATE_2_RAISING,
|
||||||
|
CHIMPY_STUMP_STATE_3_RAISED
|
||||||
|
};
|
||||||
|
|
||||||
|
ActorInfo chchimpystump = {
|
||||||
|
MARKER_95_CHIMPY_STUMP, ACTOR_C5_CHIMPY_STUMP, ASSET_3C8_MODEL_CHIMPY_STUMP,
|
||||||
1, NULL,
|
1, NULL,
|
||||||
chchimpystump_update, func_80326224, actor_drawFullDepth,
|
chchimpystump_update, func_80326224, actor_drawFullDepth,
|
||||||
0, 0, 0.0f, 0
|
0, 0, 0.0f, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
void _chchimpystump_80386CA0(Actor *this){
|
/* .code */
|
||||||
if(mapSpecificFlags_get(4)){
|
void __chchimpystump_updateShaking(Actor *this) {
|
||||||
|
if (mapSpecificFlags_get(MM_SPECIFIC_FLAG_4_SHAKE)) {
|
||||||
if (this->unk10_12 == 0) {
|
if (this->unk10_12 == 0) {
|
||||||
this->unk10_12 = 1;
|
this->unk10_12 = 1;
|
||||||
func_802BB3DC(1, 3.0f, 1.0f);
|
func_802BB3DC(1, 3.0f, 1.0f);
|
||||||
func_80244BB0(0, 0x6A, 0x7FF8, 0.2f);
|
func_80244BB0(0, 0x6A, 0x7FF8, 0.2f);
|
||||||
}//L80386D0C
|
}//L80386D0C
|
||||||
|
|
||||||
this->position_x = ((globalTimer_getTime() & 1) * 2) ^ (s32) this->position_x;
|
this->position_x = ((globalTimer_getTime() & 1) * 2) ^ (s32) this->position_x;
|
||||||
this->position_z = ((globalTimer_getTime() & 2) * 2) ^ (s32) this->position_z;
|
this->position_z = ((globalTimer_getTime() & 2) * 2) ^ (s32) this->position_z;
|
||||||
}
|
}
|
||||||
@@ -40,27 +50,34 @@ void chchimpystump_update(Actor *this){
|
|||||||
this->position_y -= 134.0f;
|
this->position_y -= 134.0f;
|
||||||
this->marker->propPtr->unk8_3 = 1;
|
this->marker->propPtr->unk8_3 = 1;
|
||||||
}
|
}
|
||||||
switch (this->state)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
if(mapSpecificFlags_get(0))
|
|
||||||
subaddie_set_state(this, 2);
|
|
||||||
|
|
||||||
_chchimpystump_80386CA0(this);
|
switch (this->state) {
|
||||||
|
case CHIMPY_STUMP_STATE_1_LOWERED:
|
||||||
|
if (mapSpecificFlags_get(MM_SPECIFIC_FLAG_0_UNKNOWN)) {
|
||||||
|
subaddie_set_state(this, CHIMPY_STUMP_STATE_2_RAISING);
|
||||||
|
}
|
||||||
|
|
||||||
|
__chchimpystump_updateShaking(this);
|
||||||
break;
|
break;
|
||||||
case 2:
|
|
||||||
_chchimpystump_80386CA0(this);
|
case CHIMPY_STUMP_STATE_2_RAISING:
|
||||||
|
__chchimpystump_updateShaking(this);
|
||||||
this->position_y += 2.5;
|
this->position_y += 2.5;
|
||||||
|
|
||||||
if (this->unk28 <= this->position_y) {
|
if (this->unk28 <= this->position_y) {
|
||||||
this->position_y = this->unk28;
|
this->position_y = this->unk28;
|
||||||
subaddie_set_state(this, 3);
|
subaddie_set_state(this, CHIMPY_STUMP_STATE_3_RAISED);
|
||||||
func_802BB41C(1);
|
func_802BB41C(1);
|
||||||
func_80244C78(0);
|
func_80244C78(0);
|
||||||
}
|
}
|
||||||
if((globalTimer_getTime() & 3) == 2)
|
|
||||||
|
if ((globalTimer_getTime() & 3) == 2) {
|
||||||
func_80353064(this->position, 40.0f);
|
func_80353064(this->position, 40.0f);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 3:
|
|
||||||
|
case CHIMPY_STUMP_STATE_3_RAISED:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -122,7 +122,7 @@ void func_80387168(ActorMarker *marker, ActorMarker *other_marker){
|
|||||||
if(((ActorLocal_Conga *)&actorPtr->local)->unkC == 1){
|
if(((ActorLocal_Conga *)&actorPtr->local)->unkC == 1){
|
||||||
if(actorPtr->unk10_12 == 0){
|
if(actorPtr->unk10_12 == 0){
|
||||||
((ActorLocal_Conga *)&actorPtr->local)->unkC = 0;
|
((ActorLocal_Conga *)&actorPtr->local)->unkC = 0;
|
||||||
if(mapSpecificFlags_get(0xA))
|
if(mapSpecificFlags_get(MM_SPECIFIC_FLAG_A_UNKNOWN))
|
||||||
actorPtr->unk38_31++;
|
actorPtr->unk38_31++;
|
||||||
|
|
||||||
actorPtr->unk10_12 = MIN(actorPtr->unk38_31, 0xA);
|
actorPtr->unk10_12 = MIN(actorPtr->unk38_31, 0xA);
|
||||||
@@ -252,7 +252,7 @@ void func_803876D0(Actor *this){
|
|||||||
&& func_80311480(ASSET_B37_TEXT_CONGA_SAFE_UP_HERE, 0, 0, 0, 0, 0)
|
&& func_80311480(ASSET_B37_TEXT_CONGA_SAFE_UP_HERE, 0, 0, 0, 0, 0)
|
||||||
){
|
){
|
||||||
this->unk138_23 = 1;
|
this->unk138_23 = 1;
|
||||||
mapSpecificFlags_set(0xA, 1);
|
mapSpecificFlags_set(MM_SPECIFIC_FLAG_A_UNKNOWN, TRUE);
|
||||||
}//L803878F8
|
}//L803878F8
|
||||||
|
|
||||||
if( sp3C && !this->is_first_encounter){
|
if( sp3C && !this->is_first_encounter){
|
||||||
|
@@ -191,7 +191,7 @@ void func_80389598(Actor *this){
|
|||||||
}//L803896B4
|
}//L803896B4
|
||||||
if(jujuPtr->unk18){
|
if(jujuPtr->unk18){
|
||||||
if(sp38 || (sp34 < 180.0f && 180.0f <= this->yaw)){
|
if(sp38 || (sp34 < 180.0f && 180.0f <= this->yaw)){
|
||||||
mapSpecificFlags_set(9,1);
|
mapSpecificFlags_set(MM_SPECIFIC_FLAG_9_UNKNOWN, TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@@ -156,9 +156,9 @@ void func_80388E20(Actor *this){
|
|||||||
func_80389514(jujuCtlPtr->unk8);
|
func_80389514(jujuCtlPtr->unk8);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mapSpecificFlags_get(0x9)){
|
if (mapSpecificFlags_get(MM_SPECIFIC_FLAG_9_UNKNOWN)) {
|
||||||
func_80388D14(this);
|
func_80388D14(this);
|
||||||
mapSpecificFlags_set(0x9, 0);
|
mapSpecificFlags_set(MM_SPECIFIC_FLAG_9_UNKNOWN, FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -69,7 +69,7 @@ void __chLMonkey_spawnJiggy(s32 x, s32 y, s32 z){
|
|||||||
|
|
||||||
void __chLMonkey_complete(ActorMarker *marker, enum asset_e arg1, s32 arg2){
|
void __chLMonkey_complete(ActorMarker *marker, enum asset_e arg1, s32 arg2){
|
||||||
Actor * actor = marker_getActor(marker);
|
Actor * actor = marker_getActor(marker);
|
||||||
mapSpecificFlags_set(4,1);
|
mapSpecificFlags_set(MM_SPECIFIC_FLAG_4_SHAKE, TRUE);
|
||||||
subaddie_set_state(actor, 3);
|
subaddie_set_state(actor, 3);
|
||||||
timed_setStaticCameraToNode(2.3f, 0x12);
|
timed_setStaticCameraToNode(2.3f, 0x12);
|
||||||
timedFunc_set_3(2.9f,__chLMonkey_spawnJiggy, actor->position_x, actor->position_y + 150.0f, actor->position_z);
|
timedFunc_set_3(2.9f,__chLMonkey_spawnJiggy, actor->position_x, actor->position_y + 150.0f, actor->position_z);
|
||||||
@@ -89,7 +89,7 @@ void chLMonkey_update(Actor *this){
|
|||||||
}//L8038865C
|
}//L8038865C
|
||||||
switch(this->state){
|
switch(this->state){
|
||||||
case 1://L80388690
|
case 1://L80388690
|
||||||
if(mapSpecificFlags_get(2)){
|
if (mapSpecificFlags_get(MM_SPECIFIC_FLAG_2_UNKNOWN)) {
|
||||||
subaddie_set_state(this, 4);
|
subaddie_set_state(this, 4);
|
||||||
if(!jiggyscore_isCollected(JIGGY_9_MM_CHIMPY)){
|
if(!jiggyscore_isCollected(JIGGY_9_MM_CHIMPY)){
|
||||||
func_80311480(ASSET_B40_DIALOG_CHIMPY_COMPLETE, 0xE, this->position, this->marker, __chLMonkey_complete, NULL);
|
func_80311480(ASSET_B40_DIALOG_CHIMPY_COMPLETE, 0xE, this->position, this->marker, __chLMonkey_complete, NULL);
|
||||||
@@ -124,10 +124,10 @@ void chLMonkey_update(Actor *this){
|
|||||||
func_80343DEC(this);
|
func_80343DEC(this);
|
||||||
actor_loopAnimation(this);
|
actor_loopAnimation(this);
|
||||||
if(0.19 <= this->unk48){
|
if(0.19 <= this->unk48){
|
||||||
mapSpecificFlags_set(0, 1);
|
mapSpecificFlags_set(MM_SPECIFIC_FLAG_0_UNKNOWN, TRUE);
|
||||||
}
|
}
|
||||||
if(0.24 <= this->unk48){
|
if(0.24 <= this->unk48){
|
||||||
mapSpecificFlags_set(3, 1);
|
mapSpecificFlags_set(MM_SPECIFIC_FLAG_3_UNKNOWN, TRUE);
|
||||||
}
|
}
|
||||||
if(0.99 <= this->unk48){
|
if(0.99 <= this->unk48){
|
||||||
marker_despawn(this->marker);
|
marker_despawn(this->marker);
|
||||||
|
@@ -34,10 +34,10 @@ f32 D_80389A00[3] = {0.0f, 0.0f, 0.0f};
|
|||||||
|
|
||||||
void func_80387F90(ActorMarker *arg0, ActorMarker *other_marker){
|
void func_80387F90(ActorMarker *arg0, ActorMarker *other_marker){
|
||||||
if( !func_8028F22C(arg0)
|
if( !func_8028F22C(arg0)
|
||||||
&& !mapSpecificFlags_get(mapflag_mm_main_hit_with_orange)
|
&& !mapSpecificFlags_get(MM_SPECIFIC_FLAG_8_HIT_WITH_ORANGE)
|
||||||
&& func_80311480(ASSET_B3A_TEXT_CONGA_HITS_PLAYER, 0, 0, 0, NULL, NULL)
|
&& func_80311480(ASSET_B3A_TEXT_CONGA_HITS_PLAYER, 0, 0, 0, NULL, NULL)
|
||||||
){
|
){
|
||||||
mapSpecificFlags_set(mapflag_mm_main_hit_with_orange, 1);
|
mapSpecificFlags_set(MM_SPECIFIC_FLAG_8_HIT_WITH_ORANGE, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(arg0);
|
if(arg0);
|
||||||
|
@@ -118,11 +118,11 @@ void func_80386768(Actor * this){
|
|||||||
|
|
||||||
if( func_80329530(this, 0x28)
|
if( func_80329530(this, 0x28)
|
||||||
&& !func_8028ECAC()
|
&& !func_8028ECAC()
|
||||||
&& !mapSpecificFlags_get(6)
|
&& !mapSpecificFlags_get(MM_SPECIFIC_FLAG_6_UNKNOWN)
|
||||||
&& closest_actor->state != 3
|
&& closest_actor->state != 3
|
||||||
){
|
){
|
||||||
if (func_80311480(0xb3d, 0, NULL, NULL, NULL, NULL)) {
|
if (func_80311480(0xb3d, 0, NULL, NULL, NULL, NULL)) {
|
||||||
mapSpecificFlags_set(6,1);
|
mapSpecificFlags_set(MM_SPECIFIC_FLAG_6_UNKNOWN, TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user