Class AttackerDamageHandler
- Namespace
- Exiled.API.Features.DamageHandlers
- Assembly
- Exiled.API.dll
A wrapper to easily manipulate the behavior of PlayerStatsSystem.DamageHandlerBase.
public abstract class AttackerDamageHandler : DamageHandler
- Inheritance
-
AttackerDamageHandler
- Derived
- Inherited Members
- Extension Methods
Constructors
AttackerDamageHandler(Player, Player)
Initializes a new instance of the AttackerDamageHandler class.
protected AttackerDamageHandler(Player target, Player attacker)
Parameters
AttackerDamageHandler(Player, DamageHandlerBase)
Initializes a new instance of the AttackerDamageHandler class.
protected AttackerDamageHandler(Player target, DamageHandlerBase baseHandler)
Parameters
target
PlayerThe target to be set.
baseHandler
DamageHandlerBase
Properties
AllowSelfDamage
Gets a value indicating whether the self damage is allowed.
public bool AllowSelfDamage { get; }
Property Value
ForceFullFriendlyFire
Gets or sets a value indicating whether the friendly fire should be forced.
public bool ForceFullFriendlyFire { get; set; }
Property Value
IsFriendlyFire
Gets or sets a value indicating whether the damage is friendly fire.
public bool IsFriendlyFire { get; set; }
Property Value
IsSuicide
Gets or sets a value indicating whether the action is due to suicide.
public bool IsSuicide { get; set; }
Property Value
Methods
ProcessDamage(Player)
Computes and processes the damage.
public override void ProcessDamage(Player player)