mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Only correct spawn velocity when NH is handling spawn (fix archipelago incompat)
This commit is contained in:
parent
cb64f79c5d
commit
9f5257d087
@ -71,10 +71,13 @@ namespace NewHorizons.Handlers
|
|||||||
// Spawn ship
|
// Spawn ship
|
||||||
Delay.FireInNUpdates(SpawnShip, 30);
|
Delay.FireInNUpdates(SpawnShip, 30);
|
||||||
|
|
||||||
// Have had bug reports (#1034, #975) where sometimes after spawning via vessel warp or ship warp you die from impact velocity after being flung
|
if (UsingCustomSpawn() || shouldWarpInFromShip || shouldWarpInFromVessel)
|
||||||
// Something weird must be happening with velocity.
|
{
|
||||||
// Try to correct it here after the ship is done spawning
|
// Have had bug reports (#1034, #975) where sometimes after spawning via vessel warp or ship warp you die from impact velocity after being flung
|
||||||
Delay.FireInNUpdates(() => FixVelocity(shouldWarpInFromVessel, shouldWarpInFromShip), 31);
|
// Something weird must be happening with velocity.
|
||||||
|
// Try to correct it here after the ship is done spawning
|
||||||
|
Delay.FireInNUpdates(() => FixVelocity(shouldWarpInFromVessel, shouldWarpInFromShip), 31);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void FixVelocity(bool shouldWarpInFromVessel, bool shouldWarpInFromShip)
|
private static void FixVelocity(bool shouldWarpInFromVessel, bool shouldWarpInFromShip)
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends",
|
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends",
|
||||||
"name": "New Horizons",
|
"name": "New Horizons",
|
||||||
"uniqueName": "xen.NewHorizons",
|
"uniqueName": "xen.NewHorizons",
|
||||||
"version": "1.26.0",
|
"version": "1.26.1",
|
||||||
"owmlVersion": "2.12.1",
|
"owmlVersion": "2.12.1",
|
||||||
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
|
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
|
||||||
"conflicts": [ "PacificEngine.OW_CommonResources" ],
|
"conflicts": [ "PacificEngine.OW_CommonResources" ],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user