Certain SAMs targeting with TC auth (See photo)Fixed

Hello, a player on my server has reported that certain SAMS on his base are still targeting minis with TC auth. I have replicated this issue and authed on every TC in his base. Please see the attached photo, the red circles are the SAMs still targeting, blue circles are TC locations. Also please note the SAMs on the roof are not targeting authed players and functioning properly.

We have tried clearing TC auth list and reauthing.

Could you use the Copy Paste plugin to copy this base and send it? So we can try to reproduce the issue with it.

NKXTQs24ExGTuL8.jpg WhiteThunder

Could you use the Copy Paste plugin to copy this base so we can try to reproduce the issue with it?

Yessir, here's the link:

sambase

Thanks, I reproduced the issue and determined the root cause. This happens because the plugin is trying to find the nearest TC using the samSite.GetBuildingPrivilege() method which has been overriden by the DecayEntity class, causing different behavior in multi TC bases. To fix, we can replace that method call with a call to an overload on the BaseEntity class that does not have this issue. I have submitted a patch to be reviewed and merged by haggbart.

In the meantime, you can test this fix by making the following change in the cs file.

Replace this:

var cupboard = samSite.GetBuildingPrivilege();

with this:

var cupboard = samSite.GetBuildingPrivilege(samSite.WorldSpaceBounds());
Locked automatically