mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-09-03 18:43:38 -04:00
Document sound effects (pr 735 from the decomp) (#589)
Co-authored-by: Jed Grabman <JedGrabman@users.noreply.github.com> Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
This commit is contained in:
+4
-4
@@ -1167,7 +1167,7 @@ s32 func_80089B50(s32 objectIndex) {
|
||||
(player->type & PLAYER_EXISTS) && !(player->type & PLAYER_INVISIBLE_OR_BOMB) &&
|
||||
(has_collided_horizontally_with_player(objectIndex, player) != 0)) {
|
||||
if (!(player->effects & STAR_EFFECT)) {
|
||||
player->soundEffects |= REVERSE_SOUND_EFFECT;
|
||||
player->triggers |= VERTICAL_TUMBLE_TRIGGER;
|
||||
if (is_obj_flag_status_active(objectIndex, 0x04000000) != 0) {
|
||||
func_80072180();
|
||||
}
|
||||
@@ -1194,7 +1194,7 @@ s32 func_80089CBC(s32 objectIndex, f32 arg1) {
|
||||
if ((player->type & PLAYER_EXISTS) && !(player->type & PLAYER_INVISIBLE_OR_BOMB) &&
|
||||
(has_collided_with_player_and_within_height(objectIndex, player, arg1) != 0)) {
|
||||
if (!(player->effects & STAR_EFFECT)) {
|
||||
player->soundEffects |= REVERSE_SOUND_EFFECT;
|
||||
player->triggers |= VERTICAL_TUMBLE_TRIGGER;
|
||||
if (is_obj_flag_status_active(objectIndex, 0x04000000) != 0) {
|
||||
func_80072180();
|
||||
}
|
||||
@@ -1221,7 +1221,7 @@ s32 func_80089E18(s32 objectIndex) {
|
||||
if (player->effects & STAR_EFFECT) {
|
||||
var_s6 = 1;
|
||||
} else {
|
||||
player->soundEffects |= 1;
|
||||
player->triggers |= HIT_BANANA_TRIGGER;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1245,7 +1245,7 @@ s32 func_80089F24(s32 objectIndex) {
|
||||
if (is_obj_flag_status_active(objectIndex, 0x04000000) != 0) {
|
||||
func_80072180();
|
||||
}
|
||||
player->soundEffects |= 0x200000;
|
||||
player->triggers |= SPINOUT_TRIGGER;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user