How get right damage if i wear attire? Always puts 37.5 with thomson
Code:private void OnEntityTakeDamage(BaseCombatEntity victim, HitInfo hitInfo) { if (victim == null || hitInfo == null) return; DamageType type = hitInfo.damageTypes.GetMajorityDamageType(); var attacker = hitInfo.InitiatorPlayer; if (attacker == null) return; SendReply( hitInfo?.Initiator?.ToPlayer(), $"{hitInfo?.Initiator?.ToPlayer().UserIDString} { hitInfo.damageTypes.Total()} {victim.Health()}" ); }
Solved Getting right damage
Discussion in 'Rust Development' started by bazuka5801, Jul 9, 2017.