DayZ
158 ratings
Prison
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
29.583 MB
2 Aug, 2021 @ 6:29am
1 Oct, 2024 @ 10:08am
14 Change Notes ( view )

Subscribe to download
Prison

Description
Description
This mod adds a Prison to your server. Server admins can send players to prison cell, instead of having to ban. Prisoner will loose their gear and respawn in cell. Prisoner will not be able to open doors. When prisoner die, they respawn in their cell again. Prisoner can escape from prison. You can enable integration with PVEZ lawbreaker system.

Admin commands
Admin can use chat commands:

/prison <Nickname> <cellnumber> - for example /prison Hunterz 5 - sends player Hunterz to cell 5.
/free <Nickname> - /free Hunterz - allow player Hunterz leave prison
/prisonsteamid <steamid> <cellnumber> - instead of nickname put steamid as argument (copy paste works in game) - you can send to prison offline player too, will be transfered to cell when join server next time
/freesteamid <steamid> - instead of nickname put steamid as argument

In mod SC(profile) folder, you will find Prison file, create a new text file named: admins.cfg with steam ids of admins in that file. One id per line. Only admins can use these chat commands. Chat commands and nicknames are case sensitive.

Server configuration
- PrisonDebug - show debug messages in log
- PVEZintegration - 1/0 - enable/disable
- CommandPrefix - default is "/"
- PrisonerWear - define clothing/items when prisoner respawn in their cell
- PrisonWalls - define prison area where prisoners cannot open doors
- PrisonGatePos - position where is teleported player when is free
- PrisonObjectLocations - for placing custom objects (preparation for forced labor - mining stone and so on)
- CellLocations - define spawn poins for every cell


Installation
Copy @Prison from your !Workshop folder to your server folder ( or if you are using a server panel, just add the mod )
Copy the bikey file from the Keys folder to your server's keys folder
add -mod=@Prison to your server startup parameters
When mod first time started, they create default small example config which fit to chernarusi prison island. Edit it for other maps as you need.
For persistent doors you need adjust economy.xml file - for buildings set load and save to 1 and init to 0.
As server admin you can also use for example Even more doors mod to close castle with new gate.

TODO
- forced labor (mining stone...)
- feeding prisoners (setting lunch time in config)
- admin gui

Known Issues
- when you have VPP admin tool installed, you will need to change CommandPrefix in Prison.json config to something else than "/". For example to "!"
- Expansion users should disable custom clothing at start and base respawn too
- chat command not recognize player with spaces in nickname - use steamid instead
- probably will not work when other respawning mods installed
- in every software there is at least one bug
- let me know when you found something

Further Info
No repacks allowed. Don't ask. Repacking is cancer of DayZ community.

You are allowed to look into mod for learning purposes or if you want know how it works.

Discord: https://discord.gg/49FvN7rRpF HunterzCZ#4660

Any feedback welcome!

-Hunterz-

Credits
- early adopters (testers)
- Maiar, Arrakis - custom assets based on vanilla
- Waldemar, Bear - great help with custom prison gate