-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
Co-authored-by: Vladislav-CS <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ namespace Exiled.API.Features.Roles | |
using System.Collections.Generic; | ||
|
||
using Exiled.API.Features.Core.Generic.Pools; | ||
Check failure on line 12 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
Check failure on line 12 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
Check failure on line 12 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
Check failure on line 12 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
Check failure on line 12 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
|
||
using Exiled.API.Extensions; | ||
|
||
using PlayerRoles; | ||
using PlayerRoles.FirstPersonControl; | ||
|
@@ -25,6 +26,7 @@ namespace Exiled.API.Features.Roles | |
public abstract class FpcRole : Role | ||
{ | ||
private bool isUsingStamina = true; | ||
private RoleTypeId fakeAppearance; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="FpcRole"/> class. | ||
|
@@ -218,6 +220,23 @@ public bool IsNoclipEnabled | |
set => Owner.ReferenceHub.playerStats.GetModule<AdminFlagsStat>().SetFlag(AdminFlags.Noclip, value); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating the fake appearance of the player. | ||
/// </summary> | ||
public RoleTypeId? FakeAppearance | ||
{ | ||
get => fakeAppearance; | ||
set | ||
{ | ||
fakeAppearance = value; | ||
Check failure on line 231 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
Check failure on line 231 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
Check failure on line 231 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
Check failure on line 231 in Exiled.API/Features/Roles/FpcRole.cs GitHub Actions / build
|
||
|
||
if (value.HasValue) | ||
Owner.ChangeAppearance(value.Value); | ||
else | ||
Owner.ChangeAppearance(Owner.Role.Type, skipJump: true); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Resets the <see cref="Player"/>'s stamina. | ||
/// </summary> | ||
|