documented volatile flag functions and enums and some Actor struct members
This commit is contained in:
@@ -44,7 +44,7 @@ void chBeehive_update(Actor *this){
|
||||
this->marker->propPtr->unk8_3 = 1;
|
||||
this->unk44_31 = func_8030D90C();
|
||||
this->unk16C_4 = 1;
|
||||
this->unk38_0 = func_803203FC(1)| func_803203FC(UNKFLAGS1_1F_IN_CHARACTER_PARADE);
|
||||
this->unk38_0 = volatileFlag_get(VOLATILE_FLAG_1)| volatileFlag_get(VOLATILE_FLAG_1F_IN_CHARACTER_PARADE);
|
||||
}//L802CE960
|
||||
if(map_get() == MAP_27_FP_FREEZEEZY_PEAK){
|
||||
if(func_8038BFA0()){
|
||||
|
@@ -44,7 +44,7 @@ void func_802C5E80(Actor *this){
|
||||
}
|
||||
|
||||
void func_802C5EB8(Actor *this){
|
||||
if(func_803203FC(UNKFLAGS1_C1_IN_FINAL_CHARACTER_PARADE))
|
||||
if(volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE))
|
||||
return;
|
||||
|
||||
if(this->unk38_31){
|
||||
|
@@ -77,7 +77,7 @@ void func_802D77D4(Actor *this) {
|
||||
ml_vec3f_diff_copy(sp4C, this->position, sp40);
|
||||
if (((sp4C[0] * sp4C[0]) + (sp4C[2] * sp4C[2])) < (sp3C * sp3C)) {
|
||||
if ((this->position[1] < sp40[1]) && (sp40[1] <= local->unk0[1])) {
|
||||
if (func_803203FC(2) == 0) {
|
||||
if (volatileFlag_get(VOLATILE_FLAG_2) == 0) {
|
||||
func_8028F738(this->position, local->unk0, (f32)this->unkF4_8, local->unkC);
|
||||
}
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ void func_802CD8C0(Actor *this){
|
||||
this->marker->unk2C_1 = 1;
|
||||
this->marker->collidable = 0;
|
||||
*(s32*)this->unkBC = 0; //TODO Make struct
|
||||
if(func_803203FC(1) || func_803203FC(UNKFLAGS1_1F_IN_CHARACTER_PARADE)){
|
||||
if(volatileFlag_get(VOLATILE_FLAG_1) || volatileFlag_get(VOLATILE_FLAG_1F_IN_CHARACTER_PARADE)){
|
||||
marker_despawn(this->marker);
|
||||
return;
|
||||
}
|
||||
|
@@ -154,8 +154,8 @@ void chCollectible_update(Actor *this) {
|
||||
if(!this->unk38_0)
|
||||
return;
|
||||
|
||||
if (func_80320424(0x23, 3) != this->unk10_12) {
|
||||
func_802D8C98(this, func_80320424(0x23, 3));
|
||||
if (volatileFlag_getN(0x23, 3) != this->unk10_12) {
|
||||
func_802D8C98(this, volatileFlag_getN(0x23, 3));
|
||||
}
|
||||
|
||||
switch (this->state) {
|
||||
|
@@ -246,14 +246,14 @@ void chCrab_update(Actor *this) {
|
||||
if (!jiggyscore_isCollected(JIGGY_10_TTC_SANDCASTLE)) {
|
||||
mapSpecificFlags_set(1, 0);
|
||||
}
|
||||
if (func_803203FC(2)) {
|
||||
if (volatileFlag_get(VOLATILE_FLAG_2)) {
|
||||
marker_despawn(this->marker);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (func_803203FC(UNKFLAGS1_C1_IN_FINAL_CHARACTER_PARADE) != 0) {
|
||||
if (volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) != 0) {
|
||||
if (this->unkF4_8 != 1) {
|
||||
marker_despawn(this->marker);
|
||||
return;
|
||||
@@ -279,7 +279,7 @@ void chCrab_update(Actor *this) {
|
||||
if (map_get() == MAP_A_TTC_SANDCASTLE) {
|
||||
if( !mapSpecificFlags_get(0)
|
||||
&& levelSpecificFlags_get(2)
|
||||
&& !func_803203FC(2)
|
||||
&& !volatileFlag_get(VOLATILE_FLAG_2)
|
||||
&& !jiggyscore_isCollected(JIGGY_10_TTC_SANDCASTLE)
|
||||
&& func_80329530(this, 1600)
|
||||
) {
|
||||
|
@@ -176,7 +176,7 @@ void func_8035B6CC(Actor *this){
|
||||
void func_8035B75C(Actor *this){
|
||||
subaddie_set_state_with_direction(this, 3, 0.01f, 1);
|
||||
actor_loopAnimation(this);
|
||||
this->unk28 = func_803203FC(UNKFLAGS1_C1_IN_FINAL_CHARACTER_PARADE) ? 0.0 : 12.0;
|
||||
this->unk28 = volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0.0 : 12.0;
|
||||
func_8030E878(0x3F4, randf2(1.0f, 1.2f), 32000, this->position, this->scale*400.0f, this->scale*1800.0f);
|
||||
}
|
||||
|
||||
|
@@ -303,7 +303,7 @@ void chicecube_update(Actor *this){
|
||||
case 1: // L8035AC9C
|
||||
animctrl_setAnimTimer(this->animctrl, 0.0f);
|
||||
if( func_80359DF4(this, 900)
|
||||
|| (this->unkF4_8 == 2 && func_803203FC(UNKFLAGS1_C1_IN_FINAL_CHARACTER_PARADE))
|
||||
|| (this->unkF4_8 == 2 && volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE))
|
||||
){
|
||||
subaddie_set_state_with_direction(this, 2, 0.0001f, 1);
|
||||
actor_playAnimationOnce(this);
|
||||
|
@@ -110,7 +110,7 @@ void chJinjo_update(Actor * this){
|
||||
local->unk8 = (this->position_y < func_80309B24(this->position));
|
||||
this->marker->collisionFunc = __chJinjo_802CDBA8;
|
||||
marker_setFreeMethod(this->marker, __chJinjo_802CDD3C);
|
||||
if(func_803203FC(UNKFLAGS1_C1_IN_FINAL_CHARACTER_PARADE)){
|
||||
if(volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE)){
|
||||
marker_despawn(this->marker);
|
||||
}
|
||||
}//L802CDE24
|
||||
|
@@ -332,7 +332,7 @@ void chSnacker_spawn(void) {
|
||||
|
||||
|
||||
_player_getPosition(spawn_position);
|
||||
if (func_803203FC(UNKFLAGS1_C1_IN_FINAL_CHARACTER_PARADE) != 0) {
|
||||
if (volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) != 0) {
|
||||
nodeprop_getPosition(func_80304CAC(0x3CB, spawn_position), spawn_position);
|
||||
}
|
||||
else{
|
||||
@@ -372,7 +372,7 @@ void chSnacker_spawn(void) {
|
||||
marker_despawn(s_chSnacker_marker);
|
||||
return;
|
||||
}
|
||||
if (func_803203FC(UNKFLAGS1_C1_IN_FINAL_CHARACTER_PARADE) == 0) {
|
||||
if (volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) == 0) {
|
||||
func_8032BB88(snacker, 5000, 750);
|
||||
func_8024BD08(0);
|
||||
func_8025A6EC(COMUSIC_34_SNACKER_DANGER, 0);
|
||||
|
@@ -66,23 +66,23 @@ void chtrainers_update(Actor *this){
|
||||
ml_vec3f_copy(this->unk1C, this->position);
|
||||
this->velocity[0] = this->yaw;
|
||||
this->velocity[1] = 0.0f;
|
||||
this->unk10_12 = !func_803203FC(UNKFLAGS1_1F_IN_CHARACTER_PARADE) && !func_803203FC(0x1);
|
||||
this->unk10_12 = !volatileFlag_get(VOLATILE_FLAG_1F_IN_CHARACTER_PARADE) && !volatileFlag_get(0x1);
|
||||
subaddie_set_state(this, 0);
|
||||
}
|
||||
|
||||
if(!func_803203FC(0xF) && ability_isUnlocked(ABILITY_11_TURBO_TALON)){
|
||||
func_803204E4(0xF, TRUE);
|
||||
if(!volatileFlag_get(0xF) && ability_isUnlocked(ABILITY_11_TURBO_TALON)){
|
||||
volatileFlag_set(0xF, TRUE);
|
||||
}
|
||||
|
||||
switch(this->state){
|
||||
case 0://L802CA5A8
|
||||
if(func_803296D8(this, 2000) || sp2C){
|
||||
if( func_80329530(this, 0xfa)
|
||||
&& !func_803203FC(0xf)
|
||||
&& !volatileFlag_get(0xf)
|
||||
&& player_getTransformation() == TRANSFORM_1_BANJO
|
||||
){
|
||||
if(func_80311480(0xda4, 0, NULL, NULL, NULL, NULL)){
|
||||
func_803204E4(0xf, TRUE);
|
||||
volatileFlag_set(0xf, TRUE);
|
||||
}
|
||||
}//L802CA620
|
||||
_chtrainers_802CA378(this, sp2C);
|
||||
|
@@ -41,12 +41,12 @@ void chwadingboots_update(Actor *this){
|
||||
if(!this->initialized){
|
||||
this->initialized = TRUE;
|
||||
this->velocity[0] = this->yaw;
|
||||
this->unk10_12 = !func_803203FC(UNKFLAGS1_1F_IN_CHARACTER_PARADE) && !func_803203FC(0x1);
|
||||
this->unk10_12 = !volatileFlag_get(VOLATILE_FLAG_1F_IN_CHARACTER_PARADE) && !volatileFlag_get(0x1);
|
||||
subaddie_set_state(this, 0);
|
||||
}
|
||||
|
||||
if(!func_803203FC(0x10) && ability_isUnlocked(ABILITY_E_WADING_BOOTS)){
|
||||
func_803204E4(0x10, TRUE);
|
||||
if(!volatileFlag_get(0x10) && ability_isUnlocked(ABILITY_E_WADING_BOOTS)){
|
||||
volatileFlag_set(0x10, TRUE);
|
||||
}
|
||||
|
||||
switch(this->state){
|
||||
@@ -65,12 +65,12 @@ void chwadingboots_update(Actor *this){
|
||||
}
|
||||
}
|
||||
|
||||
if(func_803203FC(0x10)) break;
|
||||
if(volatileFlag_get(0x10)) break;
|
||||
if(!func_80329530(this, 250)) break;
|
||||
if(player_getTransformation() != TRANSFORM_1_BANJO) break;
|
||||
|
||||
if(func_80311480(ASSET_DA5_DIALOG_WADINGBOOTS_MEET, 0, NULL, NULL, NULL, NULL)){
|
||||
func_803204E4(0x10, TRUE);
|
||||
volatileFlag_set(0x10, TRUE);
|
||||
}
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user