Configurable decay speed for certain barricades

Supported Games
GameServerKingsGameServerKings

Features

High Wall Barricades allows to configure decay of barricades

Configuration

{
  "Time between decay ticks": 600,
  "Decay tick damage": 0.2,
  "Barricade initial health": 1.0,
  "Should barricades decay while inside the cupboard range": false,
  "Check if owner of barricade is authorized": true,
  "Disable standart decay for barricades": false,
  "Enabled types of barricades": {
    "assets/prefabs/building/wall.external.high.stone/wall.external.high.stone.prefab": true,
    "assets/prefabs/building/wall.external.high.wood/wall.external.high.wood.prefab": true,
    "assets/prefabs/deployable/barricades/barricade.concrete.prefab": true,
    "assets/prefabs/deployable/barricades/barricade.metal.prefab": true,
    "assets/prefabs/deployable/barricades/barricade.sandbags.prefab": true,
    "assets/prefabs/deployable/barricades/barricade.stone.prefab": true,
    "assets/prefabs/deployable/barricades/barricade.wood.prefab": true,
    "assets/prefabs/deployable/barricades/barricade.woodwire.prefab": true,
    "assets/prefabs/building/gates.external.high/gates.external.high.stone/gates.external.high.stone.prefab": true,
    "assets/prefabs/building/gates.external.high/gates.external.high.wood/gates.external.high.wood.prefab": true
  },
  "Configuration version (Needed for auto-update, don't modify)": {
    "Major": 2,
    "Minor": 2,
    "Patch": 1
  }
}
  • Barricade initial health - determines how many health a barricade would have right after placement (Set to 0 if you want to disallow barricades placement)
  • Check for owner authorization - barricade inside the cupboard range won't decay, if owner of it is authorized into the TC

Credits

Guilty Spark - The original author of this pluginWulf - Compilation-fix patch

MIT License


Copyright (c) 2020 2CHEVSKII


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.