Nitrox icon indicating copy to clipboard operation
Nitrox copied to clipboard

Last minute additions

Open tornac1234 opened this issue 11 months ago • 1 comments

  • [x] Keypad sync fix
  • [x] Fix falling through the Aurora when spawning inside

I might want to add a things or two before release which I'll put in here

tornac1234 avatar Jan 01 '25 14:01 tornac1234

// KeypadMetadata.cs [DataContract] public class KeypadMetadata { // Constructor for serialization. Has to be "protected" for json serialization. protected KeypadMetadata() { }

[DataMember(Order = 2)]
public string PathFromRoot { get; }

// Additional properties and methods as needed

}

// Terrain.cs public class Terrain : MonoBehaviour { private Entities _entities;

// Constructor or initialization method to inject dependencies
public Terrain(Entities entities)
{
    _entities = entities;
}

public void WaitForEntities()
{
    // In case the player is spawned in the air, we need to hold them up while all the entities load around them
    if (Player.main && !Player.main.IsUnderwater() && !Player.main.groundMotor.grounded)
    {
        // Check if the player is inside a subroot or escape pod
        if (!IsInsideSubrootOrEscapePod(Player.main))
        {
            // Logic to hold the player up
        }
    }
}

private bool IsInsideSubrootOrEscapePod(Player player)
{
    // Implement logic to determine if the player is inside a subroot or escape pod
    return false; // Placeholder return value
}

}

Make sure to replace the placeholder logic in IsInsideSubrootOrEscapePod with the actual implementation that checks the player's position relative to the subroot or escape pod.

AtlantaDEV-ui avatar Mar 23 '25 11:03 AtlantaDEV-ui