Class CustomDamageHandler
A wrapper to easily manipulate the behavior of PlayerStatsSystem.DamageHandlerBase.
Inherited Members
Namespace: Exiled.API.Features.DamageHandlers
Assembly: Exiled.API.dll
Syntax
public sealed class CustomDamageHandler : AttackerDamageHandler
Constructors
| Improve this Doc View SourceCustomDamageHandler(Player, Player, Single, DamageType)
Initializes a new instance of the CustomDamageHandler class.
Declaration
public CustomDamageHandler(Player target, Player attacker, float damage, DamageType damageType = DamageType.Unknown)
Parameters
Type | Name | Description |
---|---|---|
Player | target | The target to be set. |
Player | attacker | The attacker to be set. |
System.Single | damage | The amount of damage to be set. |
DamageType | damageType | The DamageType to be set. |
CustomDamageHandler(Player, Player, Single, DamageType, DamageHandlerBase.CassieAnnouncement)
Initializes a new instance of the CustomDamageHandler class.
Declaration
public CustomDamageHandler(Player target, Player attacker, float damage, DamageType damageType, DamageHandlerBase.CassieAnnouncement cassieAnnouncement)
Parameters
Type | Name | Description |
---|---|---|
Player | target | The target to be set. |
Player | attacker | The attacker to be set. |
System.Single | damage | The amount of damage to be set. |
DamageType | damageType | The DamageType to be set. |
DamageHandlerBase.CassieAnnouncement | cassieAnnouncement | The DamageHandlerBase.CassieAnnouncement to be set. |
CustomDamageHandler(Player, Player, Single, DamageType, String)
Initializes a new instance of the CustomDamageHandler class.
Declaration
public CustomDamageHandler(Player target, Player attacker, float damage, DamageType damageType, string cassieAnnouncement)
Parameters
Type | Name | Description |
---|---|---|
Player | target | The target to be set. |
Player | attacker | The attacker to be set. |
System.Single | damage | The amount of damage to be set. |
DamageType | damageType | The DamageType to be set. |
System.String | cassieAnnouncement | The DamageHandlerBase.CassieAnnouncement to be set. |
CustomDamageHandler(Player, DamageHandlerBase)
Initializes a new instance of the CustomDamageHandler class.
Declaration
public CustomDamageHandler(Player target, DamageHandlerBase baseHandler)
Parameters
Type | Name | Description |
---|---|---|
Player | target | The target to be set. |
PlayerStatsSystem.DamageHandlerBase | baseHandler | The base PlayerStatsSystem.DamageHandlerBase. |
Properties
| Improve this Doc View SourceCustomBase
Gets the base DamageHandlerBase.
Declaration
public DamageHandlerBase CustomBase { get; }
Property Value
Type | Description |
---|---|
DamageHandlerBase |
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 |