mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 10:09:31 +00:00
:(
This commit is contained in:
parent
cb088289fb
commit
10a63f6d28
@ -108,20 +108,20 @@ namespace QSB.DeathSync
|
||||
{
|
||||
// Reset player position.
|
||||
var playerBody = Locator.GetPlayerBody();
|
||||
playerBody.WarpToPositionRotation(_playerSpawnPoint.transform.position, _playerSpawnPoint.transform.rotation);
|
||||
playerBody.SetVelocity(_playerSpawnPoint.GetPointVelocity());
|
||||
_playerSpawnPoint.AddObjectToTriggerVolumes(Locator.GetPlayerDetector().gameObject);
|
||||
_playerSpawnPoint.AddObjectToTriggerVolumes(_fluidDetector.gameObject);
|
||||
_playerSpawnPoint.OnSpawnPlayer();
|
||||
playerBody?.WarpToPositionRotation(_playerSpawnPoint.transform.position, _playerSpawnPoint.transform.rotation);
|
||||
playerBody?.SetVelocity(_playerSpawnPoint.GetPointVelocity());
|
||||
_playerSpawnPoint?.AddObjectToTriggerVolumes(Locator.GetPlayerDetector().gameObject);
|
||||
_playerSpawnPoint?.AddObjectToTriggerVolumes(_fluidDetector.gameObject);
|
||||
_playerSpawnPoint?.OnSpawnPlayer();
|
||||
|
||||
// Stop suffocation sound effect.
|
||||
_playerResources.SetValue("_isSuffocating", false);
|
||||
_playerResources?.SetValue("_isSuffocating", false);
|
||||
|
||||
// Reset player health and resources.
|
||||
_playerResources.DebugRefillResources();
|
||||
_playerResources?.DebugRefillResources();
|
||||
|
||||
// Remove space suit.
|
||||
_spaceSuit.RemoveSuit(true);
|
||||
_spaceSuit?.RemoveSuit(true);
|
||||
}
|
||||
|
||||
private SpawnPoint GetSpawnPoint(bool isShip = false)
|
||||
|
Loading…
Reference in New Issue
Block a user