Search Results for

    Show / Hide Table of Contents

    Class Scp049Role

    Defines a role that represents SCP-049.

    Inheritance
    System.Object
    TypeCastObject<Role>
    Role
    FpcRole
    Scp049Role
    Implements
    IWrapper<PlayerRoles.PlayerRoleBase>
    ISubroutinedScpRole
    IHumeShieldRole
    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 Scp049Role : FpcRole, IWrapper<PlayerRoleBase>, ISubroutinedScpRole, IHumeShieldRole

    Properties

    | Improve this Doc View Source

    AttackAbility

    Gets SCP-049's PlayerRoles.PlayableScps.Scp049.Scp049AttackAbility.

    Declaration
    public Scp049AttackAbility AttackAbility { get; }
    Property Value
    Type Description
    PlayerRoles.PlayableScps.Scp049.Scp049AttackAbility
    | Improve this Doc View Source

    Base

    Gets the PlayerRoles.PlayableScps.Scp049.Scp049Role instance.

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

    CallAbility

    Gets SCP-049's PlayerRoles.PlayableScps.Scp049.Scp049CallAbility.

    Declaration
    public Scp049CallAbility CallAbility { get; }
    Property Value
    Type Description
    PlayerRoles.PlayableScps.Scp049.Scp049CallAbility
    | Improve this Doc View Source

    CallCooldown

    Gets or sets the amount of time before SCP-049 can use its Doctor's Call ability again.

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

    DeadZombies

    Gets all the dead zombies.

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

    GoodSenseCooldown

    Gets or sets the amount of time before SCP-049 can use its Good Sense of the Doctor ability again.

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

    HumeShieldModule

    Declaration
    public HumeShieldModuleBase HumeShieldModule { get; }
    Property Value
    Type Description
    PlayerRoles.PlayableScps.HumeShield.HumeShieldModuleBase
    | Improve this Doc View Source

    IsCallActive

    Gets a value indicating whether or not SCP-049's "Doctor's Call" ability is currently active.

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

    IsRecalling

    Gets a value indicating whether or not SCP-049 is currently reviving a player.

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

    RecallingPlayer

    Gets the player that is currently being revived by SCP-049. Will be null if IsRecalling is false.

    Declaration
    public Player RecallingPlayer { get; }
    Property Value
    Type Description
    Player
    | Improve this Doc View Source

    RecallingRagdoll

    Gets the ragdoll that is currently being revived by SCP-049. Will be null if IsRecalling is false.

    Declaration
    public Ragdoll RecallingRagdoll { get; }
    Property Value
    Type Description
    Ragdoll
    | Improve this Doc View Source

    RemainingAttackCooldown

    Gets or sets the amount of time before SCP-049 can attack again.

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

    RemainingCallDuration

    Gets or sets the duration of the PlayerRoles.PlayableScps.Scp049.Scp049CallAbility.

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

    RemainingGoodSenseDuration

    Gets or sets the duration of the PlayerRoles.PlayableScps.Scp049.Scp049SenseAbility.

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

    ResurrectAbility

    Gets SCP-049's PlayerRoles.PlayableScps.Scp049.Scp049ResurrectAbility.

    Declaration
    public Scp049ResurrectAbility ResurrectAbility { get; }
    Property Value
    Type Description
    PlayerRoles.PlayableScps.Scp049.Scp049ResurrectAbility
    | Improve this Doc View Source

    ResurrectedPlayers

    Gets all the resurrected players.

    Declaration
    public Dictionary<Player, int> ResurrectedPlayers { get; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<Player, System.Int32>
    | Improve this Doc View Source

    SenseAbility

    Gets SCP-049's PlayerRoles.PlayableScps.Scp049.Scp049SenseAbility.

    Declaration
    public Scp049SenseAbility SenseAbility { get; }
    Property Value
    Type Description
    PlayerRoles.PlayableScps.Scp049.Scp049SenseAbility
    | Improve this Doc View Source

    SenseDistance

    Gets or sets the distance of the Sense Ability.

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

    SubroutineModule

    Declaration
    public SubroutineManagerModule SubroutineModule { get; }
    Property Value
    Type Description
    SubroutineManagerModule
    | Improve this Doc View Source

    TurnedPlayers

    Gets a list of players who are turned away from SCP-049 Sense Ability.

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

    Type

    Declaration
    public override RoleTypeId Type { get; }
    Property Value
    Type Description
    PlayerRoles.RoleTypeId
    Overrides
    Role.Type

    Methods

    | Improve this Doc View Source

    Attack(Player)

    Attacks a Player.

    Declaration
    public void Attack(Player player)
    Parameters
    Type Name Description
    Player player

    The Playerto attack.

    | Improve this Doc View Source

    CanResurrect(Ragdoll)

    Returns a langword_csharp_bool indicating whether or not the ragdoll can be resurrected by SCP-049.

    Declaration
    public bool CanResurrect(Ragdoll ragdoll)
    Parameters
    Type Name Description
    Ragdoll ragdoll

    The ragdoll to check.

    Returns
    Type Description
    System.Boolean

    true if the body can be revived; otherwise, false.

    | Improve this Doc View Source

    CanResurrect(BasicRagdoll)

    Returns a langword_csharp_bool indicating whether or not the ragdoll can be resurrected by SCP-049.

    Declaration
    public bool CanResurrect(BasicRagdoll ragdoll)
    Parameters
    Type Name Description
    PlayerRoles.Ragdolls.BasicRagdoll ragdoll

    The ragdoll to check.

    Returns
    Type Description
    System.Boolean

    true if the body can be revived; otherwise, false.

    | Improve this Doc View Source

    GetResurrectionCount(Player)

    Gets the amount of resurrections of a Player.

    Declaration
    public int GetResurrectionCount(Player player)
    Parameters
    Type Name Description
    Player player

    The Playerto check.

    Returns
    Type Description
    System.Int32

    The amount of resurrections of the checked player.

    | Improve this Doc View Source

    GetSpawnChance(List<RoleTypeId>)

    Gets the Spawn Chance of SCP-049.

    Declaration
    public float GetSpawnChance(List<RoleTypeId> alreadySpawned)
    Parameters
    Type Name Description
    System.Collections.Generic.List<PlayerRoles.RoleTypeId> alreadySpawned

    The List of Roles already spawned.

    Returns
    Type Description
    System.Single

    The Spawn Chance.

    | Improve this Doc View Source

    IsInRecallRange(Ragdoll)

    Returns a langword_csharp_bool indicating whether or not SCP-049 is close enough to a ragdoll to revive it.

    Declaration
    public bool IsInRecallRange(Ragdoll ragdoll)
    Parameters
    Type Name Description
    Ragdoll ragdoll

    The ragdoll to check.

    Returns
    Type Description
    System.Boolean

    true if close enough to revive the body; otherwise, false.

    Remarks

    This method only returns whether or not SCP-049 is close enough to the body to revive it; the body may have expired. Make sure to check CanResurrect(Ragdoll) to ensure the body can be revived.

    | Improve this Doc View Source

    IsInRecallRange(BasicRagdoll)

    Returns a langword_csharp_bool indicating whether or not SCP-049 is close enough to a ragdoll to revive it.

    Declaration
    public bool IsInRecallRange(BasicRagdoll ragdoll)
    Parameters
    Type Name Description
    PlayerRoles.Ragdolls.BasicRagdoll ragdoll

    The ragdoll to check.

    Returns
    Type Description
    System.Boolean

    true if close enough to revive the body; otherwise, false.

    Remarks

    This method only returns whether or not SCP-049 is close enough to the body to revive it; the body may have expired. Make sure to check CanResurrect(BasicRagdoll) to ensure the body can be revived.

    | Improve this Doc View Source

    LoseSenseTarget()

    Lose the current target of the Good Sense ability.

    Declaration
    public void LoseSenseTarget()
    | Improve this Doc View Source

    RefreshCallDuration()

    Refresh the PlayerRoles.PlayableScps.Scp049.Scp049CallAbility duration.

    Declaration
    public void RefreshCallDuration()
    | Improve this Doc View Source

    Resurrect(Player)

    Resurrects a Player.

    Declaration
    public bool Resurrect(Player player)
    Parameters
    Type Name Description
    Player player

    The Playerto resurrect.

    Returns
    Type Description
    System.Boolean

    The Resurrected player.

    | Improve this Doc View Source

    Resurrect(Ragdoll)

    Resurrects a Ragdoll owner.

    Declaration
    public bool Resurrect(Ragdoll ragdoll)
    Parameters
    Type Name Description
    Ragdoll ragdoll

    The Ragdoll to resurrect.

    Returns
    Type Description
    System.Boolean

    The Resurrected Ragdoll.

    | Improve this Doc View Source

    Sense(Player)

    Trigger the Sense Ability on the specified Player.

    Declaration
    public void Sense(Player player)
    Parameters
    Type Name Description
    Player player

    The Player to sense.

    Implements

    IWrapper<T>
    ISubroutinedScpRole
    IHumeShieldRole

    Extension Methods

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