NoEscape

Moved

Total Downloads: 12,037 - First Release: Oct 23, 2015 - Last Update: Apr 12, 2018

5/5, 33 likes
  1. Calytic

    Calytic Community Admin Community Mod

  2. i can also tell you the error that was posted before is spamming console for me aswell on my fresh test server

    [Oxide] 08:38 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'NoEscape v0.2.8' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 08:38 [Debug] at Oxide.Plugins.NoEscape.RaiderBlock (System.String source, System.String target, Vector3 position, System.Collections.Generic.List`1 sourceMembers) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.NoEscape.StructureAttack (.BaseEntity targetEntity, .BaseEntity sourceEntity, System.String weapon, Vector3 hitPosition) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.NoEscape.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.NoEscape.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0

    here is the config i run with it aswell, along side building owners.

    {
    "blockAll": false,
    "cacheMinutes": 1.0,
    "clanCheck": false,
    "clanShare": true,
    "combatBlock": false,
    "combatBlockNotify": false,
    "combatDuration": 180.0,
    "combatOnHitPlayer": true,
    "combatOnTakeDamage": true,
    "damageTypes": [
    "Bullet",
    "Blunt",
    "Stab",
    "Slash",
    "Explosion"
    ],
    "distance": 100.0,
    "duration": 400.0,
    "friendCheck": false,
    "friendShare": true,
    "message": "You may not teleport while a raid is happening nearby",
    "ownerBlock": true,
    "raidBlock": true,
    "raidBlockNotify": true,
    "raidDistance": 100.0,
    "raidDuration": 400.0,
    "raiderBlock": true,
    "raiderClanShare": false,
    "raiderFriendShare": false,
    "unblockOnDeath": true,
    "unblockOnRespawn": true,
    "unblockOnWakeup": false,
    "VERSION": "0.2.8"
    }

    hope it helps it only gets spammed when a player hits a wall or foundation with a pickaxe or hatchet or anything really.
     
  3. Trade system is make this plugin kind of uselees. players move their items while they being raided.

    it would be really helpful if you block this.
     
  4. Calytic

    Calytic Community Admin Community Mod

    I can't, sorry. Ask the author of Trade to add NoEscape support.
     
  5. i will
     
  6. I have the same problem as cosmic hax.

    [Oxide] 21:22 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'NoEsca
    pe v0.2.8' (NullReferenceException: Object reference not set to an instance of a
    n object)
    [Oxide] 21:22 [Debug] at Oxide.Plugins.NoEscape.RaiderBlock (System.String sou
    rce, System.String target, Vector3 position, System.Collections.Generic.List`1 s
    ourceMembers) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.NoEscape.StructureAttack (.BaseEntity targetEntity, .BaseEnti
    ty sourceEntity, System.String weapon, Vector3 hitPosition) [0x00000] in <filena
    me unknown>:0
    at Oxide.Plugins.NoEscape.OnEntityTakeDamage (.BaseCombatEntity entity, .HitIn
    fo hitInfo) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.NoEscape.DirectCallHook (System.String name, System.Object& r
    et, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo metho
    d, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[]
    args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[]
     
  7. Calytic

    Calytic Community Admin Community Mod

    thanks for the report guys. I'll try to track this one down.
     
  8. Calytic

    Calytic Community Admin Community Mod

    Calytic updated NoEscape with a new update entry:

    0.2.9

     
  9. Whats the hook i can call to find out if BasePlayer is near a lastdamage=explosion structure(s)?
     
  10. Hi. The plugin seems to not work good. It blocks everybody except raider with current settings. When blockAll is false, it does not block at all..

    Code:
    {
      "blockAll": true,
      "cacheMinutes": 1.0,
      "clanCheck": false,
      "clanShare": false,
      "combatBlock": false,
      "combatBlockNotify": false,
      "combatDuration": 180.0,
      "combatOnHitPlayer": true,
      "combatOnTakeDamage": true,
      "damageTypes": [
       
        "Blunt",
        "Stab",
        "Slash",
        "Explosion"
      ],
      "friendCheck": false,
      "friendShare": false,
      "ownerBlock": true,
      "raidBlock": true,
      "raidBlockNotify": true,
      "raidDistance": 100.0,
      "raidDuration": 300.0,
      "raiderBlock": true,
      "raiderClanShare": true,
      "raiderFriendShare": false,
      "unblockOnDeath": true,
      "unblockOnRespawn": true,
      "unblockOnWakeup": false,
      "VERSION": "0.2.9"
    }
     
  11. Calytic

    Calytic Community Admin Community Mod

    That setting will block the the building owner, raider, and raider clan-mates.

    To disable the ownership block:
    "ownerBlock": false
     
  12. those settings do not block raider in my case
     
  13. kcaper I had the same problem.

    Remove the blockall and set true on everything else.
     
  14. doesn`t work(
     
  15. please make a lock for this. A lot of people asking. Thank you! Player Trade for Rust | Oxide
    [DOUBLEPOST=1459563124][/DOUBLEPOST]Thank you for your plugin. Everything works fine. I use the old version as I'm afraid that again will cease :)
     
  16. Calytic

    Calytic Community Admin Community Mod

    I have tested this and it worked as expected. Are you sure you aren't testing this on a foundation you built?
     
  17. I've tried few ways. Even if somebody was exploding my building, he was not blocked.
    Well, from my point of view and according to your code, BlockAll should not block raider, because ShouldBlockEscape return false;
    Anyway, I fixed it by this.

    Code:
    bool ShouldBlockEscape(string target, string source, List<string> sourceMembers = null)
            {
                if (target == source)
                {
                    if (raiderBlock) return true;
                    return false;
                }
                if (sourceMembers is List<string> && sourceMembers.Count > 0 && sourceMembers.Contains(target))
                    return false;            return true;
            }
     
  18. Calytic

    Calytic Community Admin Community Mod

    BlockAll overrides all the other blocking techniques, as mentioned in the documentation. BlockAll is not really meant to be used in conjunction with raiderBlock, or any other type of blocking. In any case, your point is received, I will consider this for a future version. Thanks for the feedback.
     
  19. Thank you. By the way, is it possible to make players blocked after the wall is destroyed, not after it took damage?
     
  20. Calytic

    Calytic Community Admin Community Mod

    Yes, I will put that on the TODO list. I have some major updates planned in the relatively near future and I will do this as well.