Table of Contents

Class DamageHandler

Namespace
Exiled.API.Features.DamageHandlers
Assembly
Exiled.API.dll

A wrapper to easily manipulate the behavior of the PlayerStatsSystem.DamageHandlerBase.

public class DamageHandler : DamageHandlerBase
Inheritance
DamageHandler
Derived
Inherited Members
Extension Methods

Constructors

DamageHandler()

Initializes a new instance of the DamageHandler class.

public DamageHandler()

DamageHandler(Player, Player)

Initializes a new instance of the DamageHandler class.

public DamageHandler(Player target, Player attacker)

Parameters

target Player

The target to be set.

attacker Player

The attacker to be set.

DamageHandler(Player, DamageHandlerBase)

Initializes a new instance of the DamageHandler class.

public DamageHandler(Player target, DamageHandlerBase baseHandler)

Parameters

target Player

The target to be set.

baseHandler DamageHandlerBase

Properties

AbsorbedAhpDamage

Gets or sets the damage absorbed by AHP processes.

public float AbsorbedAhpDamage { get; set; }

Property Value

float

Attacker

Gets or sets the Player attacker. CAN BE NULL!.

public Player Attacker { get; set; }

Property Value

Player

AttackerFootprint

Gets or sets the attacker's Footprinting.Footprint.

public Footprint AttackerFootprint { get; protected set; }

Property Value

Footprint

Damage

Gets or sets the amount of damage to be dealt.

public virtual float Damage { get; set; }

Property Value

float

DealtHealthDamage

Gets or sets the direct damage.

public float DealtHealthDamage { get; set; }

Property Value

float

StartVelocity

Gets or sets the start velocity.

public Vector3 StartVelocity { get; set; }

Property Value

Vector3

Target

Gets or sets the Player target.

public Player Target { get; protected set; }

Property Value

Player

TargetFootprint

Gets or sets the target's Footprinting.Footprint.

public Footprint TargetFootprint { get; protected set; }

Property Value

Footprint

Methods

ApplyDamage(Player)

Applies the damage to the specified Player.

public override DamageHandlerBase.Action ApplyDamage(Player player)

Parameters

player Player

The Player to damage.

Returns

DamageHandlerBase.Action

The DamageHandlerBase.Action of the call to this method.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.