Documenting Player Utilities and Related

This commit is contained in:
Shmoopi
2024-11-03 17:19:48 +00:00
committed by Banjo Kazooie
parent 1772033ec8
commit 0d223bfc2b
78 changed files with 243 additions and 240 deletions

View File

@@ -89,7 +89,7 @@ void bspumpkin_idle_update(void) {
s32 next_state;
next_state = 0;
if (func_8028B094()) {
if (player_shouldFall()) {
next_state = BS_4B_PUMPKIN_FALL;
}
if (bainput_should_look_first_person_camera()) {
@@ -134,7 +134,7 @@ void bspumpkin_walk_update(void) {
if ((bastick_getZone() == 0) && baphysics_is_slower_than(1.0f)) {
next_state = BS_48_PUMPKIN_IDLE;
}
if (func_8028B094()) {
if (player_shouldFall()) {
next_state = BS_4B_PUMPKIN_FALL;
}
if (bakey_pressed(BUTTON_A)) {
@@ -290,7 +290,7 @@ void bspumpkin_fall_update(void) {
break;
}
if (player_isStable() && ((bastick_getZone() > 0) || (D_8037D4E0 == 2 && anctrl_isStopped(anim_ctrl)))) {
if (baflag_isTrue(BA_FLAG_19)) {
if (baflag_isTrue(BA_FLAG_19_SHOULD_TRANSFORM)) {
next_state = badrone_transform();
} else {
next_state = BS_48_PUMPKIN_IDLE;