Rust Don't die cold

Discussion in 'Plugin Requests' started by Kurbandark67, Jan 10, 2018.

  1. As an admin or for all players?
     
  2. all players
     
  3. The easiest way:
    Code:
    object OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
    {
         if (entity is BasePlayer && info.damageTypes.GetMajorityDamageType() == DamageType.Cold
    )
              return false;
         return null;
    }
    Sent you ready plugin to PM
     
  4. Easier to just modify the player's metabolism to not get cold at all.
     
  5. Easier in that case - when you do not have to think about slightly deeper things, and you do everything on the break