Claim Occupied & Non-Residential Buildings as Admin
Изображение 1 из 2. Материалы автора из Steam Workshop.
О материале
«Claim Occupied & Non-Residential Buildings as Admin» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
This mod is redundant as of game version ≥ 41.68
If you're an admin, you can claim buildings as a safehouse, regardless of them being currently occupied, marked as non-residential, or both.
Compatibility & Troubleshooting
-
This mod is not compatible with Claim Non-Residential Buildings, because it uses the same base code from Fenris_Wolf-tt. This mod is just an expanded version of aforementioned.
-
If your safehouse resets after server's restart, ensure that you shutting it down properly, with the /quit command.
-
If your safehouse resets after your character leaves it, make sure that your SafeHouseRemovalTime server option has a value less than 597. This value uses in-game hours, which is then converted to milliseconds, and the max value of a signed int in Java is 2147483647.
-
Tested with v41.65
How does it work?
When you bring up the lua popup menu in a building, the java engine returns a string reason why you can't claim it. It then disables that option in the menu, and sets that reason to the tooltip. The code in the paste checks all the items in the menu, finds the safehouse claim option and checks what the tooltip is. If the reason is non-residential it re-enables the option. When the claim is actually done on a building the java engine checks again if that building can be claimed. The bypassClaimChecks() function in the code snippit skips the part of java that performs that and just registers the x/y bounding box of the building which is what java does if the checks pass.
Workshop ID: 2726596901 Mod ID: claimSH
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.