Class Scp049Role
Defines a role that represents SCP-049.
Inherited Members
Namespace: Exiled.API.Features.Roles
Assembly: Exiled.API.dll
Syntax
public class Scp049Role : FpcRole, IWrapper<PlayerRoleBase>, ISubroutinedScpRole, IHumeShieldRole
Properties
| Improve this Doc View SourceAttackAbility
Gets SCP-049's PlayerRoles.PlayableScps.Scp049.Scp049AttackAbility.
Declaration
public Scp049AttackAbility AttackAbility { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.PlayableScps.Scp049.Scp049AttackAbility |
Base
Gets the PlayerRoles.PlayableScps.Scp049.Scp049Role instance.
Declaration
public Scp049Role Base { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.PlayableScps.Scp049.Scp049Role |
CallAbility
Gets SCP-049's PlayerRoles.PlayableScps.Scp049.Scp049CallAbility.
Declaration
public Scp049CallAbility CallAbility { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.PlayableScps.Scp049.Scp049CallAbility |
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 |
DeadZombies
Gets all the dead zombies.
Declaration
public IEnumerable<Player> DeadZombies { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Player> |
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 |
HumeShieldModule
Declaration
public HumeShieldModuleBase HumeShieldModule { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.PlayableScps.HumeShield.HumeShieldModuleBase |
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 |
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 |
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 |
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 |
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 |
RemainingCallDuration
Gets or sets the duration of the PlayerRoles.PlayableScps.Scp049.Scp049CallAbility.
Declaration
public float RemainingCallDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
RemainingGoodSenseDuration
Gets or sets the duration of the PlayerRoles.PlayableScps.Scp049.Scp049SenseAbility.
Declaration
public float RemainingGoodSenseDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
ResurrectAbility
Gets SCP-049's PlayerRoles.PlayableScps.Scp049.Scp049ResurrectAbility.
Declaration
public Scp049ResurrectAbility ResurrectAbility { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.PlayableScps.Scp049.Scp049ResurrectAbility |
ResurrectedPlayers
Gets all the resurrected players.
Declaration
public Dictionary<Player, int> ResurrectedPlayers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<Player, System.Int32> |
SenseAbility
Gets SCP-049's PlayerRoles.PlayableScps.Scp049.Scp049SenseAbility.
Declaration
public Scp049SenseAbility SenseAbility { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.PlayableScps.Scp049.Scp049SenseAbility |
SenseDistance
Gets or sets the distance of the Sense Ability.
Declaration
public float SenseDistance { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
SubroutineModule
Declaration
public SubroutineManagerModule SubroutineModule { get; }
Property Value
Type | Description |
---|---|
SubroutineManagerModule |
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> |
Type
Declaration
public override RoleTypeId Type { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.RoleTypeId |
Overrides
Methods
| Improve this Doc View SourceAttack(Player)
Attacks a Player.
Declaration
public void Attack(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The Playerto attack. |
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. |
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. |
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. |
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. |
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.
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.
LoseSenseTarget()
Lose the current target of the Good Sense ability.
Declaration
public void LoseSenseTarget()
RefreshCallDuration()
Refresh the PlayerRoles.PlayableScps.Scp049.Scp049CallAbility duration.
Declaration
public void RefreshCallDuration()
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. |
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. |
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. |