Solved Getting right damage

Discussion in 'Rust Development' started by bazuka5801, Jul 9, 2017.

  1. 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()}" );        }
     
  2. Try checking the damage with a nexttick callback. That should allow it to complete all the scaling.