SR's Place Restrictor

Trusted Free SR's Place Restrictor 1.6

Sign in to download
This resource is free

Also available in: Українська · Čeština · Deutsch · Français · Español · Português (Brasil) · 简体中文 · 한국어 · 日本語
Made by srdevs.net. Full docs and a guide to stopping bag and turret spam on our wiki, in 10 languages.​

Block placing structures on ground, specific structures or near enemy structures!


Plugin features:

  • Block structures from placing on other structures, like turrets on Tek Foundations.
  • Restrict placement of structures on ground.
  • Block placing structures near enemy structures, with one global range and a range per structure.
  • Keep sleeping bags and beds away from enemy bases.
  • Let some structures always be placed near enemies, like C4 for raiding.
  • Give the item back when a placement is blocked.
  • Use structure or item blueprints for the structures you restrict.
  • Find blueprints with Debug, it logs what was placed and what it was placed on.
  • Change messages, their color, size and display time.
  • Change rules and reload without a restart.

How it works:

  1. A player places a structure.
  2. The plugin checks what it was placed on and if a structure of another tribe is within range.
  3. If a rule matches, the structure is removed, its item goes back to the inventory and the player gets a message.
Ranges are in game units, one foundation is about 300. Every other tribe counts, allies too. Step by step setup in Stopping Bag and Turret Spam.

Commands:

CommandTypeDescription
PlaceRestrictor.ReloadConsole & RCONReload plugin configuration
Full command list on the wiki.
On ASA messages can be shown on screen with the optional ASA API Utils mod (CurseForge 955333).

JSON:
{
    "srdevs.net": { // srdevs.net settings, added on first start. See Auto-updates & Telemetry
        "EnableAutoUpdates": true, // Install signed updates automatically. false = nothing installs
        "DisableTelemetry": false, // true = send only update checks and update health reports
        "EnableCrashDumps": true // Send a memory snapshot with crash reports (secrets wiped first)
    },
    "Debug": false, // true = log the "PlacedOn" and "PlacedWhat" blueprints of every placed structure
    "GlobalEnemyStructureCheckRange": 3000, // Enemy check range for structures without their own range. -1 = off
    "Structures": { // Per-structure rules, keyed by structure or item blueprint
        "Blueprint'/Game/PrimalEarth/Structures/BuildingBases/StructureTurretTek.StructureTurretTek'": { // Tek Turret
            "EnemyStructureCheckRange": 3000, // Enemy check range in units (300 = one foundation). -1 = off
            "BlockPlacingOn": [ // Cannot be placed on these: structure blueprints or "Ground"
                "Blueprint'/Game/PrimalEarth/Structures/TekTier/Floor_Tek.Floor_Tek'", // Tek Foundation
                "Ground" // Placed on no structure (the ground)
            ]
        },
        "Blueprint'/Game/PrimalEarth/Structures/BuildingBases/StructureTurretBaseBP_Heavy.StructureTurretBaseBP_Heavy'": { // Heavy Turret
            "EnemyStructureCheckRange": -1, // -1 = no enemy check for this structure
            "BlockPlacingOn": [ // Cannot be placed on these: structure blueprints or "Ground"
                "Blueprint'/Game/PrimalEarth/Structures/TekTier/Floor_Tek.Floor_Tek'", // Tek Foundation
                "Ground" // Placed on no structure (the ground)
            ]
        },
        "Blueprint'/Game/PrimalEarth/Structures/SleepingBag.SleepingBag'": { // Sleeping Bag
            "EnemyStructureCheckRange": 900 // Enemy check range in units (3 foundations)
        }
    },
    "IgnoreEnemyChecks": [ // Structures that can always be placed near enemy structures (structure blueprints)
        "Blueprint'/Game/PrimalEarth/Structures/C4Charge.C4Charge'" // C4 Charge
    ],
    "Messages": { // Player messages: a plain string or an object with Message, DisplayTime, TextSize, Color
        "NotificationDisplayTime": 4, // Seconds shown. On ASA it can show on screen with the ASA API Utils mod
        "EnemyStructuresNearby": "This structure is too close to enemy structures!", // Enemy structure in range
        "PlacementRestricted": "This structure can't be placed on this!" // BlockPlacingOn matched
    }
}
Comments are only here to explain settings, keep them out of your config.json. More on the wiki: Configuration, Stopping Bag and Turret Spam.

​
Author
srdev
Downloads
780
Views
5,179
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from srdev

Latest updates

  1. 1.6 - Config and Auto-Updates

    CHANGED Plugin now ships a proper commented_config.jsonc & config.json defaults IMPROVED plugin...
  2. v1.4 - Game Update

    Updated to UE 5.8.3 FIXED returning the item when a placement is blocked, for newer versions...
  3. v1.3 - Tides of Fortune

    Fixed for Tides of Fortune (Genesis) major update (v89.31)
Back
Top