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","AttackerPlayerViewPosition"})
public class EOS_AntiCheatCommon_LogPlayerTakeDamageOptions
extends com.sun.jna.Structure
- Since:
- 8/5/2023
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptionintAPI Version: Set this toEOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST.Locally unique value used in RegisterClient/RegisterPeer if applicable, otherwise 0.Attacker player character's world position as a 3D vector if applicable, otherwise NULL.Attacker player camera's world position as a 3D vector if applicable, otherwise NULLAttacker player camera's world rotation as a quaternion if applicable, otherwise NULL.World position where damage hit the victim as a 3D vector if available, otherwise NULLResult of the damage for the victim, if anySource of the damage eventfloatNumber of health points that the victim lost due to this damage eventType of the damage being appliedstatic intintTrue 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.floatNumber of health points that the victim has remaining after this damage eventintDeprecated - use DamagePosition insteadEOS_Bool.EOS_TRUEif this was a critical hit that causes extra damage (e.g.EOS_Bool.EOS_TRUEif the damage was applied instantly at the time of attack from the game simulation's perspective, otherwiseEOS_Bool.EOS_FALSE(simulated ballistics, arrow, etc).PlayerUseWeaponData associated with this damage event if available, otherwise NULLintTime in milliseconds since the associated PlayerUseWeaponData event occurred if available, otherwise 0Locally unique value used in RegisterClient/RegisterPeerVictim player character's world position as a 3D vector.Victim player camera's world rotation as a quaternion.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
EOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST
public static int EOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST -
ApiVersion
public int ApiVersionAPI Version: Set this toEOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST. -
VictimPlayerHandle
Locally unique value used in RegisterClient/RegisterPeer -
VictimPlayerPosition
Victim player character's world position as a 3D vector. This should be the center of the character. -
VictimPlayerViewRotation
Victim player camera's world rotation as a quaternion. -
AttackerPlayerHandle
Locally unique value used in RegisterClient/RegisterPeer if applicable, otherwise 0. -
AttackerPlayerPosition
Attacker player character's world position as a 3D vector if applicable, otherwise NULL. -
AttackerPlayerViewRotation
Attacker player camera's world rotation as a quaternion if applicable, otherwise NULL. -
IsHitscanAttack
EOS_Bool.EOS_TRUEif the damage was applied instantly at the time of attack from the game simulation's perspective, otherwiseEOS_Bool.EOS_FALSE(simulated ballistics, arrow, etc). -
HasLineOfSight
public int HasLineOfSightTrue 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
EOS_Bool.EOS_TRUEif this was a critical hit that causes extra damage (e.g. headshot) -
HitBoneId_DEPRECATED
public int HitBoneId_DEPRECATEDDeprecated - use DamagePosition instead -
DamageTaken
public float DamageTakenNumber of health points that the victim lost due to this damage event -
HealthRemaining
public float HealthRemainingNumber 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 TimeSincePlayerUseWeaponMsTime 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 -
AttackerPlayerViewPosition
Attacker player camera's world position as a 3D vector if applicable, otherwise NULL
-
-
Constructor Details
-
EOS_AntiCheatCommon_LogPlayerTakeDamageOptions
public EOS_AntiCheatCommon_LogPlayerTakeDamageOptions() -
EOS_AntiCheatCommon_LogPlayerTakeDamageOptions
public EOS_AntiCheatCommon_LogPlayerTakeDamageOptions(com.sun.jna.Pointer peer)
-