Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate Arachnus pickup to face the correct direction #408

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/open_samus_returns_rando/files/custom/arachnus.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Game.ImportLibrary("actors/characters/arachnus/scripts/arachnus_original.lc")
function Arachnus.main()
Game.AddSF(0.0, "Arachnus.RotatePickup", "")
end
function Arachnus.RotatePickup()
local springball = Game.GetEntity("LE_PowerUp_Springball")
if springball ~= nil then
if springball.vAng ~= V3D(0, 0 ,0) then
springball.vAng = V3D(0, 0, 0)
else
Game.AddSF(0.0, "Arachnus.RotatePickup", "")
end
end
end
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/lua_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def _add_replacement_files(self, editor: PatcherEditor, configuration: dict) ->
scenario_lua_content += "\n" + self._progressive_models
lua_util.replace_script_with_content(editor, "system/scripts/scenario", scenario_lua_content)

lua_util.replace_script(editor, "actors/characters/arachnus/scripts/arachnus", "custom/arachnus.lua")
lua_util.replace_script(editor, "actors/props/samusship/scripts/samusship", "custom/ship.lua")
lua_util.replace_script(editor, "actors/props/savestation/scripts/savestation", "custom/savestation.lua")
lua_util.replace_script(editor, "actors/props/heatzone/scripts/heatzone", "custom/heatzone.lua")
Expand Down