From d91b7af020a444110c59b1258e9fc97a497df297 Mon Sep 17 00:00:00 2001 From: wereyoshi Date: Mon, 9 Feb 2026 20:02:21 -0700 Subject: [PATCH] This change allows custom attacking actions to be able to break star road's breakable windows (#1090) Before this commit custom characters like the sonic in this pull request https://github.com/coop-deluxe/sm64coopdx/pull/1081 can't break some star road windows due to giving up vanilla actions. This pull request remedies that by allowing any custom attacking action to be used in place of vanilla actions for breaking said windows. --- mods/star-road/helpers.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/star-road/helpers.lua b/mods/star-road/helpers.lua index acd6e4578..7c2dd67d7 100644 --- a/mods/star-road/helpers.lua +++ b/mods/star-road/helpers.lua @@ -52,6 +52,9 @@ function check_mario_attacking(obj, mario) if mario.action == ACT_WALL_KICK_AIR then return 2 end + if (mario.action & ACT_FLAG_CUSTOM_ACTION ~= 0) and (mario.action & ACT_FLAG_ATTACKING ~= 0) then + return 2 + end end end @@ -121,4 +124,4 @@ function object_drop_to_floor(obj) local floorHeight = find_floor_height(x, y + 200, z) obj.oPosY = floorHeight obj.oMoveFlags = (obj.oMoveFlags | OBJ_MOVE_ON_GROUND) -end \ No newline at end of file +end