public static void SetPlayerDamageInfoC(PlayerEntity source, PlayerEntity target, float damage, EBodyPart part) { if (Logger.IsDebugEnabled) { Logger.DebugFormat("SetPlayerDamageInfo {0} in {1}", damage, part); } if (!source.isFlagSelf) { return; } if (!source.hasAttackDamage) { source.AddAttackDamage(part, damage); } else { source.attackDamage.HitPart = part; source.attackDamage.Damage = damage; } }