EOS_AntiCheatCommon_LogPlayerTakeDamageOptions

EOS API reference page for EOS_AntiCheatCommon_LogPlayerTakeDamageOptions

3 분 소요

Properties

EOS_AntiCheatCommon_LogPlayerTakeDamageOptions

PropertyValue
int32_t ApiVersionAPI Version: Set this to EOS_ANTICHEATCOMMON_LOGPLAYERTAKEDAMAGE_API_LATEST.
EOS_AntiCheatCommon_ClientHandle VictimPlayerHandleLocally unique value used in RegisterClient/RegisterPeer
EOS_AntiCheatCommon_Vec3f* VictimPlayerPositionVictim player's current world position as a 3D vector
EOS_AntiCheatCommon_Quat* VictimPlayerViewRotationVictim player's view rotation as a quaternion
EOS_AntiCheatCommon_ClientHandle AttackerPlayerHandleLocally unique value used in RegisterClient/RegisterPeer
EOS_AntiCheatCommon_Vec3f* AttackerPlayerPositionAttacker player's current world position as a 3D vector
EOS_AntiCheatCommon_Quat* AttackerPlayerViewRotationAttacker player's view rotation as a quaternion
EOS_Bool bIsHitscanAttackTrue 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 bHasLineOfSightTrue 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 bIsCriticalHitTrue if this was a critical hit that causes extra damage (e.g. headshot)
uint32_t HitBoneId_DEPRECATEDDeprecated - use DamagePosition instead
float DamageTakenNumber of health points that the victim lost due to this damage event
float HealthRemainingNumber of health points that the victim has remaining after this damage event
EOS_EAntiCheatCommonPlayerTakeDamageSource DamageSourceSource of the damage event
EOS_EAntiCheatCommonPlayerTakeDamageType DamageTypeType of the damage being applied
EOS_EAntiCheatCommonPlayerTakeDamageResult DamageResultResult of the damage for the victim, if any
EOS_AntiCheatCommon_LogPlayerUseWeaponData* PlayerUseWeaponDataPlayerUseWeaponData associated with this damage event if available, otherwise NULL
uint32_t TimeSincePlayerUseWeaponMsTime in milliseconds since the associated PlayerUseWeaponData event occurred if available, otherwise 0
EOS_AntiCheatCommon_Vec3f* DamagePositionWorld position where damage hit the victim as a 3D vector if available, otherwise NULL