A base protection system for Driftstone
Usage
Place a flag at your base. It will be kept safe when a purge occurs. Only structures outside the flag will be destroyed during a purge and only if certain conditions are met. Namely the amount of time they've existed for. There are exceptions you can use to exclude certain items in the configs. See below for examples.
Configs
[DriftstoneBaseProtection]
ItemsIgnoreDestruction=
TimeOutsideFlagsBeforeDestroySeconds=604800.0
DiscordWebhookUrl=
DisableFlags=true
FlagSizeTiny=1500
FlagSizeSmall=3000
FlagSizeLarge=9000
MaxTinyFlagsPerTribe=2
MaxLargeFlagsPerTribe=1
MaxSmallFlagsPerTribe=1
FlagSizeAdminMax=30000
NoDamageOnAdminFlags=true
NoDamageOnTinyFlags=false
NoDamageOnSmallFlags=false
NoDamageOnLargeFlags=false
SafeBaseAdminFlags=true
SafeBaseTinyFlags=false
SafeBaseSmallFlags=false
SafeBaseLargeFlags=false
MaxTotalFlagsPerTribe=-1
Configs Explained
TimeOutsideFlagsBeforeDestroySeconds: Amount of time in seconds a structure outside base claims is allowed to exist, before it's marked for destruction.
DisableFlags: If true, the purge on reboots does NOT occur.
MaxTotalFlagsPerTribe: Amount of flags TOTAL a tribe can have. Works in tandem with per flag type restrictions. -1 means unlimited, but still per flag restrictions apply.
FlagTinyDisableStructurePrevention: If false, prevents other tribes from building inside the protected area. Has side affects, mainly involving odd structures such as vac chambers, but maybe others as well. Regardless of this setting, enemy structures inside the field are NOT safe from the purge.
FlagSmallDisableStructurePrevention: See above. FlagLargeDisableStructurePrevention: See above. FlagAdminDisableStructurePrevention: See above. Item Ignore Example
ItemsIgnoreDestruction=/Game/PrimalEarth/CoreBlueprints/Items/Structures/Misc/PrimalItemStructure_SleepingBag_Hide.PrimalItemStructure_SleepingBag_Hide,/Game/PrimalEarth/CoreBlueprints/Items/Structures/Wooden/PrimalItemStructure_WoodSign.PrimalItemStructure_WoodSign
Spawn Codes
cheat giveitem "/DriftstoneBaseProtection/Structures/Small/PrimalItemStructure_DriftstoneBaseProtection_Small.PrimalItemStructure_DriftstoneBaseProtection_Small" 1 0 0
cheat giveitem "/DriftstoneBaseProtection/Structures/Admin/PrimalItemStructure_DriftstoneBaseProtection_Admin.PrimalItemStructure_DriftstoneBaseProtection_Admin" 1 0 0
cheat giveitem "/DriftstoneBaseProtection/Structures/Tiny/PrimalItemStructure_DriftstoneBaseProtection_Tiny.PrimalItemStructure_DriftstoneBaseProtection_Tiny" 1 0 0
cheat giveitem "/DriftstoneBaseProtection/Structures/Large/PrimalItemStructure_DriftstoneBaseProtection_Large.PrimalItemStructure_DriftstoneBaseProtection_Large" 1 0 0
EngramEntry_DriftstoneBaseProtection_Small_C
EngramEntry_DriftstoneBaseProtection_Tiny_C
EngramEntry_DriftstoneBaseProtection_Large_C



