PVE Allow Damage to Personal Entities

I'm new to all of this, so bare with me.  Is there a way to allow damage to my own base?  I downloaded this plugin thinking that it would allow coding for this.  I hate the remove tool so don't want to use that plugin.  I want users to be able to break down their own/teams walls within tc authorization zone using tools and weapons.  But don't want people to be able to destroy other players/teams bases or entitites.  Is there a way to code/edit this?  I appreciate any advice and/or help.  Thanks

hi, use the authorized damage flags found in the documentation. add them to your flags

example:

"flags": "AuthorizedDamage, AuthorizedDamageCheckPrivilege, AuthorizedDamageRequiresOwnership, HopperCannotTargetEnemyLoot, AuthorizedFarmableDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, PlayerSamSitesIgnorePlayers, TrapsIgnorePlayers, TurretsIgnorePlayers",​


that will allow when the player is authed, or when the player is the owner or in the same team/clan/friend of the owner.

Should it look like this?

        [Flags]
        public enum RuleFlags : ulong
        {
            None = 0,
            AdminsHurtSleepers = 1uL << 1,
            AdminsHurtPlayers = 1uL << 2,
            AnimalsIgnoreSleepers = 1uL << 3,
            AuthorizedDamage = 1uL << 4,
            AuthorizedDamageRequiresOwnership = 1uL << 5,
            CupboardOwnership = 1uL << 6,
            FriendlyFire = 1uL << 7,
            HeliDamageLocked = 1uL << 8,
            HumanNPCDamage = 1uL << 9,
            LockedBoxesImmortal = 1uL << 10,
            LockedDoorsImmortal = 1uL << 11,
            NoPlayerDamageToCar = 1uL << 12,
            NoPlayerDamageToMini = 1uL << 13,
            NoPlayerDamageToScrap = 1uL << 14,
            NoHeliDamage = 1uL << 15,
            NoHeliDamagePlayer = 1uL << 16,
            NoHeliDamageQuarry = 1uL << 17,
            NoHeliDamageRidableHorses = 1uL << 18,
            NoHeliDamageSleepers = 1uL << 19,
            NoMLRSDamage = 1uL << 20,
            NpcsCanHurtAnything = 1uL << 21,
            PlayerSamSitesIgnorePlayers = 1uL << 22,
            ProtectedSleepers = 1uL << 23,
            TrapsIgnorePlayers = 1uL << 24,
            TrapsIgnoreScientist = 1uL << 25,
            TurretsIgnorePlayers = 1uL << 26,
            TurretsIgnoreScientist = 1uL << 27,
            StaticTurretsIgnoreScientist = 1uL << 28,
            TwigDamage = 1uL << 29,
            TwigDamageRequiresOwnership = 1uL << 30,
            VehiclesTakeCollisionDamageWithoutDriver = 1uL << 31,
            SamSitesIgnoreMLRS = 1uL << 32,
            SelfDamage = 1uL << 33,
            StaticSamSitesIgnorePlayers = 1uL << 34,
            StaticTurretsIgnorePlayers = 1uL << 35,
            SafeZoneTurretsIgnorePlayers = 1uL << 36,
            SuicideBlocked = 1uL << 37,
            NoHeliDamageBuildings = 1uL << 38,
            WoodenDamage = 1uL << 39,
            WoodenDamageRequiresOwnership = 1uL << 40,
            AuthorizedDamageCheckPrivilege = 1uL << 41,
            ExcludeTugboatFromImmortalFlags = 1uL << 42,
            LockedVehiclesImmortal = 1uL << 43,
            TurretsIgnoreBradley = 1uL << 44,
            AuthorizedFarmableDamage = 1uL << 45,
            HopperCannotTargetEnemyLoot = 1uL << 46
            "flags": "AuthorizedDamage, AuthorizedDamageCheckPrivilege, AuthorizedDamageRequiresOwnership, HopperCannotTargetEnemyLoot, AuthorizedFarmableDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, PlayerSamSitesIgnorePlayers, TrapsIgnorePlayers, TurretsIgnorePlayers"
        }


Merged post

Or is that the wrong section?

hi, no, it is in your config file
just add the flags with the others.

AuthorizedDamage, AuthorizedDamageCheckPrivilege, AuthorizedDamageRequiresOwnership​

I know I'm probably getting on your nerves but are you talking about this config file?  And what would it look like?  I really appreciate your help.  I'm trying to learn how to do this.  Thanks so much.

/home/container/oxide/config/TruePVE.json

{
  "Config Version": "2.3.1",
  "Default RuleSet": "default",
  "Configuration Options": {
    "Armor damage (PVE)": {
      "Skin IDs which are immune to damage": [],
      "Enable support for npcs to cause armor damage on hit": false,
      "Play headshot sound when a player is headshot by an npc": false
    },
    "Loot": {
      "Auto lock (codelock, keylock, nothing)": {
        "cupboard.tool.deployed": "nothing"
      },
      "Exceptions for locks to various containers option": [
        "skulltrophy.deployed",
        "skull_fire_pit",
        "bbq.static",
        "small_refinery_static",
        "campfire"
      ],
      "Enable support to allow adding locks to various containers": false,
      "Enable codelock anti-raiding (team/clan/friend access only)": false,
      "Protect unlocked TC from being accessed by enemy players": false,
      "Prevent player shield from dropping on death": false,
      "Prevent player active item from dropping on death": false,
      "Prevent player backpack from dropping on death (Rust backpack)": false,
      "Prevent players from using enemy car lifts": false
    },
    "Reflect PVP Damage Multipliers (0 = disabled, 1 = 100%)": {
      "Multiplier Allows Armor Protection": true,
      "Arrow Damage": 0.0,
      "Blunt Damage": 0.0,
      "Bullet Damage": 0.0,
      "Slash Damage": 0.0,
      "Stab Damage": 0.0
    },
    "TwigDamage (FLAG)": {
      "Apply To Twig (when TwigDamage flag is not set": false,
      "Apply To Wood": false,
      "Apply To Stone": false,
      "Apply To Metal": false,
      "Apply To HQM": false,
      "Require Owner Online": true,
      "Log Offenses": false,
      "Notify Offenders": false,
      "Reflect Damage Multiplier": 0.0,
      "Multiplier Allows Armor Protection": true
    },
    "handleDamage": true,
    "useZones": true,
    "Trace To Player Console": false,
    "Trace To Server Console": true,
    "Log Trace To File": true,
    "Maximum Distance From Player To Trace": 50.0,
    "Prevent Water From Extinguishing BaseOven": false,
    "Prevent Players From Being Marked Hostile": false,
    "Allow PVP Below Height": -500.0,
    "Allow PVP Above Height": 5000.0,
    "Allow Other Damage Below Height": -500.0,
    "Allow Other Damage Above Height": 5000.0,
    "Allow Cold Metabolism Damage": false,
    "Allow Heat Metabolism Damage": false,
    "Allow Thirst And Hunger Damage To Farmable Animals": true
  },


Merged post

ohhhh i think i figured it out

Merged post

Thank You SOOO Much!