From 6558941ec1534afa20337546c7f9ef49c55ad5af Mon Sep 17 00:00:00 2001 From: wxhn1225 <45218021+wxhn1225@users.noreply.github.com> Date: Sat, 11 Oct 2025 20:10:12 +0800 Subject: [PATCH] Add submodules: warframe data and OpenWF mods --- .gitmodules | 6 ++++++ Mods | 1 + Scripts/瞬移.pluto | 26 ++++++++++++++++++++++++++ warframe-public-export-plus | 1 + 4 files changed, 34 insertions(+) create mode 100644 .gitmodules create mode 160000 Mods create mode 100644 Scripts/瞬移.pluto create mode 160000 warframe-public-export-plus diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9f20ce8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "warframe-public-export-plus"] + path = warframe-public-export-plus + url = https://github.com/calamity-inc/warframe-public-export-plus.git +[submodule "Mods"] + path = Mods + url = https://onlyg.it/OpenWF/Mods.git diff --git a/Mods b/Mods new file mode 160000 index 0000000..6f4629b --- /dev/null +++ b/Mods @@ -0,0 +1 @@ +Subproject commit 6f4629b550f2c8478a5a2c0e18dfa87b152ff325 diff --git a/Scripts/瞬移.pluto b/Scripts/瞬移.pluto new file mode 100644 index 0000000..0209959 --- /dev/null +++ b/Scripts/瞬移.pluto @@ -0,0 +1,26 @@ +local lastPosition = nil -- 记录上一次瞬移的位置 + +-- 缓存对象引用,避免重复调用 +local localPlayer = gRegion:GetLocalPlayer() +local localPlayerAvatar = gRegion:GetLocalPlayerAvatar() +local hudStatus = localPlayer:GetHudStatus() + +repeat + local flashMarkers = hudStatus:GetFlashMarkers() + + for _, marker in ipairs(flashMarkers) do + if marker.markerType == 49 and not marker.garbage then + local markerPosition = marker.baseMarkerInfo:GetPosition() + + -- 只有当标记位置与上次瞬移的位置不同,才执行瞬移 + if markerPosition ~= lastPosition then + -- 执行瞬移 + localPlayerAvatar:SetPosition(markerPosition) + + -- 更新最后瞬移的位置 + lastPosition = markerPosition + + end + end + end +until yield() \ No newline at end of file diff --git a/warframe-public-export-plus b/warframe-public-export-plus new file mode 160000 index 0000000..a8bb7be --- /dev/null +++ b/warframe-public-export-plus @@ -0,0 +1 @@ +Subproject commit a8bb7be7b8f43a751949f0186982e20d2ce94c8e