DayZ
(Servono più voti)
Diesel Vehicles
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Type: Mod
Dimensioni del file
Pubblicato in data
Aggiornato in data
30.414 MB
26 dic 2023, ore 14:29
28 gen 2024, ore 11:27
9 note di rilascio ( visualizza )

Sottoscrivi per scaricare
Diesel Vehicles

Descrizione
Diesel Vehicles
A small mod to make it so that vehicles of your choosing can run on diesel instead of gasoline. By default the vanilla covered trucks and humvee are in the config, but you can easily change the config to whatever vanilla or modded vehicles you want to better fit your server.

How To Get Diesel
To get Diesel use an empty container at a fuel pump and scroll from fill with gasoline to fill with diesel (This can be enabled or disabled in the config).

I have included a jerrycan that will in spawn with diesel if you prefer the diesel to only be found or to allow players to find some in a jerrycan as well as gasoline (the vanilla jerrycan will only ever spawn with gasoline through the types.xml) the class name for this is Wilmas_DieselVehiclesCanister i have included an example types in the mod folder.

Static Fuel Tanks
There is now 2 static diesel tanks you can place "StaticObj_Wilmas_DieselFuelTank" using admin tools and will produce unlimited fuel, or via the config array using "Wilmas_DieselFuelTank" which has a limited supply of fuel up to 5000Litres (you can set the initial amount in the config) Admins can add fuel to these using Wilmas_AdminFuelTankFiller_Diesel.

Config
There will be a config file created when the server starts with the mod installed called "WilmasDieselVehicles_config.json" in your serverprofilesfolder\Wilmas (serverprofilesfolder could be called ServerProfile or SC or Config or a few other things but your should know what its called.)

Default Config
{ "ConfigVersion": "1.25", "Vehicles_You_Want_To_Use_Diesel": [ "Offroad_02", "Truck_01_Base" ], "Allow_Getting_Diesel_From_Fuel_Pumps": 1, "Allow_Diesel_To_Be_Added_To_End_Of_Diesel_Vehicles_Display_Names": 1, "TF_FuelPump_Diesel_Settings": "----------Below this is only relevant if you have TF-FuelPump Installed------------", "Diesel_MaxAmount": 10000.0, "Diesel_InitAmount": 5000.0, "Diesel_EnergyConsumptionCoef": 1.0, "Diesel_AdminRefuelAmount": 2000.0, "HypeTrain_DieselVehicles_Settings": "----------Below this is only relevant if you have HypeTrain Installed------------", "Allow_Getting_Diesel_From_HypeTrains_Default_Fuel_Source": 1, "DieselFuelTankSpawnerDescription": "----------Below this is used to spawn fuel tanks with quantity------------", "EnableSpawningFuelTanks": 0, "DieselFuelTankSpawnerList": [ { "FuelTankClassname": "Wilmas_DieselFuelTank", "Position": [ 4713.43017578125, 339.0, 10364.2001953125 ], "Orientation": [ -30.0, 0.0, 0.0 ], "FuelQuantityInLitres_5000Max": 2500 }, { "FuelTankClassname": "Wilmas_DieselFuelTank", "Position": [ 11954.2998046875, 140.0, 12519.7998046875 ], "Orientation": [ -158.9981231689453, 0.0, 0.0 ], "FuelQuantityInLitres_5000Max": 2500 } ] }
Config Explained
Refer to Discussions CLICK HERE for more information. (There is a limit on what you can post on the steam page)

You can either list individual vehicle classnames you want to be diesel, for the trucks that would be Truck_01_Covered, Truck_01_Covered_Blue, Truck_01_Covered_Orange.
Or you could use the base classname the vehicle inherits from in its config as i have done in the example Truck_01_Base to make all versions that are based on this class diesel.

Annoyingly most of the vanilla cars do not have set base classes they just inherit from one of the other colours like the Gunters.
If you wanted just the blue Gunter to be diesel for example you would just add Hatchback_02_Blue, if you wanted all Gunters to be diesel you would add Hatchback_02 as this is the class the Gunters inherit from but as this is also the class for the red Gunter you couldn't just have the red Gunter diesel unfortunately.

