New "hidelinkedentity" or "hidelinkedentities" subelement of MapEntityPrefab causes backwards compatibility issues and limits what can be done in the sub editor #17234
Unanswered
Sharp-Shark
asked this question in
DLC bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Companion Update adds to "Barotrauma.MapEntityPrefab" the new "hidelinkedentity"/"hidelinkedentities" subelement that accepts a tag or tags. This automatically overrides the HiddenInGame value of linked entites (see the method "HandleHidingLinkedEntity" of "Barotrauma.MapEntity"), even if the subelement isn't present. This changes the behavior of items compared to the public version and limits what can be done in the sub editor.
For example, you are unable to make this coilgun loader hidden in game because by linking it to a coilgun, it will always be unhidden unless you override the coilgun with a mod to add the "hidelinkedentities" with the tags of the coilgun loader. But if you do this, then every coilgun loader linked to a coilgun will be hidden in game.
The best solution would be to make it such that if a map entity prefab lacks the "hidelinkedentity" or "hidelinkedentities" subelement, it won't override the HiddenInGame of linked entities.
Beta Was this translation helpful? Give feedback.
All reactions