forked from Simnation/Main
106 lines
No EOL
3.6 KiB
Lua
106 lines
No EOL
3.6 KiB
Lua
-----------------------------------------------------------------------------------------------------------
|
|
------------------------------------------- VEHICLE SERVICING ---------------------------------------------
|
|
-----------------------------------------------------------------------------------------------------------
|
|
--
|
|
-- In here you can modify the various wearable vehicle parts. Please don't remove any options in here as
|
|
-- it could have undesirable effects, and instead just disable servicing altogether in config.lua if you
|
|
-- don't want this functionality to be enabled.
|
|
--
|
|
-- Read on for explanations of what each of the options mean in here
|
|
--
|
|
-----------------------------------------------------------------------------------------------------------
|
|
-- enableDamage Enable or disable this specific part. Disabling it means that it won't wear
|
|
-- as the vehicle drives, and will remain at 100%
|
|
-----------------------------------------------------------------------------------------------------------
|
|
-- lifespanInKm This is probably the ONLY option you should mess with. This allows you to
|
|
-- configure how quickly parts wear and need replacing based on mileage
|
|
--
|
|
-- 250 = 0% health of the part after 250km and will noticely affect the vehicle
|
|
-----------------------------------------------------------------------------------------------------------
|
|
-- itemName The name of the required item to replace the part
|
|
-----------------------------------------------------------------------------------------------------------
|
|
-- itemQuantity The number of the above item required to replace the part
|
|
-----------------------------------------------------------------------------------------------------------
|
|
-- restricted Either "combustion" or "electric". Restricts parts to a certain engine type
|
|
-----------------------------------------------------------------------------------------------------------
|
|
|
|
Config.Servicing = {
|
|
suspension = {
|
|
enableDamage = false,
|
|
lifespanInKm = 1000,
|
|
itemName = "suspension_parts",
|
|
itemQuantity = 1
|
|
},
|
|
tyres = {
|
|
enableDamage = false,
|
|
lifespanInKm = 250,
|
|
itemName = "tyre_replacement",
|
|
itemQuantity = 4
|
|
},
|
|
brakePads = {
|
|
enableDamage = false,
|
|
lifespanInKm = 500,
|
|
itemName = "brakepad_replacement",
|
|
itemQuantity = 4
|
|
},
|
|
|
|
--
|
|
-- Combustion engines only
|
|
--
|
|
engineOil = {
|
|
enableDamage = false,
|
|
lifespanInKm = 200,
|
|
itemName = "engine_oil",
|
|
itemQuantity = 1,
|
|
restricted = "combustion",
|
|
},
|
|
clutch = {
|
|
enableDamage = false,
|
|
lifespanInKm = 500,
|
|
itemName = "clutch_replacement",
|
|
itemQuantity = 1,
|
|
restricted = "combustion",
|
|
},
|
|
airFilter = {
|
|
enableDamage = false,
|
|
lifespanInKm = 250,
|
|
itemName = "air_filter",
|
|
itemQuantity = 1,
|
|
restricted = "combustion",
|
|
},
|
|
sparkPlugs = {
|
|
enableDamage = false,
|
|
lifespanInKm = 200,
|
|
itemName = "spark_plug",
|
|
itemQuantity = 4,
|
|
restricted = "combustion",
|
|
},
|
|
|
|
--
|
|
-- Electric vehicles only
|
|
--
|
|
evMotor = {
|
|
enableDamage = false,
|
|
electric = true,
|
|
lifespanInKm = 2000,
|
|
itemName = "ev_motor",
|
|
itemQuantity = 1,
|
|
restricted = "electric",
|
|
},
|
|
evBattery = {
|
|
enableDamage = false,
|
|
electric = true,
|
|
lifespanInKm = 500,
|
|
itemName = "ev_battery",
|
|
itemQuantity = 1,
|
|
restricted = "electric",
|
|
},
|
|
evCoolant = {
|
|
enableDamage = false,
|
|
electric = true,
|
|
lifespanInKm = 250,
|
|
itemName = "ev_coolant",
|
|
itemQuantity = 1,
|
|
restricted = "electric",
|
|
}
|
|
} |