1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NoEscape

Prevent teleportation (and more) while in raid or combat

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

5/5, 32 likes
  1. Calytic
    Description

    NoEscape prevents teleportation (and other actions) when a raid or combat is detected. NoEscape is meant to reduce the impact of many popular plugins on the core gameplay mechanics of Rust, namely combat strategy and tactics.

    block_gui.jpg

    Blocked Commands
    • /home (Teleportation)
    • /tpr (Teleportation)
    • /remove (Remover Tool)
    • /t home # (Magic Teleportation)
    • /bgrade (Automatic Build Grades)
    • /trade (Trade)
    • /rec (Recycle)
    • /bank (Bank)
    • /kit (Kits)
    • /shop (GUI-Shop)
    Permissions
    You must assign permissions for the types of blocking you want
    • noescape.raid.tpblock
      noescape.combat.tpblock
      Blocks teleportation (/home /tpr)

    • noescape.raid.removeblock
      noescape.combat.removeblock
      Blocks remover tool (/remove)

    • noescape.raid.bgradeblock
      noescape.combat.bgradeblock
      Blocks automatic building grades (/bgrade)

    • noescape.raid.buildblock
      noescape.combat.buildblock
      Blocks regular building

    • noescape.raid.repairblock
      noescape.combat.repairblock

      Blocks regular repairing

    • noescape.raid.upgradeblock
      noescape.combat.upgradeblock
      Blocks regular upgrading of structures

    • noescape.raid.vendblock
      noescape.combat.vendblock
      Blocks using vending machines

    • noescape.raid.tradeblock
      noescape.combat.tradeblock
      Blocks trade (/trade)

    • noescape.raid.recycleblock
      noescape.combat.recycleblock
      Blocks recycling (/recycle)

    • noescape.raid.bankblock
      noescape.combat.bankblock
      Blocks bank (/bank)

    • noescape.raid.kitblock
      noescape.combat.kitblock
      Blocks redeeming of kits (/kit)

    • noescape.raid.assignbedblock
      noescape.combat.assignbedblock
      Blocks players from assigning others to a sleeping bag

    • noescape.raid.shopblock
      noescape.combat.shopblock

      Blocks players from using shop related plugins

    • noescape.raid.craftblock
      noescape.combat.craftblock

      Blocks players from crafting

    • noescape.raid.mailboxblock
      noescape.combat.mailboxblock

      Blocks players from using mailbox

    • Ex. oxide.grant group default noescape.raid.tpblock
    • Ex. oxide.grant user Calytic noescape.raid.tpblock
    Bypass Permission
    • noescape.disable
      Disables all blocking behavior for group or player

    • Ex. oxide.grant group donator noescape.disable
    • Ex. oxide.grant user Calytic noescape.disable
    Raid Block
    Detects when a raid is occurring and block players from using teleport (or other commands).

    The raid "participants" whom may be blocked:
    1. The owner of the base
    2. The nearby clan-mates of the owner
    3. The nearby friends of the owner
    4. The raid initiator
    5. The nearby clan-mates of the raid initiator
    6. The nearby friends of the raid initiator
    7. Anyone nearby (including raiders and bystanders)
    Raid Block Options
    • enabled (default: true)
      Determines if raiding will start blocking behavior
    • duration (default: 300)
      The length of time before the raid block is lifted (default 5 minutes)
    • distance (default: 100)
      The distance the owner must be from where the raid is occurring (default 100 meters)
    • notify (default: true)
      Whether or not player is notified when they are raid blocked.
    • includePrefabs
      List of additional prefabs that will start raid blocking behavior, such as doors, window bars, floor frames, wall frames, shutters, or external walls
    • excludePrefabs
      List of prefabs that will not start blocking behavior, such as a wooden ladder
    • excludeWeapons
      List of weapons that will not start blocking behavior, such as a torch
    • damageTypes
      List of damage types that will start blocking behavior. Such as: bullet, blunt, stab, slash, explosion, and heat damage.
    Raid Block Except
    • owner (default: true)
      Prevents the owner from blocking themselves
    • clan (default: false)
      Prevents clan-mates from blocking eachother
    • friends (default: false)
      Prevents friends from blocking eachother
    Raid Block When
    • damage (default: true)
      Determines if damaging a structure/prefab will start blocking behavior
    • destroy (default: false)
      Determines if destroying a structure/prefab will start blocking behavior
    • unowned (default: false)
      Determines if damaging/destroying unowned structures/prefabs will start blocking behavior
    Raid Block Who
    • everyone (default: false)
      Blocks everyone within configured distance, including raiders and bystanders (Note: this setting will override all other raid blocking behavior)
    • owner (default: true)
      Blocks owner of target block (if within configured distance)
    • clan (default: false)
      Block nearby clan-mates of owner or raider
    • friends (default: false)
      Block nearby friends of owner or raider
    • raider (default: false)
      Blocks player who initiated raid
    • cupboardAuthorized (default: false)
      Blocks nearby players who are authorized on you or friends cupboard
    Raid Unblock When
    • death (default: true)
      Determines if death will stop raid blocking behavior
    • respawn (default: true)
      Determines if respawning will stop raid blocking behavior
    • wakeup (default: false)
      Determines if waking up will stop raid blocking behavior
    Raid Block Map
    • enabled (default: false)
      Announces raid to LustyMap as an icon
    • duration (default: 150)
      Determines how long a LustyMap icon will last on the map
    • icon (default: special)
      Name of icon to be used on the map (please consult LustyMap documentation on how to use your own icons)
    Raid Block Zone
    • enabled (default: false)
      Determines if ZoneManager creates a raid block zone where the raid was initiated
    • enter (default: true)
      Determines if entering a raid block zone will block anyone who enters it
    • leave (default: false)
      Determines if leaving a raid block zone will stop blocking anyone who leaves it
    Combat Block
    Detects when a player has given or received damage to/from another player, then blocks one or both parties for the configured duration.

    Combat Block Options
    • enabled (default: false)
      Determines if combat will start blocking behavior
    • duration (default: 180)
      The length of time before the combat block is lifted (default 3 minutes)
    • notify (default: true)
      Whether or not player is notified when they are combat blocked.
    • damageTypes
      List of damage types that will start blocking behavior. Such as: bullet, arrow, blunt, stab, slash, electric, explosion, and heat damage.
    Combat Block When
    • giveDamage (default: true)
      Whether successfully hitting another player blocks you
    • takeDamage (default: true)
      Whether successfully being hit by another player blocks you
    Combat Unblock When
    • death (default: true)
      Determines if death will stop combat blocking behavior
    • respawn (default: true)
      Determines if respawning will stop combat blocking behavior
    • wakeup (default: false)
      Determines if waking up will stop combat blocking behavior
    Notifications (Built-In)
    • Chat (default: true)
      Players receive chat notifications about their block status
    • UI (default: true)
      Players receive UI notifications about their block status
    Notifications (GUIAnnouncements)
    • enabled (default: false)
      Creates GUIAnnouncements informing players if they have been blocked or unblocked
    • backgroundColor (default: Red)
      The background color of the GUIAnnouncement notification (please consult GUIAnnouncement documentation on available color options)
    • textColor (default: White)
      The text color of the GUIAnnouncement notification (please consult GUIAnnouncement documentation on available color options)
    Cache Settings
    • cacheMinutes (default: 1)
      The number of minutes that clan/friend relationships are stored in-memory before checking for new relationship status
    Hook Optimization & Conflicts
    • Block Types
      All block types are enabled by default - though none are used without the appropriate permissions. Disabling certain kinds of blocking will disable the hooks associated with those types of blocking.

      For example, if you remove "craft" from the block types list, NoEscape will no longer hook CanCraft. This is useful for improving performance by disabling blocking behavior that you are not using or removing conflicts with other plugins that use the same hooks.

      The following list will point out block types which may be removed for performance improvement and/or conflict resolution.
    Default Block Types
    • remove
    • tp
    • bank
    • trade
    • recycle
    • shop
    • bgrade
    • build (optimized)
    • repair (optimized)
    • upgrade (optimized)
    • vend (optimized)
    • kit
    • assignbed (optimized)
    • craft (optimized)
    • mailbox (optimized)
    Default Configuration
    Code (Text):

    {
      "Combat": {
        "Block": {
          "damageTypes": [
            "Bullet",
            "Arrow",
            "Blunt",
            "Stab",
            "Slash",
            "Explosion",
            "Heat",
            "ElectricShock"
          ],
          "duration": 180.0,
          "enabled": false,
          "notify": true
        },
        "BlockWhen": {
          "giveDamage": true,
          "takeDamage": true
        },
        "UnblockWhen": {
          "death": true,
          "respawn": true,
          "wakeup": false
        }
      },
      "Notifications": {
        "Chat": true,
        "GUIAnnouncements": {
          "backgroundColor": "Red",
          "enabled": false,
          "textColor": "White"
        },
        "UI": true
      },
      "Raid": {
        "Block": {
          "damageTypes": [
            "Bullet",
            "Blunt",
            "Stab",
            "Slash",
            "Explosion",
            "Heat"
          ],
          "distance": 100.0,
          "duration": 300.0,
          "enabled": true,
          "excludePrefabs": [
            "ladder.wooden"
          ],
          "excludeWeapons": [
            "torch"
          ],
          "includePrefabs": [
            "door",
            "window.bars",
            "floor.ladder.hatch",
            "floor.frame",
            "wall.frame",
            "shutter",
            "external"
          ],
          "notify": true
        },
        "BlockExcept": {
          "clan": false,
          "friends": false,
          "owner": true
        },
        "BlockWhen": {
          "damage": true,
          "destroy": false,
          "unowned": false
        },
        "BlockWho": {
          "clan": false,
          "cupboardAuthorized": false,
          "everyone": false,
          "friends": false,
          "owner": true,
          "raider": false
        },
        "Map": {
          "duration": 150.0,
          "enabled": false,
          "icon": "special"
        },
        "UnblockWhen": {
          "death": true,
          "respawn": true,
          "wakeup": false
        },
        "Zone": {
          "enabled": false,
          "enter": true,
          "leave": false
        }
      },
      "Settings": {
        "Block": {
          "Types": [
            "remove",
            "tp",
            "bank",
            "trade",
            "recycle",
            "shop",
            "bgrade",
            "build",
            "repair",
            "upgrade",
            "vend",
            "kit",
            "assignbed",
            "craft",
            "mailbox"
          ]
        },
        "cacheMinutes": 1.0
      },
      "VERSION": "2.0.0"
    }
     
    API
    Code (Text):
    bool IsEscapeBlocked(BasePlayer target)
    bool IsEscapeBlocked(string target)
    bool IsRaidBlocked(BasePlayer target)
    bool IsRaidBlocked(string target)
    bool IsCombatBlocked(BasePlayer target)
    bool IsCombatBlocked(string target)

    void StartRaidBlocking(BasePlayer player, Vector3 position, createZone = true)
    void StopBlocking(BasePlayer target)
    void StopRaidBlocking(string target)
    void StartCombatBlocking(BasePlayer target)
    void StopCombatBlocking(string target)
    Contribute
    How To: Report Bugs