Class GenericDamageHandler
Allows generic damage to a player.
Inheritance
System.Object
PlayerStatsSystem.DamageHandlerBase
PlayerStatsSystem.StandardDamageHandler
PlayerStatsSystem.CustomReasonDamageHandler
GenericDamageHandler
Inherited Members
PlayerStatsSystem.CustomReasonDamageHandler.<Damage>k__BackingField
PlayerStatsSystem.CustomReasonDamageHandler._deathReason
PlayerStatsSystem.CustomReasonDamageHandler._cassieAnnouncement
PlayerStatsSystem.CustomReasonDamageHandler.WriteAdditionalData(Mirror.NetworkWriter)
PlayerStatsSystem.CustomReasonDamageHandler.ReadAdditionalData(Mirror.NetworkReader)
PlayerStatsSystem.CustomReasonDamageHandler.CassieDeathAnnouncement
PlayerStatsSystem.StandardDamageHandler.<DealtHealthDamage>k__BackingField
PlayerStatsSystem.StandardDamageHandler.<AbsorbedAhpDamage>k__BackingField
PlayerStatsSystem.StandardDamageHandler.<AbsorbedHumeDamage>k__BackingField
PlayerStatsSystem.StandardDamageHandler.KillValue
PlayerStatsSystem.StandardDamageHandler.Hitbox
PlayerStatsSystem.StandardDamageHandler.StartVelocity
PlayerStatsSystem.StandardDamageHandler._velX
PlayerStatsSystem.StandardDamageHandler._velY
PlayerStatsSystem.StandardDamageHandler._velZ
PlayerStatsSystem.StandardDamageHandler.ProcessDamage(ReferenceHub)
PlayerStatsSystem.StandardDamageHandler.ProcessRagdoll(PlayerRoles.Ragdolls.BasicRagdoll)
PlayerStatsSystem.StandardDamageHandler.DealtHealthDamage
PlayerStatsSystem.StandardDamageHandler.AbsorbedAhpDamage
PlayerStatsSystem.StandardDamageHandler.AbsorbedHumeDamage
PlayerStatsSystem.DamageHandlerBase.WriteDeathScreen(Mirror.NetworkWriter)
System.Object.ToString()
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 GenericDamageHandler : CustomReasonDamageHandler
Constructors
| Improve this Doc View SourceGenericDamageHandler(Player, Player, Single, DamageType, DamageHandlerBase.CassieAnnouncement, String)
Initializes a new instance of the GenericDamageHandler class. Transform input data to custom generic handler.
Declaration
public GenericDamageHandler(Player player, Player attacker, float damage, DamageType damageType, DamageHandlerBase.CassieAnnouncement cassieAnnouncement, string damageText = null)
Parameters
Type | Name | Description |
---|---|---|
Player | player | Current player (Target). |
Player | attacker | Attacker. |
System.Single | damage | Damage quantity. |
DamageType | damageType | Damage type. |
DamageHandlerBase.CassieAnnouncement | cassieAnnouncement | Custom cassie announcment. |
System.String | damageText | Text to provide to player death screen. |
Properties
| Improve this Doc View SourceAllowSelfDamage
Gets a value indicating whether allow self damage.
Declaration
public bool AllowSelfDamage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Attacker
Gets or sets the current attacker.
Declaration
public Footprint Attacker { get; set; }
Property Value
Type | Description |
---|---|
Footprinting.Footprint |
Base
Gets or sets a custom base.
Declaration
public DamageHandlerBase Base { get; set; }
Property Value
Type | Description |
---|---|
PlayerStatsSystem.DamageHandlerBase |
Damage
Declaration
public override float Damage { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Overrides
PlayerStatsSystem.CustomReasonDamageHandler.Damage
|
Improve this Doc
View Source
ServerLogsText
Declaration
public override string ServerLogsText { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
PlayerStatsSystem.CustomReasonDamageHandler.ServerLogsText
Methods
| Improve this Doc View SourceApplyDamage(ReferenceHub)
Custom Exiled process damage.
Declaration
public override DamageHandlerBase.HandlerOutput ApplyDamage(ReferenceHub ply)
Parameters
Type | Name | Description |
---|---|---|
ReferenceHub | ply | Current player hub. |
Returns
Type | Description |
---|---|
PlayerStatsSystem.DamageHandlerBase.HandlerOutput | Handles processing damage outcome. |
Overrides
PlayerStatsSystem.StandardDamageHandler.ApplyDamage(ReferenceHub)