Jump to content

Could the remove symmetry be expanded?

Not a Bug 1.0.9 1.1.0

Nahpalm
Nahpalm

Posted

Currently, the only way to remove symmetrically is with the hammer. This isn't ideal since there is a time limit associated with this.

Could you add a listener to "OnEntityDeath" so we can shoot out thatch, or another plugin could "hurt" the pieces to destroy them and trigger the symmetrical remove?

 

Here's a sample of the code I'm requesting to be placed after the current OnStructureDemolish block:

        private void OnEntityDeath(BaseCombatEntity entity, HitInfo info)
        {
            var player = info.InitiatorPlayer;

            if (entity == null || player == null) return;
            var buildOptions = GetBuildOptions(player.userID);
            
            if (buildOptions.SymmetryEnabled)
            {
                DemolishByType(buildOptions.SymmetryShape, buildOptions.SymmetryType, buildOptions.StartPoint, entity,
                buildOptions.StartRotation);
            }
        }

 

shady14u

Posted

i will add a config setting for this as it will violate default destroy rules

 

shady14u

Posted

I have added RemoverTool Support

 

shady14u

Posted

Changed Status from Pending to Not a Bug

Changed Fixed In to 1.1.0

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.9k
Customers served
Files Sold
156.6k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.