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


Cancels/reduces base damage when offline

Total Downloads: 5,058 - First Release: Nov 17, 2015 - Last Update: Mar 1, 2018

5/5, 32 likes
  1. Calytic
    AntiOfflineRaid is a structure-related plugin that reduces the amount of damage to player structures by a percentage. The percentage decreases as time passes.

    There is a cooldown of 10 minutes before damage reductions will apply. Meaning players may not necessarily prevent a raid by going offline.

    Going afk for more than 5 minutes is the same as going offline.

    AntiOfflineRaid determines who owns a structure based on who built it.

    There is NO REFUND for wasted explosives.

    AOR will not know how long a player has been offline unless they go offline while this plugin is running. There is no method to determine how long a player was offline before this plugin is installed, AOR will not protect bases for players that are offline since before this plugin is installed.

    When unloading or updating AOR, it is recommended to save the server with server.save.

    Chat Commands
    Code (Text):
    /ao "PlayerName"
    Check the AntiOfflineRaid status of any active or sleeping player
    This plugin uses Oxide's permission system. To assign a permission, use grant user <username|steamid> <permission>. To remove a permission, use revoke user <username|steamid> <permission>.
    • antiofflineraid.protect (enabled protection using offline time)
      Ex. grant user Calytic antiofflineraid.protect
      Ex. revoke user Calytic antiofflineraid.protect
      Ex. grant group default antiofflineraid.protect
    • antiofflineraid.check (allows access to "ao" command)
      Ex. grant user Calytic antiofflineraid.check
      Ex. revoke user Calytic antiofflineraid.check
      Ex. grant group moderator antiofflineraid.check
    • afkMinutes (default 5)
      The number of minutes without moving before a player is considered "offline." Minimum is 5.
    • cooldownMinutes (default 10)
      The number of minutes after going offline that damage remains default. After cooldown has expired, damage is completely canceled (interimDamage) up until the 60 minutes (after which damageScale is used)
    • damageScale
      The scale of damage done to structures depending on how many hours since the owner was last online
    • absoluteTimeScale
      The scale of damage done to structures depending on the current hour of the (real) day
    • interimDamage (default 0%)
      The scale of damage between the cooldown and the first hour
    • clanShare (default false)
      Checks number of clan-mates online before mitigating damage
    • minMembers (default 1)
      The number of clan mates that must be online for the entire clan to be considered online
    • clanFirstOffline (default false)
      Changes whether damage is mitigated by the clan-mate who was offline the longest or the shortest
    • showMessage (default true)
      Whether or not to display gui message when a base is protected
    • protectionMessage
      The message to show players when they hit a protected building
    • playSound (default false)
      Play a sound when damage is blocked
    • sound (default mod attachment)
      Asset path of sound to play
    Default Configuration
    Code (Text):
      "protectionMessage": "This building is protected: {amount}%",
      "showMessage": true,
      "afkMinutes": 5,
      "clanShare": false,
      "minMembers": 1,
      "playSound": false,
      "sound": "assets/prefabs/weapon mods/silencers/effects/silencer_attach.fx.prefab",
      "prefabs": [
      "cooldownMinutes": 10,
      "interimDamage": 0.0,
      "damageScale": {
        "1": 0.2,
        "3": 0.35,
        "6": 0.5,
        "12": 0.8,
        "48": 1
      "absoluteTimeScale": {
        "03": 0.1
    The above configuration is intended to work as follows.
    • First 10 minutes offline - 100% damage
    • Between 10 and 60 minutes offline - 0% damage
    • Between 1 and 3 hours offline - 20% damage
    • Between 3 and 6 hours offline - 35% damage
    • Between 6 and 12 hours offline - 50% damage
    • Between 12 and 48 hours offline - 80% damage
    • After 48 hours offline - 100% damage
    Absolute Time Damage Scale
    Note that with the default configuration, all buildings are protected 90% (or receive 10% damage) between 3AM and 3:59AM.

    The absolute time damage scale will completely override the normal damage scale. To disable absolute time damage scale, just set it to the following value:
    Code (Text):
    "absoluteTimeScale": {}
    If the absolute time damage scale appears to use the wrong scale, ensure that your server's system time is correctly configured.

    Cleaning House Option
    With damageScale, this plugin may also increase the damage beyond 100% after a certain amount of offline time, therein making it less expensive to raid. For example, after 168 hours (1 week), raiders could do twice the damage to the structure.

    This may be useful on pvp servers without decay to help clear out old bases.
    Code (Text):
    "damageScale": {
        "1": 0.2,
        "3": 0.35,
        "6": 0.5,
        "12": 0.8,
        "48": 1,
        "168": 2
    Feedback is appreciated. AntiOfflineRaid | Oxide

    How To: Report Bugs