Superfighters Deluxe
ProjectileHitArgs Struct Reference

ProjectileHitCallback.Event arguments More...

Public Member Functions

 ProjectileHitArgs (int hitObjectID, bool isPlayer, float damage, bool isCrit, Vector2 hitPosition, Vector2 hitNormal)
 
 ProjectileHitArgs (int hitObjectID, bool isPlayer, float damage, bool isCrit, Vector2 hitPosition, Vector2 hitNormal, bool removeFlag)
 
 ProjectileHitArgs (int hitObjectID, bool isPlayer, float damage, bool isCrit, Vector2 hitPosition, Vector2 hitNormal, bool removeFlag, bool isDeflection, Vector2 deflectionNormal)
 

Public Attributes

readonly float Damage
 Gets the dealt damage amount from the projectile, affected by modifiers and other stats. More...
 
readonly Vector2 DeflectionNormal
 Gets the deflection normal if this is a deflection. Check HitObjectID what this is deflected on. Returns Vector2.Zero if it's not a deflection. More...
 
readonly Vector2 HitNormal
 Gets the hit normal. More...
 
readonly int HitObjectID
 Gets the hit object UniqueID. More...
 
readonly Vector2 HitPosition
 Gets the hit position. More...
 
readonly bool IsCrit
 Gets if the projectile was a crit. Applicable against alive players. More...
 
readonly bool IsDeflection
 Gets if this is a deflection. Check HitObjectID what this is deflected on. More...
 
readonly bool IsPlayer
 Gets if the hit object is a player instance. More...
 
readonly bool RemoveFlag
 Gets if the projectile is to be removed due to a hit. When true the projectile will be absorbed and removed by the hit. More...
 

Detailed Description

ProjectileHitCallback.Event arguments

Member Data Documentation

◆ Damage

readonly float Damage

Gets the dealt damage amount from the projectile, affected by modifiers and other stats.

◆ DeflectionNormal

readonly Vector2 DeflectionNormal

Gets the deflection normal if this is a deflection. Check HitObjectID what this is deflected on. Returns Vector2.Zero if it's not a deflection.

◆ HitNormal

readonly Vector2 HitNormal

Gets the hit normal.

◆ HitObjectID

readonly int HitObjectID

Gets the hit object UniqueID.

◆ HitPosition

readonly Vector2 HitPosition

Gets the hit position.

◆ IsCrit

readonly bool IsCrit

Gets if the projectile was a crit. Applicable against alive players.

◆ IsDeflection

readonly bool IsDeflection

Gets if this is a deflection. Check HitObjectID what this is deflected on.

◆ IsPlayer

readonly bool IsPlayer

Gets if the hit object is a player instance.

◆ RemoveFlag

readonly bool RemoveFlag

Gets if the projectile is to be removed due to a hit. When true the projectile will be absorbed and removed by the hit.