Choose your implementation method:
C
C#
Properties
EOS_AntiCheatCommon_LogPlayerTakeDamageOptions
Property |
Value |
---|---|
int32_t ApiVersion |
API Version: Set this to EOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST. |
EOS_AntiCheatCommon_ClientHandle VictimPlayerHandle |
Locally unique value used in RegisterClient/RegisterPeer |
EOS_AntiCheatCommon_Vec3f* VictimPlayerPosition |
Victim player's current world position as a 3D vector |
EOS_AntiCheatCommon_Quat* VictimPlayerViewRotation |
Victim player's view rotation as a quaternion |
EOS_AntiCheatCommon_ClientHandle AttackerPlayerHandle |
Locally unique value used in RegisterClient/RegisterPeer |
EOS_AntiCheatCommon_Vec3f* AttackerPlayerPosition |
Attacker player's current world position as a 3D vector |
EOS_AntiCheatCommon_Quat* AttackerPlayerViewRotation |
Attacker player's view rotation as a quaternion |
EOS_Bool bIsHitscanAttack |
True if the damage was applied instantly at the time of attack from the game simulation's perspective, otherwise false (simulated ballistics, arrow, etc). |
EOS_Bool bHasLineOfSight |
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. |
EOS_Bool bIsCriticalHit |
True if this was a critical hit that causes extra damage (e.g. headshot) |
uint32_t HitBoneId_DEPRECATED |
Deprecated - use DamagePosition instead |
float DamageTaken |
Number of health points that the victim lost due to this damage event |
float HealthRemaining |
Number of health points that the victim has remaining after this damage event |
EOS_EAntiCheatCommonPlayerTakeDamageSource DamageSource |
Source of the damage event |
EOS_EAntiCheatCommonPlayerTakeDamageType DamageType |
Type of the damage being applied |
EOS_EAntiCheatCommonPlayerTakeDamageResult DamageResult |
Result of the damage for the victim, if any |
EOS_AntiCheatCommon_LogPlayerUseWeaponData* PlayerUseWeaponData |
PlayerUseWeaponData associated with this damage event if available, otherwise NULL |
uint32_t TimeSincePlayerUseWeaponMs |
Time in milliseconds since the PlayerUseWeaponData event occurred if available, otherwise 0 |
EOS_AntiCheatCommon_Vec3f* DamagePosition |
World position where damage hit the victim as a 3D vector if available, otherwise NULL |
Properties
AntiCheatCommon.LogPlayerTakeDamageOptions
Property |
Value |
---|---|
int ApiVersion |
API Version: Set this to EOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST. |
System.IntPtr VictimPlayerHandle |
Locally unique value used in RegisterClient/RegisterPeer |
Vec3f VictimPlayerPosition |
Victim player's current world position as a 3D vector |
Quat VictimPlayerViewRotation |
Victim player's view rotation as a quaternion |
System.IntPtr AttackerPlayerHandle |
Locally unique value used in RegisterClient/RegisterPeer |
Vec3f AttackerPlayerPosition |
Attacker player's current world position as a 3D vector |
Quat AttackerPlayerViewRotation |
Attacker player's view rotation as a quaternion |
bool IsHitscanAttack |
True if the damage was applied instantly at the time of attack from the game simulation's perspective, otherwise false (simulated ballistics, arrow, etc). |
bool 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. |
bool IsCriticalHit |
True if this was a critical hit that causes extra damage (e.g. headshot) |
uint HitBoneId_DEPRECATED |
Deprecated - use DamagePosition instead |
float DamageTaken |
Number of health points that the victim lost due to this damage event |
float HealthRemaining |
Number of health points that the victim has remaining after this damage event |
AntiCheatCommonPlayerTakeDamageSource DamageSource |
Source of the damage event |
AntiCheatCommonPlayerTakeDamageType DamageType |
Type of the damage being applied |
AntiCheatCommonPlayerTakeDamageResult DamageResult |
Result of the damage for the victim, if any |
LogPlayerUseWeaponData PlayerUseWeaponData |
PlayerUseWeaponData associated with this damage event if available, otherwise NULL |
uint TimeSincePlayerUseWeaponMs |
Time in milliseconds since the PlayerUseWeaponData event occurred if available, otherwise 0 |
Vec3f DamagePosition |
World position where damage hit the victim as a 3D vector if available, otherwise NULL |