Search Results for

    Show / Hide Table of Contents

    Class FpcRole

    Defines a role that represents an fpc class.

    Inheritance
    System.Object
    TypeCastObject<Role>
    Role
    FpcRole
    HumanRole
    Scp0492Role
    Scp049Role
    Scp096Role
    Scp106Role
    Scp173Role
    Scp3114Role
    Scp939Role
    Implements
    IWrapper<PlayerRoles.PlayerRoleBase>
    Inherited Members
    Role.Owner
    Role.Type
    Role.Base
    Role.SpawnReason
    Role.SpawnFlags
    Role.Team
    Role.Side
    Role.Color
    Role.Name
    Role.ActiveTime
    Role.IsDead
    Role.IsAlive
    Role.IsValid
    Role.RandomSpawnLocation
    Role.Equals(Object)
    Role.ToString()
    Role.GetHashCode()
    Role.Set(RoleTypeId, SpawnReason)
    Role.Set(RoleTypeId, RoleSpawnFlags)
    Role.Set(RoleTypeId, SpawnReason, RoleSpawnFlags)
    TypeCastObject<Role>.Cast<TObject>()
    TypeCastObject<Role>.Cast<TObject>(TObject)
    TypeCastObject<Role>.As<TObject>()
    TypeCastObject<Role>.Is<TObject>(TObject)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.API.Features.Roles
    Assembly: Exiled.API.dll
    Syntax
    public abstract class FpcRole : Role, IWrapper<PlayerRoleBase>

    Constructors

    | Improve this Doc View Source

    FpcRole(FpcStandardRoleBase)

    Initializes a new instance of the FpcRole class.

    Declaration
    protected FpcRole(FpcStandardRoleBase baseRole)
    Parameters
    Type Name Description
    PlayerRoles.FirstPersonControl.FpcStandardRoleBase baseRole

    the base PlayerRoles.PlayerRoleBase.

    Properties

    | Improve this Doc View Source

    CanSendInputs

    Gets a value indicating whether or not the player can send inputs.

    Declaration
    public bool CanSendInputs { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CrouchingSpeed

    Gets or sets the Role crouching speed.

    Declaration
    public float CrouchingSpeed { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    FirstPersonController

    Gets the FirstPersonController.

    Declaration
    public FpcStandardRoleBase FirstPersonController { get; }
    Property Value
    Type Description
    PlayerRoles.FirstPersonControl.FpcStandardRoleBase
    | Improve this Doc View Source

    HorizontalRotation

    Gets the Player's horizontal rotation.

    Declaration
    public float HorizontalRotation { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    IsAfk

    Gets a value indicating whether or not the Player is AFK.

    Declaration
    public bool IsAfk { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsCrouching

    Gets a value indicating whether the Player is crouching or not.

    Declaration
    public bool IsCrouching { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsGrounded

    Gets a value indicating whether or not the player is on the ground.

    Declaration
    public bool IsGrounded { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsHumeShieldedRole

    Gets a value indicating whether or not this role is protected by a hume shield.

    Declaration
    public bool IsHumeShieldedRole { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsInDarkness

    Gets a value indicating whether or not the Player is in darkness.

    Declaration
    public bool IsInDarkness { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsInvisible

    Gets or sets a value indicating whether or not the player is invisible.

    Declaration
    public bool IsInvisible { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsInvisibleFor

    Gets a list of players who can't see the player.

    Declaration
    public HashSet<Player> IsInvisibleFor { get; }
    Property Value
    Type Description
    System.Collections.Generic.HashSet<Player>
    | Improve this Doc View Source

    IsNoclipEnabled

    Gets or sets a value indicating whether or not the player has noclip enabled.

    Declaration
    public bool IsNoclipEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    System.Boolean indicating status.

    Remarks

    For permitting a player to enter and exit noclip freely, see IsNoclipPermitted.

    See Also
    IsNoclipPermitted
    | Improve this Doc View Source

    IsUsingStamina

    Gets or sets a value indicating whether or not the player should use stamina system. Resets on death.

    Declaration
    public bool IsUsingStamina { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    JumpingSpeed

    Gets or sets the Role jumping speed.

    Declaration
    public float JumpingSpeed { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    MovementDetected

    Gets or sets a value indicating whether if a movement is detected on a Player.

    Declaration
    public bool MovementDetected { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MovementSpeed

    Gets the Player's current movement speed.

    Declaration
    public virtual float MovementSpeed { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    MoveState

    Gets or sets the player's current PlayerRoles.FirstPersonControl.PlayerMovementState.

    Declaration
    public PlayerMovementState MoveState { get; set; }
    Property Value
    Type Description
    PlayerRoles.FirstPersonControl.PlayerMovementState
    | Improve this Doc View Source

    RelativePosition

    Gets or sets the player's relative position.

    Declaration
    public RelativePosition RelativePosition { get; set; }
    Property Value
    Type Description
    RelativePositioning.RelativePosition
    | Improve this Doc View Source

    RotationDetected

    Gets or sets a value indicating whether if a rotation is detected on the player.

    Declaration
    public bool RotationDetected { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    SprintingSpeed

    Gets or sets the Role sprinting speed.

    Declaration
    public float SprintingSpeed { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    StaminaRegenMultiplier

    Gets or sets the stamina regen multiplier. Resets on death.

    Declaration
    public float StaminaRegenMultiplier { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    StaminaUsageMultiplier

    Gets or sets the stamina usage multiplier. Resets on death.

    Declaration
    public float StaminaUsageMultiplier { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Velocity

    Gets or sets the Player velocity.

    Declaration
    public Vector3 Velocity { get; set; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    VerticalRotation

    Gets the Player's vertical rotation.

    Declaration
    public float VerticalRotation { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    WalkingSpeed

    Gets or sets the Role walking speed.

    Declaration
    public float WalkingSpeed { get; set; }
    Property Value
    Type Description
    System.Single

    Methods

    | Improve this Doc View Source

    Finalize()

    Finalizes an instance of the FpcRole class.

    Declaration
    protected void Finalize()
    | Improve this Doc View Source

    ResetStamina(Boolean)

    Resets the Player's stamina.

    Declaration
    public void ResetStamina(bool multipliers = false)
    Parameters
    Type Name Description
    System.Boolean multipliers

    Resets StaminaUsageMultiplier and StaminaRegenMultiplier.

    Implements

    IWrapper<T>

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX