VIP No Decay

No decay damage for player or group with permissions

Total Downloads: 608 - First Release: Apr 25, 2017 - Last Update: Apr 25, 2017

5/5, 3 likes
  1. Colon Blow submitted a new resource:

    VIP No Decay - No decay damage for player or group with permissions

    Read more about this resource...
     
  2. Will it override TwigsDecay? or only works on vanilla decay?
     
  3. it is designed to work with default Rust decay. Not sure if TwigsDecay uses default "Decay" damage or not.
    I will have to look and update back. if it does, then it will null the damage, if it doesn't. the TwigsDecay damage will still occur.
     
    Last edited by a moderator: Apr 25, 2017
  4. Yes, TwigsDecay will override this plugin 100%. So using that plugin will result in this one having no effect.
    TwigsDecay turns off default Decay system and replaces it with a health removal system and not a decay damage system.
     
  5. Does this work with clans:io or any associated friends, or does it only apply specifically to the user with the permission?
     
  6. Currently it does not have friends or clans:io integration (good idea for future though)
    it works with user or oxide group that has permissions.
     
  7. Great plug-in! Thank you!
     
  8. a little contribution which helps improve performance since it won't decay more than once on the same entity. poses a problem if the players permission is revoked. oh well. something for you to work with if you want.

    Code:
                                var decay = entity.GetComponentInParent<Decay>();                            if (decay != null)
                                {
                                    decay.CancelInvoke("RunDecay");
                                    decay.enabled = false;
                                }
     
  9. cool. ill check it out and see how to best implement this :) thanks.
     
  10. I have an idea .. I would like an optional variable minHealth=X so if entity.health<=minHealth then cancel decay for that entity.

    Because there are situations when owners:
    -they forgot to repair or check external TC foundations
    -they were busy to enter couple days

    In this way
    -the base remain fragile for raids but if the owner comes back after couple days can repair and continue the game started
    -prevents the loot to be totaly destroyed by decay
     
    Last edited by a moderator: May 10, 2017
  11. is there any way to prevent the 'building is decaying' message for structures owned by people with this permission, other than to feed materials into the TC which essentially wastes them?
     
  12. ill check it out later and see :)