mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Spawn in bramble (#990)
## Improvements - Allow spawning inside Bramble dimensions (base game spawn point does not work yet)
This commit is contained in:
commit
d5aa088e09
@ -510,13 +510,6 @@ namespace NewHorizons.Handlers
|
||||
// Have to do this after setting position
|
||||
var initialMotion = InitialMotionBuilder.Make(go, primaryBody, ao, owRigidBody, body.Config.Orbit);
|
||||
|
||||
// Spawning on other planets is a bit hacky so we do it last
|
||||
if (body.Config.Spawn != null)
|
||||
{
|
||||
NHLogger.LogVerbose($"Making spawn point on {body.Config.name}");
|
||||
var spawnPoint = SpawnPointBuilder.Make(go, body.Config.Spawn, owRigidBody);
|
||||
}
|
||||
|
||||
if (body.Config.Orbit.showOrbitLine && !body.Config.Orbit.isStatic)
|
||||
{
|
||||
OrbitlineBuilder.Make(body.Object, body.Config.Orbit.isMoon, body.Config);
|
||||
@ -746,6 +739,12 @@ namespace NewHorizons.Handlers
|
||||
SupernovaEffectBuilder.Make(go, sector, body.Config, body.Mod, procGen, ambientLight, fog, atmosphere, null, fog?._fogImpostor);
|
||||
}
|
||||
|
||||
if (body.Config.Spawn != null)
|
||||
{
|
||||
NHLogger.LogVerbose($"Making spawn point on {body.Config.name}");
|
||||
SpawnPointBuilder.Make(go, body.Config.Spawn, rb);
|
||||
}
|
||||
|
||||
// We allow removing children afterwards so you can also take bits off of the modules you used
|
||||
if (body.Config.removeChildren != null) RemoveChildren(go, body);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user