Search Results for

    Show / Hide Table of Contents

    Class HumanRole

    Defines a role that represents a human class.

    Inheritance
    System.Object
    TypeCastObject<Role>
    Role
    FpcRole
    HumanRole
    Implements
    IWrapper<PlayerRoles.PlayerRoleBase>
    Inherited Members
    FpcRole.FirstPersonController
    FpcRole.RelativePosition
    FpcRole.RotationDetected
    FpcRole.WalkingSpeed
    FpcRole.SprintingSpeed
    FpcRole.JumpingSpeed
    FpcRole.CrouchingSpeed
    FpcRole.Velocity
    FpcRole.MovementDetected
    FpcRole.CanSendInputs
    FpcRole.IsInvisible
    FpcRole.IsUsingStamina
    FpcRole.StaminaUsageMultiplier
    FpcRole.StaminaRegenMultiplier
    FpcRole.IsInvisibleFor
    FpcRole.MoveState
    FpcRole.IsCrouching
    FpcRole.IsGrounded
    FpcRole.MovementSpeed
    FpcRole.IsInDarkness
    FpcRole.VerticalRotation
    FpcRole.HorizontalRotation
    FpcRole.IsAfk
    FpcRole.IsHumeShieldedRole
    FpcRole.IsNoclipEnabled
    FpcRole.ResetStamina(Boolean)
    Role.Owner
    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 class HumanRole : FpcRole, IWrapper<PlayerRoleBase>

    Properties

    | Improve this Doc View Source

    Base

    Gets the game PlayerRoles.HumanRole.

    Declaration
    public HumanRole Base { get; }
    Property Value
    Type Description
    PlayerRoles.HumanRole
    | Improve this Doc View Source

    SpawnableTeamType

    Gets or sets the SpawnableTeamType.

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

    Type

    Declaration
    public override RoleTypeId Type { get; }
    Property Value
    Type Description
    PlayerRoles.RoleTypeId
    Overrides
    Role.Type
    | Improve this Doc View Source

    UnitName

    Gets the player's unit name.

    Declaration
    public string UnitName { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    UnitNameId

    Gets or sets the UnitNameId.

    Declaration
    public byte UnitNameId { get; set; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    UsesUnitNames

    Gets a value indicating whether the HumanRole uses unit names or not.

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

    Methods

    | Improve this Doc View Source

    GetArmorEfficacy(HitboxType)

    Gets the HumanRole armor efficacy based on a specific HitboxType and the armor the Owner is wearing.

    Declaration
    public int GetArmorEfficacy(HitboxType hitbox)
    Parameters
    Type Name Description
    HitboxType hitbox

    The HitboxType.

    Returns
    Type Description
    System.Int32

    The armor efficacy.

    Implements

    IWrapper<T>

    Extension Methods

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