Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
OrbitDoorsAndSpacewalk
Keeps ship hangar door controls usable in orbit, disables player and furniture vacuum ejection, and teleports drifting players safely back inside.
By Zaliteam
| Last updated | a day ago |
| Total downloads | 63 |
| Total rating | 0 |
| Categories | Mods Client-side Tweaks & Quality Of Life AI Generated |
| Dependency string | Zaliteam-OrbitDoorsAndSpacewalk-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Orbit Doors & Spacewalk Safety (No Vacuum Ejection)
Open and close the ship hangar doors freely while in orbit, step outside onto the catwalk/hull without getting vacuum-ejected, and automatically warp back into the ship if you fall off into space.
Player Guide (Simple Overview)
How It Works
- Unlocked Orbit Doors: The ship door open/close buttons remain active and clickable between moons in orbit.
- No Vacuum Ejection: Opening the doors in space will no longer suck players or ship furniture out of the ship.
- Zero-Death Spacewalk Rescue: Go outside the ship in orbit without dying—if you slip off the hull or drift too far into space, you are safely teleported back to the center of the ship with zero fall damage.
- Compatible With Dynamic Ship Door Health: Designed to work either standalone or alongside
DynamicShipDoorHealth.
Configuration (BepInEx/config/com.khameli0n.orbitdoorsandspacewalk.cfg)
| Section | Key | Default | Description |
|---|---|---|---|
OrbitDoors |
EnableOrbitDoorControls |
true |
Keeps ship hangar door buttons enabled and interactable while in orbit. |
SpacewalkSafety |
EnableSpacewalkSafety |
true |
Prevents orbit vacuum ejection and teleports drifting/falling players back inside the ship. |
Technical Details (For Developers)
- Plugin GUID:
com.khameli0n.orbitdoorsandspacewalk - Target Framework:
netstandard2.1(BepInEx 5 / HarmonyX) - Side: Client-side patches on
HangarShipDoorandStartOfRound(door open/close sync still flows through vanilla RPCs).
Harmony Patches (OrbitDoorsAndSpacewalk.Patches.OrbitSafetyPatches)
| Target Method | Type | Behavior |
|---|---|---|
HangarShipDoor.SetDoorButtonsEnabled |
Prefix |
Forces ref bool doorButtonsEnabled = true when EnableOrbitDoorControls is enabled. |
HangarShipDoor.PlayDoorAnimation |
Prefix |
Sets __instance.buttonsEnabled = true when EnableOrbitDoorControls is enabled. |
HangarShipDoor.Update |
Postfix |
While StartOfRound.Instance.inShipPhase == true, ensures buttonsEnabled = true and triggerScript.interactable = true so vanilla orbit logic (or door mods yielding during orbit) cannot lock the switch. |
StartOfRound.Update |
Prefix |
While inShipPhase == true, sets suckingPlayersOutOfShip = false and suckingFurnitureOutOfShip = false. |
StartOfRound.SuckLocalPlayerOutOfShipDoor |
Prefix |
While inShipPhase == true, cancels execution (return false). |
StartOfRound.LateUpdate |
Postfix |
While inShipPhase == true, monitors GameNetworkManager.Instance.localPlayerController and calls RescueOrbitPlayer if alive and out of bounds. |
Rescue Bounds & Reset (RescueOrbitPlayer)
- Trigger Conditions (Orbit Only):
localPlayer.transform.position.y < -25f, orVector3.Distance(localPlayer.transform.position, StartOfRound.elevatorTransform.position) > 28f.
- Recovery Action:
- Resets
fallValue = 0f,fallValueUncapped = 0f, andexternalForces = Vector3.zero. - Calls
TeleportPlayer(safePos, false, 0f, false, true)targetingStartOfRound.middleOfShipNode.position(fallback:elevatorTransform.position + Vector3.up * 1f).
- Resets