WheteThunger / MonumentAddons

Add entities, spawn points and more to monuments
https://umod.org/plugins/monument-addons
MIT License
5 stars 9 forks source link

Persist skulls inside skull trophies #37

Closed WheteThunger closed 1 year ago

WheteThunger commented 2 years ago

Server owners want the ability to place a skull into a skull trophy and have that skull automatically added whenever the trophy is respawned. We should also add a way to prevent players from removing the skulls.

Suggested here: https://umod.org/community/monument-addons/42488-trophy-skull-support

One way to achieve this would be to implement a generic feature which allows saving container items, which would be recorded when running masave, or a new command like masaveitems to avoid saving items when running masave for other containers like vending machines. #23 could be used to lock the container to prevent players from accessing it. We should analyze if there are any other container types that could benefit from generically saving items.

If we don't implement a generic item saving feature, we could achieve this use case by implementing a command like maskull <name> which would record the skull name, add a skull, set the skull to that name, and lock the container.