-
Notifications
You must be signed in to change notification settings - Fork 6
ZenRepairPumps
NOTE: This mod is included in my modpack and can be enabled/disabled via ZenRepairPumps in ZenModPackConfig.json

This mod increases the complexity of using vehicles by adding broken petrol pumps to the game that require repair before you can use them. You can make all pumps broken by default, or specify only certain pumps that require repair.
When you install the mod and run it for the first time, a JSON config file will be generated in your server profile folder %server_root/profiles/Zenarchist/ZenRepairPumps.json
Here you can specify the message that gets sent to the player when they try to use a broken pump, as well as the message that gets sent when they try to repair a pump that is already repaired.
You can also turn on/off pumps being broken by default. If you set "DisablePumpsByDefault": 1 then all the pumps on the map will be broken, and in order to use them, players must find either a small wrench or a pipe wrench and repair the pump. Set this to 0 if you want to decide which pumps are broken.
Once the pump is repaired, it will stay functional for as long as you specify in the JSON config "TimeToBreak": 1209600 by default, which is 2 weeks in seconds).
When a pump is repaired it will be added to the list of repairable pumps. This list includes the pump's map position and 3 parameters: "Invincible", "Repaired", and "BreakTime". If you want certain pumps to be repaired by default/always working, repair a pump to have its location added to the JSON file and then you can modify its settings there.
If you set Invincible to 1 then the pump is always repaired and useable.
When a player repairs a pump, "Repaired" will be set to 1 and all players can use that pump without needing to repair it until its timer runs out.
Once the UNIX timestamp "BreakTime" expires, the pump will be set back to broken ("Repaired": 0) and players can no longer use the pump without repairing it first. Each pump's repaired status updates on server restarts, so the pump will not break again until the timer expires and the server restarts.
Config file: profiles/Zenarchist/ZenRepairablePumpsConfig.json
{
"ConfigVersion": "1.29.1", // Don't touch
"MessagePumpNotWork": "#zen_fuelpump_broken", // Message sent when using a broken pump
"MessageRepaired": "#zen_fuelpump_already_repaired", // Message sent when repairing a repaired pump
"DisablePumpsByDefault": 1, // Disable ALL pumps by default
"DamageTool": 50, // Damage wrench when repairing
"TimeToBreak": 1209600 // Time a repaired pump takes to break again (seconds)
}NOTE: The database file is saved to mpmissions/map.name/storage_1/zenarchist/ZenRepairablePumpsDB.json
To make a pump never break (eg. in safezones etc), repair the pump in-game (to generate its config in this file) and change Invincible: 1
{
"ConfigVersion": "1.29.1",
"RepairablePumps": [
{
"Location": [
7152.9169921875,
294.758544921875,
7702.88134765625
],
"Invincible": 1, // Change this
"Repaired": 1,
"BreakTime": 1777637771
}
]
}All my mods are open-source and published under the Mozilla Public License Version 2.0. Any mods based on my code must be open-source - no obfuscation!
You can modify/reupload/repack my mods if you like, but please credit any original authors/3D model/3rd-party asset creators, and keep in mind any future updates I make will not be automatically applied to repacked mods so make sure to check back from time to time for bugfixes and improvements.
If you find my mods useful, please consider buying me a coffee - it's not expected but very much appreciated: https://buymeacoffee.com/zenarchist
- General Setup Guide
- Core Mod Setup Guide
- ZenModPack Master Config
- Various Info
- Known Bugs & Issues
- Report Bug
My utility style mods for debugging etc.
Mods which affect game mechanics:
- ZenAlcohol
- ZenAllowMapBagSlot
- ZenAntiCombatLogout
- ZenAutoConvertStash
- ZenAutoStackItems
- ZenAutoWinterDetect
- ZenAutoRun
- ZenBasebuildingConfig
- ZenBatteryPASPersistence
- ZenBetterChatFont
- ZenBrokenGlasses
- ZenBuildingDescription
- ZenCarAttachments
- ZenCarBatteryIcon
- ZenCarCompass
- ZenCarGlovebox
- ZenCarsCutDownTrees
- ZenCanteenTablets
- ZenCatchRain
- ZenCauseOfDeath
- ZenChickenCoops
- ZenCraftingSounds
- ZenCraftRagHands
- ZenComboLocks
- ZenCombineJSON
- ZenDropRuinedClothing
- ZenDynamicZoneLoot
- ZenEarPlugs
- ZenFireFuel
- ZenFireWood
- ZenFireplaceStick
- ZenFishingConfig
- ZenFixCarAttachmentGUI
- ZenGraves
- ZenGroundCleaning
- ZenHideGearInCars
- ZenHints
- ZenHologram
- ZenHologramControls
- ZenImmersiveChatHUD
- ZenImmersiveLogin
- ZenInformWeaponStateBug
- ZenInventoryAnimation
- ZenKnifeGardens
- ZenLeftovers
- ZenLogPiles
- ZenMagObfuscation
- ZenMap
- ZenMicCheck
- ZenNotifications
- ZenOpenCansRock
- ZenPainting
- ZenPimpMyRide
- ZenRadioPlugin
- ZenRebuildableWells
- ZenRepairJSON
- ZenRepairPumps
- ZenRepairWells
- ZenServerGUI
- ZenShove
- ZenSplitUI
- ZenSleep
- ZenStaminaSlope
- ZenTerritories
- ZenWeaponEngrave
- ZenWoodHealth
- ZenZombieDoors
Mods which add gear to the game:
- ZenArtillery
- ZenBackwardsCaps
- ZenBookshelf
- ZenBunnyMasks
- ZenCamoCamp
- ZenCarWorkbench
- ZenChess
- ZenChristmasTreeCraft
- ZenConcussionGrenade
- ZenDoubleArmbands
- ZenFlask
- ZenFlint
- ZenGhillie
- ZenJameson
- ZenLadders
- ZenMusic
- ZenNotes
- ZenRaidAlarm
- ZenRaybans
- ZenRunes
- ZenStaticObjects
- ZenSwissKnife
- ZenTimeBomb
- ZenTireRack
- ZenTreasure
- ZenTreehouse
- ZenVikingAxe
- ZenZippoLighter
Mods which run purely server-side:
- ZenBloodDrips
- ZenCampSites
- ZenDynamicZoneLoot
- ZenLootCyclingDetection
- ZenNightConfig
- ZenPersistentTrees
- ZenShelterCargo
- ZenTreesplosions
- ZenZombieController
- ZenZombieConfig
- ZenJameson
My standalone mods