-
Notifications
You must be signed in to change notification settings - Fork 130
/
config.lua
215 lines (176 loc) · 12.9 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
BackEngineVehicles = {
[`ninef`] = true,
[`adder`] = true,
[`vagner`] = true,
[`t20`] = true,
[`infernus`] = true,
[`zentorno`] = true,
[`reaper`] = true,
[`comet2`] = true,
[`jester`] = true,
[`jester2`] = true,
[`cheetah`] = true,
[`cheetah2`] = true,
[`prototipo`] = true,
[`turismor`] = true,
[`pfister811`] = true,
[`ardent`] = true,
[`nero`] = true,
[`nero2`] = true,
[`tempesta`] = true,
[`vacca`] = true,
[`bullet`] = true,
[`osiris`] = true,
[`entityxf`] = true,
[`turismo2`] = true,
[`fmj`] = true,
[`re7b`] = true,
[`tyrus`] = true,
[`italigtb`] = true,
[`penetrator`] = true,
[`monroe`] = true,
[`ninef2`] = true,
[`stingergt`] = true,
[`surfer`] = true,
[`surfer2`] = true,
[`comet3`] = true,
}
-- Configuration:
-- IMPORTANT: Some of these values MUST be defined as a floating point number. ie. 10.0 instead of 10
Config = {}
Config.Paid = true
Config.Price = 750
cfg = {
deformationMultiplier = -1, -- How much should the vehicle visually deform from a collision. Range 0.0 to 10.0 Where 0.0 is no deformation and 10.0 is 10x deformation. -1 = Don't touch. Visual damage does not sync well to other players.
deformationExponent = 0.5, -- How much should the handling file deformation setting be compressed toward 1.0. (Make cars more similar). A value of 1=no change. Lower values will compress more, values above 1 it will expand. Dont set to zero or negative.
collisionDamageExponent = 0.5, -- How much should the handling file deformation setting be compressed toward 1.0. (Make cars more similar). A value of 1=no change. Lower values will compress more, values above 1 it will expand. Dont set to zero or negative.
damageFactorEngine = 3.0, -- Sane values are 1 to 100. Higher values means more damage to vehicle. A good starting point is 10
damageFactorBody = 3.0, -- Sane values are 1 to 100. Higher values means more damage to vehicle. A good starting point is 10
damageFactorPetrolTank = 32.0, -- Sane values are 1 to 200. Higher values means more damage to vehicle. A good starting point is 64
engineDamageExponent = 0.3, -- How much should the handling file engine damage setting be compressed toward 1.0. (Make cars more similar). A value of 1=no change. Lower values will compress more, values above 1 it will expand. Dont set to zero or negative.
weaponsDamageMultiplier = 1.2, -- How much damage should the vehicle get from weapons fire. Range 0.0 to 10.0, where 0.0 is no damage and 10.0 is 10x damage. -1 = don't touch
degradingHealthSpeedFactor = 2, -- Speed of slowly degrading health, but not failure. Value of 10 means that it will take about 0.25 second per health point, so degradation from 800 to 305 will take about 2 minutes of clean driving. Higher values means faster degradation
cascadingFailureSpeedFactor = 4.0, -- Sane values are 1 to 100. When vehicle health drops below a certain point, cascading failure sets in, and the health drops rapidly until the vehicle dies. Higher values means faster failure. A good starting point is 8
degradingFailureThreshold = 250.0, -- Below this value, slow health degradation will set in
cascadingFailureThreshold = 200.0, -- Below this value, health cascading failure will set in
engineSafeGuard = 50.0, -- Final failure value. Set it too high, and the vehicle won't smoke when disabled. Set too low, and the car will catch fire from a single bullet to the engine. At health 100 a typical car can take 3-4 bullets to the engine before catching fire.
torqueMultiplierEnabled = true, -- Decrease engine torque as engine gets more and more damaged
limpMode = false, -- If true, the engine never fails completely, so you will always be able to get to a mechanic unless you flip your vehicle and preventVehicleFlip is set to true
limpModeMultiplier = 0.15, -- The torque multiplier to use when vehicle is limping. Sane values are 0.05 to 0.25
preventVehicleFlip = true, -- If true, you can't turn over an upside down vehicle
sundayDriver = true, -- If true, the accelerator response is scaled to enable easy slow driving. Will not prevent full throttle. Does not work with binary accelerators like a keyboard. Set to false to disable. The included stop-without-reversing and brake-light-hold feature does also work for keyboards.
sundayDriverAcceleratorCurve = 7.5, -- The response curve to apply to the accelerator. Range 0.0 to 10.0. Higher values enables easier slow driving, meaning more pressure on the throttle is required to accelerate forward. Does nothing for keyboard drivers
sundayDriverBrakeCurve = 5.0, -- The response curve to apply to the Brake. Range 0.0 to 10.0. Higher values enables easier braking, meaning more pressure on the throttle is required to brake hard. Does nothing for keyboard drivers
displayBlips = false, -- Show blips for mechanics locations
compatibilityMode = false, -- prevents other scripts from modifying the fuel tank health to avoid random engine failure with BVA 2.01 (Downside is it disabled explosion prevention)
randomTireBurstInterval = 0, -- Number of minutes (statistically, not precisely) to drive above 22 mph before you get a tire puncture. 0=feature is disabled
-- Class Damagefactor Multiplier
-- The damageFactor for engine, body and Petroltank will be multiplied by this value, depending on vehicle class
-- Use it to increase or decrease damage for each class
classDamageMultiplier = {
[0] = 0.3, -- 0: Compacts
0.3, -- 1: Sedans
0.3, -- 2: SUVs
0.3, -- 3: Coupes
0.3, -- 4: Muscle
0.3, -- 5: Sports Classics
0.3, -- 6: Sports
0.3, -- 7: Super
0.0, -- 8: Motorcycles
0.3, -- 9: Off-road
0.3, -- 10: Industrial
0.3, -- 11: Utility
0.3, -- 12: Vans
0.3, -- 13: Cycles
0.3, -- 14: Boats
0.3, -- 15: Helicopters
0.3, -- 16: Planes
0.3, -- 17: Service
0.3, -- 18: Emergency
0.3, -- 19: Military
0.3, -- 20: Commercial
0.3 -- 21: Trains
}
}
--[[
-- Alternate configuration values provided by ImDylan93 - Vehicles can take more damage before failure, and the balance between vehicles has been tweaked.
-- To use: comment out the settings above, and uncomment this section.
cfg = {
deformationMultiplier = -1, -- How much should the vehicle visually deform from a collision. Range 0.0 to 10.0 Where 0.0 is no deformation and 10.0 is 10x deformation. -1 = Don't touch
deformationExponent = 1.0, -- How much should the handling file deformation setting be compressed toward 1.0. (Make cars more similar). A value of 1=no change. Lower values will compress more, values above 1 it will expand. Dont set to zero or negative.
collisionDamageExponent = 1.0, -- How much should the handling file deformation setting be compressed toward 1.0. (Make cars more similar). A value of 1=no change. Lower values will compress more, values above 1 it will expand. Dont set to zero or negative.
damageFactorEngine = 5.1, -- Sane values are 1 to 100. Higher values means more damage to vehicle. A good starting point is 10
damageFactorBody = 5.1, -- Sane values are 1 to 100. Higher values means more damage to vehicle. A good starting point is 10
damageFactorPetrolTank = 61.0, -- Sane values are 1 to 100. Higher values means more damage to vehicle. A good starting point is 64
engineDamageExponent = 1.0, -- How much should the handling file engine damage setting be compressed toward 1.0. (Make cars more similar). A value of 1=no change. Lower values will compress more, values above 1 it will expand. Dont set to zero or negative.
weaponsDamageMultiplier = 0.124, -- How much damage should the vehicle get from weapons fire. Range 0.0 to 10.0, where 0.0 is no damage and 10.0 is 10x damage. -1 = don't touch
degradingHealthSpeedFactor = 7.4, -- Speed of slowly degrading health, but not failure. Value of 10 means that it will take about 0.25 second per health point, so degradation from 800 to 305 will take about 2 minutes of clean driving. Higher values means faster degradation
cascadingFailureSpeedFactor = 1.5, -- Sane values are 1 to 100. When vehicle health drops below a certain point, cascading failure sets in, and the health drops rapidly until the vehicle dies. Higher values means faster failure. A good starting point is 8
degradingFailureThreshold = 677.0, -- Below this value, slow health degradation will set in
cascadingFailureThreshold = 310.0, -- Below this value, health cascading failure will set in
engineSafeGuard = 100.0, -- Final failure value. Set it too high, and the vehicle won't smoke when disabled. Set too low, and the car will catch fire from a single bullet to the engine. At health 100 a typical car can take 3-4 bullets to the engine before catching fire.
torqueMultiplierEnabled = true, -- Decrease engine torge as engine gets more and more damaged
limpMode = true, -- If true, the engine never fails completely, so you will always be able to get to a mechanic unless you flip your vehicle and preventVehicleFlip is set to true
limpModeMultiplier = 0.15, -- The torque multiplier to use when vehicle is limping. Sane values are 0.05 to 0.25
preventVehicleFlip = true, -- If true, you can't turn over an upside down vehicle
sundayDriver = true, -- If true, the accelerator response is scaled to enable easy slow driving. Will not prevent full throttle. Does not work with binary accelerators like a keyboard. Set to false to disable. The included stop-without-reversing and brake-light-hold feature does also work for keyboards.
sundayDriverAcceleratorCurve = 7.5, -- The response curve to apply to the accelerator. Range 0.0 to 10.0. Higher values enables easier slow driving, meaning more pressure on the throttle is required to accelerate forward. Does nothing for keyboard drivers
sundayDriverBrakeCurve = 5.0, -- The response curve to apply to the Brake. Range 0.0 to 10.0. Higher values enables easier braking, meaning more pressure on the throttle is required to brake hard. Does nothing for keyboard drivers
displayBlips = true, -- Show blips for mechanics locations
classDamageMultiplier = {
[0] = 1.0, -- 0: Compacts
1.0, -- 1: Sedans
1.0, -- 2: SUVs
0.95, -- 3: Coupes
1.0, -- 4: Muscle
0.95, -- 5: Sports Classics
0.95, -- 6: Sports
0.95, -- 7: Super
0.27, -- 8: Motorcycles
0.7, -- 9: Off-road
0.25, -- 10: Industrial
0.35, -- 11: Utility
0.85, -- 12: Vans
1.0, -- 13: Cycles
0.4, -- 14: Boats
0.7, -- 15: Helicopters
0.7, -- 16: Planes
0.75, -- 17: Service
0.85, -- 18: Emergency
0.67, -- 19: Military
0.43, -- 20: Commercial
1.0 -- 21: Trains
}
}
]]--
-- End of Main Configuration
-- Configure Repair system
-- id=446 for wrench icon, id=72 for spraycan icon
repairCfg = {
mechanics = {
{name="Garage", id=446, r=25.0, x=-337.0, y=-135.0, z=39.0}, -- LSC Burton
{name="Garage", id=446, r=25.0, x=-1155.0, y=-2007.0, z=13.0}, -- LSC by airport
{name="Garage", id=446, r=25.0, x=734.0, y=-1085.0, z=22.0}, -- LSC La Mesa
{name="Garage", id=446, r=25.0, x=1177.0, y=2640.0, z=37.0}, -- LSC Harmony
{name="Garage", id=446, r=25.0, x=108.0, y=6624.0, z=31.0}, -- LSC Paleto Bay
{name="Garage", id=446, r=18.0, x=538.0, y=-183.0, z=54.0}, -- Mechanic Hawic
{name="Garage", id=446, r=15.0, x=1774.0, y=3333.0, z=41.0}, -- Mechanic Sandy Shores Airfield
{name="Garage", id=446, r=15.0, x=1143.0, y=-776.0, z=57.0}, -- Mechanic Mirror Park
{name="Garage", id=446, r=30.0, x=2508.0, y=4103.0, z=38.0}, -- Mechanic East Joshua Rd.
{name="Garage", id=446, r=16.0, x=2006.0, y=3792.0, z=32.0}, -- Mechanic Sandy Shores gas station
{name="Garage", id=446, r=25.0, x=484.0, y=-1316.0, z=29.0}, -- Hayes Auto, Little Bighorn Ave.
{name="Garage", id=446, r=33.0, x=-1419.0, y=-450.0, z=36.0}, -- Hayes Auto Body Shop, Del Perro
{name="Garage", id=446, r=33.0, x=268.0, y=-1810.0, z=27.0}, -- Hayes Auto Body Shop, Davis
-- {name="Mechanic", id=446, r=24.0, x=288.0, y=-1730.0, z=29.0}, -- Hayes Auto, Rancho (Disabled, looks like a warehouse for the Davis branch)
{name="Garage", id=446, r=27.0, x=1915.0, y=3729.0, z=32.0}, -- Otto's Auto Parts, Sandy Shores
{name="Garage", id=446, r=45.0, x=-29.0, y=-1665.0, z=29.0}, -- Mosley Auto Service, Strawberry
{name="Garage", id=446, r=44.0, x=-212.0, y=-1378.0, z=31.0}, -- Glass Heroes, Strawberry
{name="Garage", id=446, r=33.0, x=258.0, y=2594.0, z=44.0}, -- Mechanic Harmony
{name="Garage", id=446, r=18.0, x=-32.0, y=-1090.0, z=26.0}, -- Simeons
--{name="Garage", id=446, r=25.0, x=-211.0, y=-1325.0, z=31.0}, -- Bennys
{name="Garage", id=446, r=25.0, x=903.0, y=3563.0, z=34.0}, -- Auto Repair, Grand Senora Desert
{name="Garage", id=446, r=25.0, x=437.0, y=3568.0, z=38.0} -- Auto Shop, Grand Senora Desert
},
fixMessageCount = 7,
noFixMessageCount = 6
}