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

Changed Status from Pending to Not a Bug

Changed Fixed In to 1.1.0

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.