Class DamageHandler
A wrapper to easily manipulate the behavior of the PlayerStatsSystem.DamageHandlerBase.
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 class DamageHandler : DamageHandlerBase
Constructors
| Improve this Doc View SourceDamageHandler()
Initializes a new instance of the DamageHandler class.
Declaration
public DamageHandler()
DamageHandler(Player, Player)
Initializes a new instance of the DamageHandler class.
Declaration
public DamageHandler(Player target, Player attacker)
Parameters
Type | Name | Description |
---|---|---|
Player | target | The target to be set. |
Player | attacker | The attacker to be set. |
DamageHandler(Player, DamageHandlerBase)
Initializes a new instance of the DamageHandler class.
Declaration
public DamageHandler(Player target, DamageHandlerBase baseHandler)
Parameters
Type | Name | Description |
---|---|---|
Player | target | The target to be set. |
PlayerStatsSystem.DamageHandlerBase | baseHandler |
Properties
| Improve this Doc View SourceAbsorbedAhpDamage
Gets or sets the damage absorbed by AHP processes.
Declaration
public float AbsorbedAhpDamage { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Attacker
Gets or sets the Player attacker. CAN BE NULL!.
Declaration
public Player Attacker { get; set; }
Property Value
Type | Description |
---|---|
Player |
AttackerFootprint
Gets or sets the attacker's Footprinting.Footprint.
Declaration
public Footprint AttackerFootprint { get; protected set; }
Property Value
Type | Description |
---|---|
Footprinting.Footprint |
Damage
Gets or sets the amount of damage to be dealt.
Declaration
public virtual float Damage { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
DealtHealthDamage
Gets or sets the direct damage.
Declaration
public float DealtHealthDamage { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
StartVelocity
Gets or sets the start velocity.
Declaration
public Vector3 StartVelocity { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Target
Gets or sets the Player target.
Declaration
public Player Target { get; protected set; }
Property Value
Type | Description |
---|---|
Player |
TargetFootprint
Gets or sets the target's Footprinting.Footprint.
Declaration
public Footprint TargetFootprint { get; protected set; }
Property Value
Type | Description |
---|---|
Footprinting.Footprint |
Methods
| Improve this Doc View SourceApplyDamage(Player)
Declaration
public override DamageHandlerBase.Action ApplyDamage(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player |
Returns
Type | Description |
---|---|
DamageHandlerBase.Action |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()