Class AttackerDamageHandler
A wrapper to easily manipulate the behavior of PlayerStatsSystem.DamageHandlerBase.
Inheritance
System.Object
AttackerDamageHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Features.DamageHandlers
Assembly: Exiled.API.dll
Syntax
public abstract class AttackerDamageHandler : DamageHandler
Constructors
| Improve this Doc View SourceAttackerDamageHandler(Player, Player)
Initializes a new instance of the AttackerDamageHandler class.
Declaration
protected AttackerDamageHandler(Player target, Player attacker)
Parameters
Type | Name | Description |
---|---|---|
Player | target | The target to be set. |
Player | attacker | The attacker to be set. |
AttackerDamageHandler(Player, DamageHandlerBase)
Initializes a new instance of the AttackerDamageHandler class.
Declaration
protected AttackerDamageHandler(Player target, DamageHandlerBase baseHandler)
Parameters
Type | Name | Description |
---|---|---|
Player | target | The target to be set. |
PlayerStatsSystem.DamageHandlerBase | baseHandler |
Properties
| Improve this Doc View SourceAllowSelfDamage
Gets a value indicating whether the self damage is allowed.
Declaration
public bool AllowSelfDamage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ForceFullFriendlyFire
Gets or sets a value indicating whether the friendly fire should be forced.
Declaration
public bool ForceFullFriendlyFire { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsFriendlyFire
Gets or sets a value indicating whether the damage is friendly fire.
Declaration
public bool IsFriendlyFire { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSuicide
Gets or sets a value indicating whether the action is due to suicide.
Declaration
public bool IsSuicide { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceProcessDamage(Player)
Computes and processes the damage.
Declaration
public override void ProcessDamage(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The Player to damage. |