Question regarding destructible bases
-
One of the new features of ENIGMA V.4 ATG will (should) be a Special-Event where the players have the task to defend a “restricted-dockable” Ship/Base from being destroyed by NPCs. After this is accomplished for about 45 min. the Spawns are turned off and the Base is set to dockable. This is managed via a custom script and FlHook 1.67 (change dockrestriction and “rehash” )
All works fine But:
When the spawns are turned on after another 5 Mins the Npcs are able to destroy the Base. Here comes the Problem:
When it got destroyed during a Player is docked and he/she undocks after that, the result is a (AS EXPECTED) servercrash.
So here is my question:
Is there a way to set a solar/base to indestructible or regen its health ON THE FLY (meaning no need to restart the server) ?Help would be much appreciated
-
*FACEPALM… why didn´t I realize that simple solution !!!
Thank u so much w0dk4 !!!
Works fine … the only downside is, that the base doesn`t disappear, but I can live with that issue, since this is not a permanent feature, but a Special-Event.AGAIN… THX alot mate. U really made my day !!!
-
If your base is a custom model, you can cheat by making the root object essentially nothing (could be a really tiny box, or maybe even wreckage) and putting all of the actual model as a separate group. You can then use the fuse to blow that group up, thus leaving nothing/wreckage behind.
It’s more work, but it looks really nice. I just forget whether a player arriving into the system will see the destroyed base or the full one (fuses are an annoying thing).
-
They see the full one. For destroying a base persistent (which means it won’t be respawned if a player comes into the system after the object’s destruction) you need a plugin by adoxa called PersistentDestructibles.dll. I just can’t find a link to his page.
Otherwise destroyed parts of bases will be always replaced visually. The server knows they are destroyed, but anytime a player enters space after that destruction it won’t get updated.To prevent players crashing the server you can add an invisible object to space.
For example:[Object] nickname = ProxyBase pos = 0, 0, 0 archetype = dyson_airlock_inside base = MainBase_Base dock_with = MainBase_Base parent = MainBase visit = 128
Here you would add an alternative dock possibility to your base. By using “parent” you will be always redirected to the main base if a player clicks on this theoretical invisible base in space. By using visit = 128 you make sure nobody ever sees this alternative dock on the map.
You would need to tell NPCs in initialworld.ini not to dock on this alternative dock object.By putting this object below/on top of the original base you define the undock priority for players. I just don’t know if either below or on top forces players always to undock here.
-
-
Persistent Destructibles is already applied to the mod from the very start, so this issue is solved. THX anyway…
The idea to have a “parent” is quite excellent Skotty… thanks for this one aswell !Sometimes I have “BRAIN-BLOCKS” while modding…
Nice to have such experienced modders here on Starport, who are willing to help me out of my Modding-Probs…Thank u ALL !!! Very much appreciated !!!