DayZ
Otillräckligt med betyg
AbandondedVehicleRemoverWithBoats
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Type: Mod, Server
Mod Type: Vehicle
Filstorlek
Lades upp
Uppdaterades
24.358 KB
2 nov, 2024 @ 14:35
17 mar @ 10:38
5 ändringsnotiser ( visa )

Abonnera för att ladda ner
AbandondedVehicleRemoverWithBoats

Beskrivning
NOW WITH HELICOPTERS! (if you're using the expansion mod)
This is a modified version of the AbandonedVehicleRemover mod.
All credit for this mod goes to ◣ ▲▼▲ who created the original, I just modified it to work with the new boats.

A vehicle is considered abandoned when:
- It has been left alone without player interaction for X amount of time (Lifetime in settings.json)
- It is not in a player's network bubble
- It is not in a territory flag's refresh radius
- It is not near (within 15m) an object that could be refreshed by a territory flag (even if none is present)

When all those conditions are met, the vehicle is deleted.

Why is this needed? Vehicles spawned via the Central Economy event system have no lifetime and thus stay on the map indefinitely (or until they are destroyed). This mod fills that gap.

Should be run as servermod (-servermod=@AbandonedVehicleRemoverWithBoats). There is no need to wipe when adding or removing this mod.

Configurable via AbandonedVehicleRemoverWithBoats/Settings.json in your server profile folder which will be created automatically.

Settings

The default settings.json looks like this:

{ "Lifetime": 1209600.0, "UpdateInterval": 1200.0, "SaveInterval": 600.0, "Logging": 1 }

Lifetime
Max lifetime of vehicles in seconds. A vehicle's lifetime will reset when it is interacted with (getting in/out, moving stuff in/out of cargo, attaching/detaching parts). Default 1209600 seconds = 14 days.

UpdateInterval
Minimum amount of time in seconds that needs to pass before a vehicle is checked if it has been abandoned. Default 1200 seconds = 20 minutes.

SaveInterval
Minimum amount of time that needs to pass before settings are saved. Default 600 seconds = 10 minutes.

Logging
Enable (1) or disable (0) logging