From 751f8c873e77f6fb0cb9b3021623b20561c6640a Mon Sep 17 00:00:00 2001 From: BuilderSky <67489968+BuilderSky@users.noreply.github.com> Date: Sun, 26 Jun 2022 14:07:06 -0500 Subject: [PATCH] Added Fuel Leak When the random setting goes off to explode/set fire to the vehicle, it will also set the Fuel Leak Rate to .15 Liters/second. --- lua/vehicle/extensions/auto/fuelStation.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/vehicle/extensions/auto/fuelStation.lua b/lua/vehicle/extensions/auto/fuelStation.lua index 9b571e3..199eddf 100644 --- a/lua/vehicle/extensions/auto/fuelStation.lua +++ b/lua/vehicle/extensions/auto/fuelStation.lua @@ -26,6 +26,7 @@ local function addFuel() if math.random() < 0.002 then beamstate.breakAllBreakgroups() fire.explodeVehicle() + energyStorage.getStorages().mainTank.currentLeakRate = .15 ui_message("Turn off your engine!", 5, "fuelStationsBoom") end end