Update remove/deconstruct, add helpers

Removing and Deconstructing Objects

- Now adds colored helpers to modular objects.
- Green: Refund one kit.
- Blue:  Refund entire recipe of parts (multiple items).
- Red:	 No refund will be given. Either because the object is too damaged, or the refund feature is disabled.
- If the object has a door open while selected, no helper will display/float in the open door space.
- The gear panel will only open if a refund is available.
- If a lit fire barrel is removed, the flame will now be extinguished.
- If a plot pole is removed, plot boundary helpers will now be deleted.
- Refunds for non-modular objects are handled by their respective config settings.
- Removed non-lockable storage objects will now refund their contents.
- The corresponding storage kit will be refunded.
- If there is room outdoors, backpacks will be arranged in a neat circle close to the refund point.
- If the spawn point is too close to a building, backpacks will spawn at the player's location.
- Helpers will now appear on wrecked/ruined modular objects.
- Helper color arrays were changed to helper transparency values only, to make it easier (and safer) for server owners.

Upgrading, Downgrading, Maintaining and Packing Objects

- Now includes colored helper spheres for improved player experience.
- Reapply damage to upgraded/downgraded object if necessary.

Changes made by @Victor-the-Cleaner
This commit is contained in:
A Man
2021-09-19 18:50:14 +02:00
parent bb968698e6
commit 58c4a4d1f7
13 changed files with 2016 additions and 420 deletions

View File

@@ -34838,6 +34838,27 @@
<German>Zombifiziertes Huhn</German>
<Russian>Зомбированная курица</Russian>
</Key>
<Key ID="STR_EPOCH_DECONSTRUCT">
<English>Deconstruct %1</English>
<Russian>Деконструировать %1</Russian>
<Spanish>Deconstruir %1</Spanish>
<Czech>Dekonstruovat %1</Czech>
<French>Déconstruire %1</French>
<German>%1 abbauen</German>
<Dutch>Deconstrueren %1</Dutch>
</Key>
<Key ID="STR_EPOCH_BUILD_MOVE_TOO_FAR">
<English>You moved too far!</English>
<German>Du hast dich zu weit weg bewegt!</German>
</Key>
<Key ID="STR_EPOCH_BUILD_OBJ_MOVE_TOO_FAR">
<English>Object moved too far!</English>
<German>Objekt zu weit weg!</German>
</Key>
<Key ID="STR_EPOCH_BUILD_MOVE_TOO_FAST">
<English>You moved too fast!</English>
<German>Du hast dich zu schnell bewegt!</German>
</Key>
<!--Fix for missing strings from the buildings3.pbo, this is just a placeholder-->
<Key ID="STR_FAL_Street_Sign">