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 if applicable, otherwise 0. |
EOS_AntiCheatCommon_Vec3f* AttackerPlayerPosition | Attacker player's current world position as a 3D vector if applicable, otherwise NULL. |
EOS_AntiCheatCommon_Quat* AttackerPlayerViewRotation | Attacker player's view rotation as a quaternion if applicable, otherwise NULL. |
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. This can be an estimate, or can simply be always set to true if it is not feasible to compute in your game. |
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 associated 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 |