Skip to content

Commit

Permalink
Security
Browse files Browse the repository at this point in the history
  • Loading branch information
Misfiy committed Aug 2, 2024
1 parent b884899 commit aca9dfd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion EXILED/Exiled.API/Features/Roles/FpcRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,18 @@ protected FpcRole(FpcStandardRoleBase baseRole)
public FpcStandardRoleBase FirstPersonController { get; }

/// <summary>
/// Gets or sets the player's relative position.
/// Gets or sets the player's relative position as perceived by the server.
/// </summary>
public RelativePosition RelativePosition
{
get => new(Owner.Position);
set => Owner.Position = value.Position;
}

/// <summary>
/// Gets or sets the player's relative position as perceived by the client.
/// </summary>
public RelativePosition ClientRelativePosition
{
get => FirstPersonController.FpcModule.Motor.ReceivedPosition;
set => FirstPersonController.FpcModule.Motor.ReceivedPosition = value;
Expand Down

0 comments on commit aca9dfd

Please sign in to comment.