mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Update ShipWarpController.cs
This commit is contained in:
parent
608370697b
commit
12a50df39f
@ -167,14 +167,14 @@ namespace NewHorizons.Components
|
||||
Player.getResources()._currentHealth = 100f;
|
||||
Locator.GetDeathManager()._invincible = false;
|
||||
|
||||
// For some reason warping in with a suit means you suffocate while in the ship
|
||||
// For some reason warping into the ship makes you suffocate while in the ship
|
||||
if(_wearingSuit) Player.getResources().OnSuitUp();
|
||||
var o2Volume = Locator.GetShipBody().GetComponent<OxygenVolume>();
|
||||
var atmoVolume = GameObject.Find("Ship_Body/Volumes/ShipAtmosphereVolume").GetComponent<SimpleFluidVolume>();
|
||||
|
||||
//Player.getResources()._oxygenDetector.AddVolume(o2Volume);
|
||||
Player.getResources()._cameraFluidDetector.AddVolume(atmoVolume);
|
||||
//Player.getResources()._fluidDetector.AddVolume(atmoVolume);
|
||||
Player.getResources()._cameraFluidDetector.OnVolumeAdded(atmoVolume);
|
||||
Player.getResources()._cameraFluidDetector.OnVolumeActivated(atmoVolume);
|
||||
|
||||
GlobalMessenger.FireEvent("EnterShip");
|
||||
PlayerState.OnEnterShip();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user