Class EOS_AntiCheatCommon_LogPlayerTakeDamageOptions

java.lang.Object
com.sun.jna.Structure
host.anzo.eossdk.eos.sdk.anticheat.common.options.EOS_AntiCheatCommon_LogPlayerTakeDamageOptions
Direct Known Subclasses:
EOS_AntiCheatCommon_LogPlayerTakeDamageOptions.ByReference, EOS_AntiCheatCommon_LogPlayerTakeDamageOptions.ByValue

@FieldOrder({"ApiVersion","VictimPlayerHandle","VictimPlayerPosition","VictimPlayerViewRotation","AttackerPlayerHandle","AttackerPlayerPosition","AttackerPlayerViewRotation","IsHitscanAttack","HasLineOfSight","IsCriticalHit","HitBoneId_DEPRECATED","DamageTaken","HealthRemaining","DamageSource","DamageType","DamageResult","PlayerUseWeaponData","TimeSincePlayerUseWeaponMs","DamagePosition"}) public class EOS_AntiCheatCommon_LogPlayerTakeDamageOptions extends com.sun.jna.Structure
Since:
8/5/2023
  • Field Details

    • EOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST

      public static int EOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST
    • ApiVersion

      public int ApiVersion
      API Version: Set this to EOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST.
    • VictimPlayerHandle

      public EOS_AntiCheatCommon_ClientHandle VictimPlayerHandle
      Locally unique value used in RegisterClient/RegisterPeer
    • VictimPlayerPosition

      public EOS_AntiCheatCommon_Vec3f.ByReference VictimPlayerPosition
      Victim player's current world position as a 3D vector
    • VictimPlayerViewRotation

      public EOS_AntiCheatCommon_Quat.ByReference VictimPlayerViewRotation
      Victim player's view rotation as a quaternion
    • AttackerPlayerHandle

      public EOS_AntiCheatCommon_ClientHandle AttackerPlayerHandle
      Locally unique value used in RegisterClient/RegisterPeer if applicable, otherwise 0.
    • AttackerPlayerPosition

      public EOS_AntiCheatCommon_Vec3f.ByReference AttackerPlayerPosition
      Attacker player's current world position as a 3D vector if applicable, otherwise NULL.
    • AttackerPlayerViewRotation

      public EOS_AntiCheatCommon_Quat.ByReference AttackerPlayerViewRotation
      Attacker player's view rotation as a quaternion if applicable, otherwise NULL.
    • IsHitscanAttack

      public EOS_Bool IsHitscanAttack
      EOS_Bool.EOS_TRUE if the damage was applied instantly at the time of attack from the game simulation's perspective, otherwise EOS_Bool.EOS_FALSE (simulated ballistics, arrow, etc).
    • HasLineOfSight

      public int HasLineOfSight
      True if there is a visible line of sight between the attacker and the victim at the time that damage is being applied, false if there is an obstacle like a wall or terrain in the way. For some situations like melee or hitscan weapons this is trivially true, for others like projectiles with simulated physics it may not be e.g. a player could fire a slow moving projectile and then move behind cover before it strikes.

      This can be an estimate, or can simply be always set to true if it is not feasible to compute in your game.

    • IsCriticalHit

      public EOS_Bool IsCriticalHit
      EOS_Bool.EOS_TRUE if this was a critical hit that causes extra damage (e.g. headshot)
    • HitBoneId_DEPRECATED

      public int HitBoneId_DEPRECATED
      Deprecated - use DamagePosition instead
    • DamageTaken

      public float DamageTaken
      Number of health points that the victim lost due to this damage event
    • HealthRemaining

      public float HealthRemaining
      Number of health points that the victim has remaining after this damage event
    • DamageSource

      Source of the damage event
    • DamageType

      Type of the damage being applied
    • DamageResult

      Result of the damage for the victim, if any
    • PlayerUseWeaponData

      PlayerUseWeaponData associated with this damage event if available, otherwise NULL
    • TimeSincePlayerUseWeaponMs

      public int TimeSincePlayerUseWeaponMs
      Time in milliseconds since the associated PlayerUseWeaponData event occurred if available, otherwise 0
    • DamagePosition

      World position where damage hit the victim as a 3D vector if available, otherwise NULL
  • Constructor Details

    • EOS_AntiCheatCommon_LogPlayerTakeDamageOptions

      public EOS_AntiCheatCommon_LogPlayerTakeDamageOptions()
    • EOS_AntiCheatCommon_LogPlayerTakeDamageOptions

      public EOS_AntiCheatCommon_LogPlayerTakeDamageOptions(com.sun.jna.Pointer peer)