Most modded vehicles i have seen will have a base class set up like with my Datsun 240z it has Datsun240z_base which you could use to make all the 240z's diesel or you could go through and list any individually.

I have tried to explain as best i can(explaining things is not my strong suit), if you are unsure or have any questions join the discord linked below and ask this is the best way for me to see any questions you may have as i check discord far more often than steam.


(Optional) Variants of Vanilla Vehicles With GlowPlug
I have included variants of the vanilla vehicles with the sparkplug removed and glowplug added for more realism if you wish to use them.
ClassNames:
  • OffroadHatchback_Diesel
  • OffroadHatchback_Blue_Diesel
  • OffroadHatchback_White_Diesel
  • CivilianSedan_Diesel
  • CivilianSedan_Wine_Diesel
  • CivilianSedan_Black_Diesel
  • Hatchback_02_Diesel
  • Hatchback_02_Black_Diesel
  • Hatchback_02_Blue_Diesel
  • Sedan_02_Diesel
  • Sedan_02_Red_Diesel
  • Sedan_02_Grey_Diesel
  • Truck_01_Covered_Diesel
  • Truck_01_Covered_Blue_Diesel
  • Truck_01_Covered_Orange_Diesel
These already have DIESEL at the end of their names regardless of what "Allow_Diesel_To_Be_Added_To_End_Of_Diesel_Vehicles_Display_Names": is set to and will show in traders with Diesel at the end) the classnames DO NOT need to be listed in "Vehicles_You_Want_To_Use_Diesel": [] to use diesel fuel they are set to be diesel in the scripts.

Example events, types and spawnabletypes have been supplied in mod folder


TF:FuelPump Compatibility
If using TF:FuelPump as with gasoline you will require a truck battery to get diesel from the pump, the diesel will have its own quantity that gets saved into the TF:FuelPumps fuelstation files.
All the things that can be setup in TF:FuelPump's config can also be set up for diesel it is just done through my config instead.
Checking the fuel quantity will display both gasoline and diesel quantities and the pump can also be topped up with diesel using their admin jerrycan.
To be clear these features listed in this section are only available if using TF:Fuelpump mod as well.
See the Discussions for more info on setting up with this mod.


REPACKING AND MONETISATION
DO NOT REPACK
You may use this mod on monetised servers as long as this mod or items in this mod are not monetised.

Discord
Discord link to talk about the mod and report any bugs https://discord.gg/WMUkTsKn5Q

Support Me
This mod is free to use, but if you want to support me you can by donating, click this image below.
[ko-fi.com]
Discussioni più popolari Visualizza tutte (3)
0
28 gen 2024, ore 11:56
NEW SPAWNER IN THE CONFIG
Wilma Fingerdoo
0
28 gen 2024, ore 10:58
Config Explained
Wilma Fingerdoo
0
29 dic 2023, ore 21:39
TF:FuelPump
Wilma Fingerdoo
7 commenti
Wilma Fingerdoo  [autore] 2 ago 2024, ore 18:35 
join my discord and il post it in the general chat channel
! 2 ago 2024, ore 10:46 
ill take that as a no lol. could i ask you to help with an overwrite script maybe?
! 28 lug 2024, ore 22:25 
Oh i combine it with the fuel control mod and it also adds this prompt but i like the changes you made to cars :)
Wilma Fingerdoo  [autore] 28 lug 2024, ore 16:06 
why would you want to disable the action to add diesel fuel to vehicles? thats the whole point of the mod?
! 27 lug 2024, ore 13:34 
json in meant not xml lol
! 27 lug 2024, ore 13:08 
hey wilma, could you add an entry to the xml to disable the actions.Insert(ActionWilmasFillFuelDiesel), i tried to remove it with a script afterwards but i guess im to dumb to make it work.
Wilma Fingerdoo  [autore] 12 gen 2024, ore 10:53 
https://steamoss.com/sharedfiles/filedetails/?id=3137741712

Diesel Vehicles and Aviation Fuel Combined for those that prefer it that way.