@adatechnology/game-vehicles-fleet 7.0.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.d.ts +48 -2
- package/dist/index.global.js +1053 -86
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1053 -86
- package/dist/index.js.map +1 -1
- package/package.json +9 -7
package/dist/index.global.js
CHANGED
|
@@ -21,6 +21,7 @@ var GameVehiclesFleet = (() => {
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
var index_exports = {};
|
|
23
23
|
__export(index_exports, {
|
|
24
|
+
FLEET_ACCELERATION_SOURCES: () => FLEET_ACCELERATION_SOURCES,
|
|
24
25
|
FLEET_FOUR_WHEEL_DRIVE: () => FLEET_FOUR_WHEEL_DRIVE,
|
|
25
26
|
agricultural: () => agricultural,
|
|
26
27
|
air: () => air,
|
|
@@ -30,6 +31,7 @@ var GameVehiclesFleet = (() => {
|
|
|
30
31
|
createFleetPack: () => createFleetPack,
|
|
31
32
|
createScenarios: () => createScenarios,
|
|
32
33
|
enLocale: () => en_default,
|
|
34
|
+
fleetCabinCategoryOf: () => fleetCabinCategoryOf,
|
|
33
35
|
fleetCard: () => fleetCard,
|
|
34
36
|
fleetDims: () => fleetDims,
|
|
35
37
|
fleetGroupIds: () => fleetGroupIds,
|
|
@@ -39,6 +41,8 @@ var GameVehiclesFleet = (() => {
|
|
|
39
41
|
fleetProvingSubject: () => fleetProvingSubject,
|
|
40
42
|
fleetStats: () => fleetStats,
|
|
41
43
|
fleetVehicleIds: () => fleetVehicleIds,
|
|
44
|
+
fleetVehicleTypeOf: () => fleetVehicleTypeOf,
|
|
45
|
+
fleetWheelLayout: () => fleetWheelLayout,
|
|
42
46
|
heavy: () => heavy,
|
|
43
47
|
installFleet: () => installFleet,
|
|
44
48
|
legacyGlassLabels: () => legacyGlassLabels,
|
|
@@ -4912,8 +4916,9 @@ var GameVehiclesFleet = (() => {
|
|
|
4912
4916
|
c.rod(new V3(hx + 0.88, ih + 0.97, z - 0.05), new V3(hx + 0.78, ih + 1.12, z - 0.05), 0.012, MT.chrome);
|
|
4913
4917
|
c.sphere(0.025, MT.plastic, hx + 0.78, ih + 1.12, z - 0.05);
|
|
4914
4918
|
});
|
|
4915
|
-
kit.seat(c, hx + 0.05, ih, 0.45, { w: 0.52, h: 0.62, back: 0.6, lean: 0.12, mat: CM("#25282b", { roughness: 0.8 }) });
|
|
4916
|
-
kit.seat(c, hx + 0.05, ih, -0.45, { w: 0.52, h: 0.62, back: 0.6, lean: 0.12, mat: CM("#25282b", { roughness: 0.8 }) });
|
|
4919
|
+
kit.seat(c, hx + 0.05, ih, 0.45, { w: 0.52, h: 0.62, back: 0.6, lean: 0.12, mat: CM("#25282b", { roughness: 0.8 }), role: "front_passenger" });
|
|
4920
|
+
kit.seat(c, hx + 0.05, ih, -0.45, { w: 0.52, h: 0.62, back: 0.6, lean: 0.12, mat: CM("#25282b", { roughness: 0.8 }), id: "driver", role: "driver" });
|
|
4921
|
+
c.addDoor({ id: "cabin_door", widthMetres: 0.72, heightMetres: 1.65 });
|
|
4917
4922
|
c.roundBox(0.45, 0.42, 1.9, 0.04, CM("#25282b", { roughness: 0.8 }), hx - 1.35, ih + 0.21, 0.1);
|
|
4918
4923
|
c.seatTops.push({ x: hx - 1.35, y: ih + 0.44, z: 0.1, w: 1.8, l: 0.4 });
|
|
4919
4924
|
c.roundBox(3, 0.02, 2, 0.01, CM("#3a3f44", { roughness: 0.9 }), hx, hy0 + hh - 0.06, 0).castShadow = false;
|
|
@@ -5858,8 +5863,9 @@ var GameVehiclesFleet = (() => {
|
|
|
5858
5863
|
m.tumble = T;
|
|
5859
5864
|
m.frontQuad = qf;
|
|
5860
5865
|
if (intr && s.shelf) {
|
|
5861
|
-
const sx0 = gh.rb + 0.03, sx1 = gh.rb + s.shelf;
|
|
5862
|
-
|
|
5866
|
+
const sx0 = gh.rb + 0.03, sx1 = Math.min(gh.rb + s.shelf, gh.rb + 0.26);
|
|
5867
|
+
if (sx1 > sx0 + 0.04)
|
|
5868
|
+
c.roundBox(sx1 - sx0, 0.014, gh.Wg - 0.24, 6e-3, CM("#1b1c1e", { roughness: 0.92 }), (sx0 + sx1) / 2, gh.belt - 0.02, 0).castShadow = false;
|
|
5863
5869
|
}
|
|
5864
5870
|
if (intr)
|
|
5865
5871
|
kit.interior(
|
|
@@ -5870,11 +5876,17 @@ var GameVehiclesFleet = (() => {
|
|
|
5870
5876
|
ft: gh.ft,
|
|
5871
5877
|
rb: gh.rb,
|
|
5872
5878
|
rt: gh.rt,
|
|
5873
|
-
roof:
|
|
5879
|
+
roof: gh.roof + 0.02,
|
|
5874
5880
|
belt: gh.belt,
|
|
5875
|
-
floor: s.bottomY + 0.
|
|
5881
|
+
floor: s.bottomY + 0.02,
|
|
5882
|
+
seatH: 0.12,
|
|
5883
|
+
dashD: 0.32,
|
|
5884
|
+
dashH: 0.24,
|
|
5885
|
+
visorUp: true,
|
|
5876
5886
|
zIn: gh.Wg / 2 - 0.09,
|
|
5877
5887
|
zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
|
|
5888
|
+
xFront: s.shelf ? gh.fb - 0.86 : void 0,
|
|
5889
|
+
rowPitch: s.shelf ? 0.72 : void 0,
|
|
5878
5890
|
xRear: gh.rb + 0.06
|
|
5879
5891
|
},
|
|
5880
5892
|
intr
|
|
@@ -6422,7 +6434,7 @@ var GameVehiclesFleet = (() => {
|
|
|
6422
6434
|
]);
|
|
6423
6435
|
c2.roundBox(0.03, 0.05, 0.16, 0.012, MT.trim, I.S.endX(-1, 0.84) - 0.01, 0.84, 0);
|
|
6424
6436
|
},
|
|
6425
|
-
interior: { rows: 2, col: "#4a4c52", trim: "#26272a" },
|
|
6437
|
+
interior: { rows: 2, col: "#4a4c52", trim: "#26272a", rowPitch: 0.72 },
|
|
6426
6438
|
hood: { motor: "gasoline" },
|
|
6427
6439
|
wheels: [
|
|
6428
6440
|
[1.17, 0.2875, 0.175, wheelOpts("hubcap")],
|
|
@@ -7922,7 +7934,7 @@ var GameVehiclesFleet = (() => {
|
|
|
7922
7934
|
const lip = K.grid(-1, 0, { z1: 0.7, y0: 0.88, y1: 0.97, du: 0.03, dv: 0.02 });
|
|
7923
7935
|
K.skin(lip, GLOSS, { u0: 0.05, u1: 0.95, yb: 0.925, yt: 0.955, off: 0.016, thick: 0.02, nv: 2 });
|
|
7924
7936
|
},
|
|
7925
|
-
interior: { rows: 2, col: "#1c1d20", trim: "#121316" },
|
|
7937
|
+
interior: { rows: 2, col: "#1c1d20", trim: "#121316", xFront: -0.46, rowPitch: 0.62 },
|
|
7926
7938
|
hood: { motor: "v8_na" },
|
|
7927
7939
|
wheels: [
|
|
7928
7940
|
[1.35, 0.3435, 0.255, { rim: ALLOYD, spokeMat: ALLOY, spokes: 10, rimR: 0.72 }],
|
|
@@ -8185,16 +8197,20 @@ var GameVehiclesFleet = (() => {
|
|
|
8185
8197
|
x: xd - 0.07,
|
|
8186
8198
|
y: belt + 0.02,
|
|
8187
8199
|
w: zi * 2,
|
|
8188
|
-
d: 0.
|
|
8189
|
-
h: Math.min(0.
|
|
8200
|
+
d: 0.34,
|
|
8201
|
+
h: Math.min(0.28, belt - fl - 0.16),
|
|
8190
8202
|
drv: -zi * 0.52,
|
|
8191
8203
|
mat: trim,
|
|
8192
8204
|
top: fab
|
|
8193
8205
|
});
|
|
8194
8206
|
kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.22, tilt: 1.12, col: 0.5, mat: trim });
|
|
8195
8207
|
const sx = Math.max(f - len + 0.62, xd - 1.08);
|
|
8196
|
-
kit.seat(c, sx, fl, -zi * 0.52, { w: 0.
|
|
8197
|
-
kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.
|
|
8208
|
+
kit.seat(c, sx, fl, -zi * 0.52, { w: 0.52, mat: fab, h: 0.24, back: 0.64, lean: 0.18, id: "driver", role: "driver" });
|
|
8209
|
+
kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.24, back: 0.6, lean: 0.18, role: "front_passenger" });
|
|
8210
|
+
const doorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
|
|
8211
|
+
const doorH = Math.max(1.05, ry - fl - 0.1);
|
|
8212
|
+
c.addDoor({ id: "door_front_left", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
|
|
8213
|
+
c.addDoor({ id: "door_front_right", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
|
|
8198
8214
|
c.rod(new V3(sx + 0.55, fl, -0.05), new V3(sx + 0.5, fl + 0.48, -0.08), 0.014, MT.chrome);
|
|
8199
8215
|
c.sphere(0.035, MT.plastic, sx + 0.5, fl + 0.5, -0.08);
|
|
8200
8216
|
c.roundBox(0.03, ry - fl - 0.12, zi * 2, 0.01, trim, f - len + 0.07, (ry + fl) / 2, 0);
|
|
@@ -8971,7 +8987,8 @@ var GameVehiclesFleet = (() => {
|
|
|
8971
8987
|
kit.busRows(c, { x0: dx0 - 0.15, x1: -4.15, pitch: 0.64, floor: fl, zIn: zi, aisle: 0.46, col: "#355a7a", ceil: 2.95, seatH: 0.4 });
|
|
8972
8988
|
kit.dashboard(c, { x: f - 0.05, y: 1.42, w: zi * 2, d: 0.42, h: 0.4, drv: -0.7, mat: CM("#202124"), top: CM("#2a2b2e") });
|
|
8973
8989
|
kit.steeringWheel(c, f - 0.6, 1.48, -0.7, { r: 0.25, tilt: 1.1, col: 0.45 });
|
|
8974
|
-
kit.seat(c, f - 1.05, fl, -0.7, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.45 });
|
|
8990
|
+
kit.seat(c, f - 1.05, fl, -0.7, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.45, id: "driver", role: "driver" });
|
|
8991
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.85, heightMetres: 1.95 });
|
|
8975
8992
|
c.roundBox(0.9, 0.38, 0.5, 0.08, CM("#2a2b2d"), f - 0.6, fl + 0.19, -0.05);
|
|
8976
8993
|
c.rod(new V3(dx0 - 0.05, fl, zi - 0.35), new V3(dx0 - 0.05, 2.95, zi - 0.35), 0.02, MT.chrome);
|
|
8977
8994
|
c.roundBox(L - 0.5, 0.02, zi * 2, 0.01, MT.headliner, 0, 2.98, 0).castShadow = false;
|
|
@@ -9305,9 +9322,11 @@ var GameVehiclesFleet = (() => {
|
|
|
9305
9322
|
[1, 1.5, -2.2].forEach(function(x) {
|
|
9306
9323
|
c.rod(new V3(x, fl, 0), new V3(x, 2.95, 0), 0.018, pole);
|
|
9307
9324
|
});
|
|
9308
|
-
kit.dashboard(c, { x: fx2(1.3) - 0.08, y: 1.3, w: 1.2, d: 0.
|
|
9325
|
+
kit.dashboard(c, { x: fx2(1.3) - 0.08, y: 1.3, w: 1.2, d: 0.34, h: 0.28, drv: -0.68, mat: CM("#1d1e20"), top: CM("#2a2b2e") });
|
|
9309
9326
|
kit.steeringWheel(c, f - 0.62, 1.38, -0.68, { r: 0.25, tilt: 1.15, col: 0.4 });
|
|
9310
|
-
kit.seat(c, f - 1.15, 0.6, -0.68, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.46 });
|
|
9327
|
+
kit.seat(c, f - 1.15, 0.6, -0.68, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.46, id: "driver", role: "driver" });
|
|
9328
|
+
c.addDoor({ id: "door_front_right", widthMetres: 1, heightMetres: 2.05 });
|
|
9329
|
+
c.addDoor({ id: "door_rear_right", widthMetres: 1, heightMetres: 2.05 });
|
|
9311
9330
|
c.roundBox(0.4, 0.95, 0.32, 0.05, CM("#9aa0a4", { metalness: 0.5 }), 3.95, fl + 0.48, -0.55);
|
|
9312
9331
|
[0, 2.09, 4.19].forEach(function(a) {
|
|
9313
9332
|
c.rod(
|
|
@@ -9645,7 +9664,9 @@ var GameVehiclesFleet = (() => {
|
|
|
9645
9664
|
c.cylinder(0.05, 0.05, 0.012, MT.gauge, -0.165, 1.6, 0.1, "x");
|
|
9646
9665
|
kit.steeringWheel(c, -0.38, 1.66, 0, { r: 0.2, tilt: 1, col: 0.42, mat: MT.trim });
|
|
9647
9666
|
c.roundBox(1, 0.05, 0.94, 0.02, CM("#5c5f62", { metalness: 0.5 }), -0.7, 1.12, 0);
|
|
9648
|
-
kit.seat(c, -1, 1.35, 0, { w: 0.
|
|
9667
|
+
kit.seat(c, -1.08, 1.35, 0, { w: 0.54, h: 0.16, back: 0.44, lean: 0.12, mat: MT.seat, headrest: false, id: "driver", role: "driver" });
|
|
9668
|
+
c.addDoor({ id: "cab_entry_left", widthMetres: 0.85, heightMetres: 1.15 });
|
|
9669
|
+
c.addDoor({ id: "cab_entry_right", widthMetres: 0.85, heightMetres: 1.15 });
|
|
9649
9670
|
c.roundBox(0.3, 0.2, 0.3, 0.04, dgray, -1, 1.28, 0);
|
|
9650
9671
|
[
|
|
9651
9672
|
[0.25, 1],
|
|
@@ -9997,7 +10018,11 @@ var GameVehiclesFleet = (() => {
|
|
|
9997
10018
|
const fl = 0.6, fab = CM("#2f3136", { roughness: 0.9 });
|
|
9998
10019
|
GH.liner(c, ST, -0.3, 1, fl, MT.carpet, { h: 0.03, maxW: 0.98 });
|
|
9999
10020
|
[0.26, -0.26].forEach(function(z) {
|
|
10000
|
-
kit.seat(c, 0.05, fl, z, { w: 0.
|
|
10021
|
+
kit.seat(c, 0.05, fl, z, { w: 0.48, h: 0.12, back: 0.6, lean: 0.12, mat: fab, role: "pilot" });
|
|
10022
|
+
if (z < 0) {
|
|
10023
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.68, heightMetres: 0.95 });
|
|
10024
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.68, heightMetres: 0.95 });
|
|
10025
|
+
}
|
|
10001
10026
|
EA.pedals(c, 1.15, fl, z);
|
|
10002
10027
|
});
|
|
10003
10028
|
c.roundBox(0.35, 0.5, 0.24, 0.05, CM("#232427"), 0.95, fl + 0.28, 0, { rot: [0, 0, 0.35] });
|
|
@@ -10365,7 +10390,11 @@ var GameVehiclesFleet = (() => {
|
|
|
10365
10390
|
const fl = 0.68, fab = CM("#4b4339", { roughness: 0.9 });
|
|
10366
10391
|
GH.liner(c, ST, -0.6, 1.8, fl, MT.carpet, { h: 0.03, maxW: 1.15 });
|
|
10367
10392
|
[0.3, -0.3].forEach(function(z) {
|
|
10368
|
-
kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.
|
|
10393
|
+
kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.28, back: 0.64, lean: 0.12, mat: fab, role: "pilot" });
|
|
10394
|
+
if (z < 0) {
|
|
10395
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.05 });
|
|
10396
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.05 });
|
|
10397
|
+
}
|
|
10369
10398
|
EA.cyclic(c, 1.4, fl, z);
|
|
10370
10399
|
EA.pedals(c, 2.1, fl, z);
|
|
10371
10400
|
});
|
|
@@ -10769,7 +10798,11 @@ var GameVehiclesFleet = (() => {
|
|
|
10769
10798
|
const fl = 0.7, fab = CM("#2c3540", { roughness: 0.9 });
|
|
10770
10799
|
GH.liner(c, ST, -2.9, 2.5, fl, MT.carpet, { h: 0.03, maxW: 1.5 });
|
|
10771
10800
|
[0.42, -0.42].forEach(function(z) {
|
|
10772
|
-
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab });
|
|
10801
|
+
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab, role: "pilot" });
|
|
10802
|
+
if (z < 0) {
|
|
10803
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
|
|
10804
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
|
|
10805
|
+
}
|
|
10773
10806
|
EA.cyclic(c, 1.95, fl, z);
|
|
10774
10807
|
EA.pedals(c, 2.75, fl, z);
|
|
10775
10808
|
});
|
|
@@ -11202,10 +11235,12 @@ var GameVehiclesFleet = (() => {
|
|
|
11202
11235
|
kit.cutMesh(fus, [EA.sideCutP(tdP, 0.5)], 40, { sub: 0.12 });
|
|
11203
11236
|
EA.colorize(fus.geometry, col);
|
|
11204
11237
|
const fab = CM("#2e3328", { roughness: 0.85 });
|
|
11205
|
-
kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.
|
|
11238
|
+
kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.1, back: 0.7, lean: 0.15, mat: fab, role: "pilot" });
|
|
11206
11239
|
c.roundBox(0.2, 0.3, 0.6, 0.04, CM("#232427"), 5.35, 1.98, 0, { rot: [0, 0, 0.3] });
|
|
11207
11240
|
c.roundBox(0.2, 0.2, 0.15, 0.03, MT.plastic, 5.25, 2.15, 0);
|
|
11208
|
-
kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.
|
|
11241
|
+
kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.1, back: 0.72, lean: 0.15, mat: fab, role: "pilot" });
|
|
11242
|
+
c.addDoor({ id: "canopy_left", widthMetres: 0.72, heightMetres: 0.95 });
|
|
11243
|
+
c.addDoor({ id: "door_cargo_left", widthMetres: 0.9, heightMetres: 1.15 });
|
|
11209
11244
|
EA.instPanel(c, 3.85, 2.62, 0.8, { gauges: 6, z0: -0.25, tilt: 0.3, screens: [[0.05, 0.2, 0.14, 0.18]] });
|
|
11210
11245
|
EA.cyclic(c, 3.55, 2.12, 0);
|
|
11211
11246
|
EA.collective(c, 3.3, 2.12, -0.38);
|
|
@@ -12017,6 +12052,10 @@ var GameVehiclesFleet = (() => {
|
|
|
12017
12052
|
mirrorCol: "#22231d",
|
|
12018
12053
|
wheels: []
|
|
12019
12054
|
};
|
|
12055
|
+
s.interior = Object.assign(
|
|
12056
|
+
{ floor: s.bottomY + 0.02, roof: s.gh.roof + 0.02, seatH: 0.14, dashD: 0.32, dashH: 0.24, visorUp: true },
|
|
12057
|
+
s.interior || {}
|
|
12058
|
+
);
|
|
12020
12059
|
kit.car(c, s);
|
|
12021
12060
|
[xf, xr].forEach(function(x) {
|
|
12022
12061
|
;
|
|
@@ -12281,8 +12320,8 @@ var GameVehiclesFleet = (() => {
|
|
|
12281
12320
|
x: xd - 0.07,
|
|
12282
12321
|
y: belt + 0.02,
|
|
12283
12322
|
w: zi * 2,
|
|
12284
|
-
d: 0.
|
|
12285
|
-
h: Math.min(0.
|
|
12323
|
+
d: 0.34,
|
|
12324
|
+
h: Math.min(0.28, belt - fl - 0.16),
|
|
12286
12325
|
drv: -zi * 0.52,
|
|
12287
12326
|
mat: trim,
|
|
12288
12327
|
top: fab,
|
|
@@ -12290,8 +12329,12 @@ var GameVehiclesFleet = (() => {
|
|
|
12290
12329
|
});
|
|
12291
12330
|
kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.23, tilt: 1.12, col: 0.5, mat: trim });
|
|
12292
12331
|
const sx = Math.max(f - len + 0.62, xd - 1.08);
|
|
12293
|
-
kit.seat(c, sx, fl, -zi * 0.52, { w: 0.
|
|
12294
|
-
kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.
|
|
12332
|
+
kit.seat(c, sx, fl, -zi * 0.52, { w: 0.52, mat: fab, h: 0.24, back: 0.64, lean: 0.18, id: "driver", role: "driver" });
|
|
12333
|
+
kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.24, back: 0.6, lean: 0.18, role: "front_passenger" });
|
|
12334
|
+
const mDoorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
|
|
12335
|
+
const mDoorH = Math.max(1.05, ry - fl - 0.1);
|
|
12336
|
+
c.addDoor({ id: "door_front_left", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
|
|
12337
|
+
c.addDoor({ id: "door_front_right", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
|
|
12295
12338
|
c.rod(new V3(sx + 0.55, fl, -0.05), new V3(sx + 0.5, fl + 0.48, -0.08), 0.014, OLIVE_STEEL);
|
|
12296
12339
|
c.sphere(0.035, BLACK, sx + 0.5, fl + 0.5, -0.08);
|
|
12297
12340
|
c.roundBox(0.25, 0.16, 0.34, 0.02, CM("#3b402d", { roughness: 0.7 }), xd - 0.35, belt + 0.12, 0.1);
|
|
@@ -12833,7 +12876,9 @@ var GameVehiclesFleet = (() => {
|
|
|
12833
12876
|
[-0.9, -2.2].forEach(function(x) {
|
|
12834
12877
|
c.roundBox(0.3, 0.04, 0.1, 0.02, RED_LIGHT, x, roofY - 0.1, 0).castShadow = false;
|
|
12835
12878
|
});
|
|
12836
|
-
kit.seat(c, 0.95, fl + 0.1, -0.62, { w: 0.5, h: 0.42, back: 0.62, lean: 0.12, mat: CM("#2f3226", { roughness: 0.9 }) });
|
|
12879
|
+
kit.seat(c, 0.95, fl + 0.1, -0.62, { w: 0.5, h: 0.42, back: 0.62, lean: 0.12, mat: CM("#2f3226", { roughness: 0.9 }), id: "driver", role: "driver" });
|
|
12880
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.58, heightMetres: 0.6 });
|
|
12881
|
+
c.addDoor({ id: "ramp_rear", widthMetres: 1.4, heightMetres: 1.35 });
|
|
12837
12882
|
kit.steeringWheel(c, 1.5, 1.42, -0.62, { r: 0.2, tilt: 0.9, col: 0.35 });
|
|
12838
12883
|
c.roundBox(0.35, 0.3, 0.7, 0.04, CM("#25261f"), 1.85, 1.45, -0.6);
|
|
12839
12884
|
kit.seat(c, 0.15, fl, 0, { w: 0.5, h: 0.45, back: 0.62, lean: 0.12, mat: CM("#2f3226", { roughness: 0.9 }) });
|
|
@@ -13202,7 +13247,9 @@ var GameVehiclesFleet = (() => {
|
|
|
13202
13247
|
});
|
|
13203
13248
|
const fl = 0.72, fab = CM("#2f3226", { roughness: 0.9 });
|
|
13204
13249
|
c.roundBox(3, 0.04, 1.6, 0.01, MT.carpet, 0.2, fl, 0);
|
|
13205
|
-
kit.seat(c, 1, fl
|
|
13250
|
+
kit.seat(c, 1, fl, -0.55, { w: 0.46, h: 0.14, back: 0.5, lean: 0.25, mat: fab, id: "driver", role: "driver" });
|
|
13251
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.54, heightMetres: 0.58 });
|
|
13252
|
+
c.addDoor({ id: "hatch_commander", widthMetres: 0.6, heightMetres: 0.6 });
|
|
13206
13253
|
kit.steeringWheel(c, 1.5, 1.38, -0.55, { r: 0.18, tilt: 0.9, col: 0.3 });
|
|
13207
13254
|
c.roundBox(0.3, 0.26, 0.6, 0.04, CM("#25261f"), 1.75, 1.35, -0.5);
|
|
13208
13255
|
const nT = c.vehicle.children.length;
|
|
@@ -13250,8 +13297,8 @@ var GameVehiclesFleet = (() => {
|
|
|
13250
13297
|
for (let k = 0; k < 4; k++)
|
|
13251
13298
|
c.rod(new V3(tx - 1.55, ty + 0.14, -0.6 + k * 0.4), new V3(tx - 1.55, ty + 0.4, -0.6 + k * 0.4), 0.015, OLIVE_STEEL);
|
|
13252
13299
|
c.rod(new V3(tx - 1.55, ty + 0.4, -0.65), new V3(tx - 1.55, ty + 0.4, 0.65), 0.015, OLIVE_STEEL);
|
|
13253
|
-
kit.seat(c, tx - 0.4, fl + 0.
|
|
13254
|
-
kit.seat(c, tx - 0.4, fl + 0.
|
|
13300
|
+
kit.seat(c, tx - 0.4, fl + 0.12, 0.42, { w: 0.46, h: 0.16, back: 0.45, lean: 0.1, mat: fab, role: "crew" });
|
|
13301
|
+
kit.seat(c, tx - 0.4, fl + 0.12, -0.42, { w: 0.46, h: 0.16, back: 0.45, lean: 0.1, mat: fab, role: "crew" });
|
|
13255
13302
|
c.roundBox(0.8, 0.3, 0.3, 0.05, BARREL, tx + 0.1, ty + 0.1, 0);
|
|
13256
13303
|
c.roundBox(1.6, 0.02, 1.2, 0.01, MT.headliner, tx - 0.2, ty + 0.66, 0).castShadow = false;
|
|
13257
13304
|
rigid(c, c.vehicle.children.slice(nT));
|
|
@@ -13444,7 +13491,18 @@ var GameVehiclesFleet = (() => {
|
|
|
13444
13491
|
{ rot: [0, 0, -0.18] }
|
|
13445
13492
|
);
|
|
13446
13493
|
hatch(c, 2.05, roofY - 0.1, -0.78, 0.28, 0, OLIVE_STEEL, { yaw: 0 });
|
|
13447
|
-
kit.seat(c, 1.
|
|
13494
|
+
kit.seat(c, 1.65, 0.3, -0.76, {
|
|
13495
|
+
w: 0.46,
|
|
13496
|
+
h: 0.14,
|
|
13497
|
+
back: 0.5,
|
|
13498
|
+
lean: 0.5,
|
|
13499
|
+
mat: CM("#2f3226", { roughness: 0.9 }),
|
|
13500
|
+
id: "driver",
|
|
13501
|
+
role: "driver",
|
|
13502
|
+
headroomMetres: 0.9
|
|
13503
|
+
});
|
|
13504
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.56, heightMetres: 0.58 });
|
|
13505
|
+
c.addDoor({ id: "hatch_commander", widthMetres: 0.68, heightMetres: 0.68 });
|
|
13448
13506
|
[-0.95, -0.78, -0.61].forEach(function(z, i) {
|
|
13449
13507
|
periscope(c, 2.3, roofY - 0.08, z, 0.14, i === 1 ? lbl("driver_periscope") : null);
|
|
13450
13508
|
});
|
|
@@ -13521,9 +13579,9 @@ var GameVehiclesFleet = (() => {
|
|
|
13521
13579
|
});
|
|
13522
13580
|
c.roundBox(0.25, 0.3, 1.6, 0.06, CANVAS2, bx + 0.12, ty + 0.4, 0);
|
|
13523
13581
|
c.part("cargo", trl("labels.luggage_basket"), null, new V3(bx + 0.1, ty + 0.5, 0), 1);
|
|
13524
|
-
kit.seat(c, tx - 0.55, ty - 0.45, 0.6, { w: 0.
|
|
13525
|
-
kit.seat(c, tx + 0.2, ty - 0.55, 0.62, { w: 0.
|
|
13526
|
-
kit.seat(c, tx - 0.3, ty - 0.55, -0.62, { w: 0.
|
|
13582
|
+
kit.seat(c, tx - 0.55, ty - 0.45, 0.6, { w: 0.46, h: 0.16, back: 0.45, lean: 0.1, mat: fab, role: "crew" });
|
|
13583
|
+
kit.seat(c, tx + 0.2, ty - 0.55, 0.62, { w: 0.46, h: 0.16, back: 0.42, lean: 0.1, mat: fab, role: "crew" });
|
|
13584
|
+
kit.seat(c, tx - 0.3, ty - 0.55, -0.62, { w: 0.46, h: 0.16, back: 0.42, lean: 0.1, mat: fab, role: "crew" });
|
|
13527
13585
|
c.roundBox(1.1, 0.35, 0.4, 0.05, BARREL, tx + 0.6, ty + 0.35, 0.05);
|
|
13528
13586
|
c.roundBox(2.2, 0.02, 1.6, 0.01, MT.headliner, tx - 0.3, tTop - 0.08, 0).castShadow = false;
|
|
13529
13587
|
c.cylinder(0.05, 0.05, 0.03, RED_LIGHT, tx - 0.4, tTop - 0.1, 0.2);
|
|
@@ -13764,10 +13822,12 @@ var GameVehiclesFleet = (() => {
|
|
|
13764
13822
|
const fl = 0.86, fab = CM("#2f3226", { roughness: 0.9 });
|
|
13765
13823
|
c.roundBox(5.6, 0.04, 2.05, 0.01, MT.carpet, -0.4, fl, 0).castShadow = false;
|
|
13766
13824
|
[0.5, -0.5].forEach(function(z) {
|
|
13767
|
-
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab });
|
|
13768
|
-
c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK);
|
|
13769
|
-
c.sphere(0.035, BLACK, 1.95, fl + 0.57, z);
|
|
13825
|
+
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab, role: "pilot" });
|
|
13826
|
+
c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK).userData.noCabinRay = true;
|
|
13827
|
+
c.sphere(0.035, BLACK, 1.95, fl + 0.57, z).userData.noCabinRay = true;
|
|
13770
13828
|
});
|
|
13829
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.15 });
|
|
13830
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.15 });
|
|
13771
13831
|
c.roundBox(0.25, 0.45, 1.9, 0.05, CM("#232427"), 2.45, fl + 0.55, 0);
|
|
13772
13832
|
c.roundBox(0.4, 0.05, 1.95, 0.02, CM("#1a1b1d"), 2.4, fl + 0.8, 0, { rot: [0, 0, 0.25] });
|
|
13773
13833
|
[-0.75, -0.45, -0.15, 0.15, 0.45, 0.75].forEach(function(z) {
|
|
@@ -14904,9 +14964,13 @@ var GameVehiclesFleet = (() => {
|
|
|
14904
14964
|
ft: gh.ft,
|
|
14905
14965
|
rb: gh.rb,
|
|
14906
14966
|
rt: gh.rt,
|
|
14907
|
-
roof:
|
|
14967
|
+
roof: gh.roof + 0.02,
|
|
14908
14968
|
belt: gh.belt,
|
|
14909
|
-
floor: s.bottomY + 0.
|
|
14969
|
+
floor: s.bottomY + 0.02,
|
|
14970
|
+
seatH: 0.12,
|
|
14971
|
+
dashD: 0.32,
|
|
14972
|
+
dashH: 0.24,
|
|
14973
|
+
visorUp: true,
|
|
14910
14974
|
zIn: gh.Wg / 2 - 0.09,
|
|
14911
14975
|
zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
|
|
14912
14976
|
xRear: gh.rb + 0.06
|
|
@@ -18379,7 +18443,7 @@ var GameVehiclesFleet = (() => {
|
|
|
18379
18443
|
c.cylinder(0.025, 0.025, 0.2, EXH, -1.98, 0.3, z, "x");
|
|
18380
18444
|
});
|
|
18381
18445
|
c.part("engine", trl("labels.air_cooled_engine_rear"), null, new V3(-1.6, 0.55, 0), 1);
|
|
18382
|
-
const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.
|
|
18446
|
+
const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.31;
|
|
18383
18447
|
c.roundBox(1.7, 0.03, 0.62, 0.01, MT.carpet, -0.15, fl, 0).castShadow = false;
|
|
18384
18448
|
c.roundBox(0.2, 0.24, 1.14, 0.04, col, 0.66, 0.92, 0);
|
|
18385
18449
|
c.roundBox(0.16, 0.05, 1.12, 0.02, CM("#1b1c1e"), 0.6, 1.03, 0);
|
|
@@ -18390,9 +18454,18 @@ var GameVehiclesFleet = (() => {
|
|
|
18390
18454
|
c.rod(new V3(0.12, fl, 0), new V3(0.02, fl + 0.42, 0), 0.01, MT.chrome);
|
|
18391
18455
|
c.sphere(0.025, MT.plastic, 0.02, fl + 0.44, 0);
|
|
18392
18456
|
[-1, 1].forEach(function(sd) {
|
|
18393
|
-
kit.seat(c, -0.
|
|
18457
|
+
kit.seat(c, -0.08, fl, sd * 0.27, {
|
|
18458
|
+
w: 0.44,
|
|
18459
|
+
mat: fab,
|
|
18460
|
+
back: 0.58,
|
|
18461
|
+
lean: 0.2,
|
|
18462
|
+
h: 0.14,
|
|
18463
|
+
headrest: false,
|
|
18464
|
+
id: sd < 0 ? "driver" : "front_right",
|
|
18465
|
+
role: sd < 0 ? "driver" : "front_passenger"
|
|
18466
|
+
});
|
|
18394
18467
|
});
|
|
18395
|
-
kit.seat(c, -0.
|
|
18468
|
+
kit.seat(c, -0.58, fl, 0, { w: 0.94, n: 3, mat: fab, back: 0.44, lean: 0.14, h: 0.11, len: 0.42, headrest: false, role: "rear" });
|
|
18396
18469
|
[1, -1].forEach(function(sd) {
|
|
18397
18470
|
for (let yk = 0.56; yk < 0.95; yk += 0.075) {
|
|
18398
18471
|
const zf = Math.min(loftHalf(stS, -0.3, yk - 0.04), loftHalf(stS, 0.5, yk - 0.04)) - 0.045;
|
|
@@ -20453,11 +20526,12 @@ var GameVehiclesFleet = (() => {
|
|
|
20453
20526
|
c.roundBox(0.012, 0.012, 0.06, 4e-3, MT.steel, 2.06, 0.62, 0, PG);
|
|
20454
20527
|
const fl = -0.4, fab = CM("#3c3a35", { roughness: 0.9 });
|
|
20455
20528
|
c.roundBox(2, 0.025, 0.6, 0.01, MT.carpet, 0.55, fl, 0, PG).castShadow = false;
|
|
20456
|
-
kit.seat(c, 0.62, fl, 0, { w: 0.48, h: 0.
|
|
20457
|
-
kit.seat(c, -0.22, fl + 0.04, 0, { w: 0.5, h: 0.
|
|
20529
|
+
kit.seat(c, 0.62, fl, 0, { w: 0.48, h: 0.16, back: 0.55, lean: 0.2, mat: fab, parent: grp, headrest: false, role: "pilot" });
|
|
20530
|
+
kit.seat(c, -0.22, fl + 0.04, 0, { w: 0.5, h: 0.16, back: 0.58, lean: 0.2, mat: fab, parent: grp, headrest: false, role: "crew" });
|
|
20531
|
+
c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
|
|
20458
20532
|
[1.12, 0.3].forEach(function(x) {
|
|
20459
|
-
c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG);
|
|
20460
|
-
c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG);
|
|
20533
|
+
c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG).userData.noCabinRay = true;
|
|
20534
|
+
c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG).userData.noCabinRay = true;
|
|
20461
20535
|
});
|
|
20462
20536
|
c.roundBox(0.05, 0.22, 0.6, 0.02, CM("#2a2b2d", { roughness: 0.8 }), 1.75, 0.3, 0, PG);
|
|
20463
20537
|
[-0.2, -0.08, 0.04, 0.16, -0.14].forEach(function(z, i) {
|
|
@@ -20811,7 +20885,8 @@ var GameVehiclesFleet = (() => {
|
|
|
20811
20885
|
const fl = 0.98, fab = CM("#3d4552", { roughness: 0.9 });
|
|
20812
20886
|
liner(c, ST, -4.6, 5.9, fl, MT.carpet, { h: 0.03 });
|
|
20813
20887
|
[0.38, -0.38].forEach(function(z) {
|
|
20814
|
-
kit.seat(c, 4.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: CM("#2a2c30", { roughness: 0.8 }) });
|
|
20888
|
+
kit.seat(c, 4.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: CM("#2a2c30", { roughness: 0.8 }), role: "pilot" });
|
|
20889
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.55 });
|
|
20815
20890
|
kit.yoke(c, 5.5, 1.75, z);
|
|
20816
20891
|
EA.pedals(c, 5.95, fl, z);
|
|
20817
20892
|
});
|
|
@@ -21205,7 +21280,8 @@ var GameVehiclesFleet = (() => {
|
|
|
21205
21280
|
const fl = 2.06, fab = CM("#4a4640", { roughness: 0.9 });
|
|
21206
21281
|
liner(c, ST, -3.2, 2, fl, MT.carpet, { h: 0.03 });
|
|
21207
21282
|
[0.38, -0.38].forEach(function(z) {
|
|
21208
|
-
kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab });
|
|
21283
|
+
kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab, role: "pilot" });
|
|
21284
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.4 });
|
|
21209
21285
|
kit.yoke(c, 1.5, 2.85, z);
|
|
21210
21286
|
EA.pedals(c, 1.95, fl, z);
|
|
21211
21287
|
});
|
|
@@ -21620,7 +21696,8 @@ var GameVehiclesFleet = (() => {
|
|
|
21620
21696
|
const fl = 0.8, fab = CM("#c9bda6", { roughness: 0.75 });
|
|
21621
21697
|
liner(c, ST, -2, 4, fl, MT.carpet, { h: 0.03 });
|
|
21622
21698
|
[0.36, -0.36].forEach(function(z) {
|
|
21623
|
-
kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30") });
|
|
21699
|
+
kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30"), role: "pilot" });
|
|
21700
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.72, heightMetres: 1.35 });
|
|
21624
21701
|
kit.yoke(c, 4.05, 1.55, z);
|
|
21625
21702
|
});
|
|
21626
21703
|
EA.instPanel(c, 4.3, 1.68, 1.35, {
|
|
@@ -21988,11 +22065,12 @@ var GameVehiclesFleet = (() => {
|
|
|
21988
22065
|
[1.55, 1.24],
|
|
21989
22066
|
[0.2, 1.46]
|
|
21990
22067
|
].forEach(function(q, i) {
|
|
21991
|
-
kit.seat(c, q[0], q[1], 0, { w: 0.5, h: 0.32, back: 0.85, lean: 0.24, mat: fab, headrest: false });
|
|
22068
|
+
kit.seat(c, q[0], q[1], 0, { w: 0.5, h: 0.32, back: 0.85, lean: 0.24, mat: fab, headrest: false, role: i === 0 ? "pilot" : "crew" });
|
|
21992
22069
|
c.roundBox(0.14, 0.3, 0.44, 0.04, CM("#202224"), q[0] - 0.42, q[1] + 1.05, 0, { rot: [0, 0, 0.24] });
|
|
21993
22070
|
c.rod(new V3(q[0] - 0.38, q[1] + 1.25, -0.06), new V3(q[0] - 0.3, q[1] + 1.4, 0.06), 0.012, MT.yellow);
|
|
21994
|
-
c.rod(new V3(q[0] + 0.35, q[1], 0), new V3(q[0] + 0.32, q[1] + 0.45, 0), 0.016, blk);
|
|
21995
|
-
c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1);
|
|
22071
|
+
c.rod(new V3(q[0] + 0.35, q[1], 0), new V3(q[0] + 0.32, q[1] + 0.45, 0), 0.016, blk).userData.noCabinRay = true;
|
|
22072
|
+
c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1).userData.noCabinRay = true;
|
|
22073
|
+
if (i === 0) c.addDoor({ id: "canopy_door", widthMetres: 0.68, heightMetres: 0.85 });
|
|
21996
22074
|
const px = q[0] + 0.75;
|
|
21997
22075
|
c.roundBox(0.16, 0.3, 0.6, 0.04, CM("#232427"), px, q[1] + 0.65, 0, { rot: [0, 0, 0.2] });
|
|
21998
22076
|
[-0.15, 0.15].forEach(function(z) {
|
|
@@ -22828,10 +22906,26 @@ var GameVehiclesFleet = (() => {
|
|
|
22828
22906
|
roofLining(c, extra);
|
|
22829
22907
|
if (!c.meta.damage) c.meta.damage = crashDamage;
|
|
22830
22908
|
}
|
|
22909
|
+
function withCabinPackaging(s) {
|
|
22910
|
+
if (s.interior === false) return s;
|
|
22911
|
+
return Object.assign({}, s, {
|
|
22912
|
+
interior: Object.assign(
|
|
22913
|
+
{
|
|
22914
|
+
floor: s.bottomY + 0.02,
|
|
22915
|
+
roof: s.gh.roof + 0.02,
|
|
22916
|
+
seatH: 0.12,
|
|
22917
|
+
dashD: 0.32,
|
|
22918
|
+
dashH: 0.24,
|
|
22919
|
+
visorUp: true
|
|
22920
|
+
},
|
|
22921
|
+
s.interior || {}
|
|
22922
|
+
)
|
|
22923
|
+
});
|
|
22924
|
+
}
|
|
22831
22925
|
function suvBuild(c, s, o) {
|
|
22832
22926
|
o = o || {};
|
|
22833
22927
|
const n0 = c.deform.length;
|
|
22834
|
-
kit.car(c, s);
|
|
22928
|
+
kit.car(c, withCabinPackaging(s));
|
|
22835
22929
|
const low = c.deform[n0], m = c.meta;
|
|
22836
22930
|
let extra = [];
|
|
22837
22931
|
if (o.flares !== false) extra = extra.concat(fenderFlares(c, s.arches, s.W, s.bottomY, o.flare));
|
|
@@ -23318,7 +23412,7 @@ var GameVehiclesFleet = (() => {
|
|
|
23318
23412
|
);
|
|
23319
23413
|
function pickupBuild(c, s, o) {
|
|
23320
23414
|
const n0 = c.deform.length;
|
|
23321
|
-
kit.car(c, s);
|
|
23415
|
+
kit.car(c, withCabinPackaging(s));
|
|
23322
23416
|
const low = c.deform[n0], m = c.meta;
|
|
23323
23417
|
let extra = [];
|
|
23324
23418
|
cargoBed(c, { low, x0: m.rear + 0.06, x1: o.bedFront, floor: o.floor, top: s.gh.belt, W: s.W, arches: s.arches });
|
|
@@ -23714,7 +23808,7 @@ var GameVehiclesFleet = (() => {
|
|
|
23714
23808
|
wheels: []
|
|
23715
23809
|
};
|
|
23716
23810
|
const n0 = c.deform.length;
|
|
23717
|
-
kit.car(c, s);
|
|
23811
|
+
kit.car(c, withCabinPackaging(s));
|
|
23718
23812
|
const low = c.deform[n0], m = c.meta;
|
|
23719
23813
|
cargoBed(c, { low, x0: m.rear + 0.06, x1: -0.42, floor: 1.78, top: 2.25, W, arches: [] });
|
|
23720
23814
|
c.roundBox(0.08, 0.08, W + 0.1, 0.03, MT.chrome, m.front + 0.06, 1.72, 0);
|
|
@@ -24034,7 +24128,10 @@ var GameVehiclesFleet = (() => {
|
|
|
24034
24128
|
xRear: P.cabBack - 0.12,
|
|
24035
24129
|
xFront: P.cabBack + 0.42,
|
|
24036
24130
|
seatH: 0.42,
|
|
24037
|
-
front: "bench"
|
|
24131
|
+
front: "bench",
|
|
24132
|
+
dashD: 0.32,
|
|
24133
|
+
dashH: 0.24,
|
|
24134
|
+
visorUp: true
|
|
24038
24135
|
});
|
|
24039
24136
|
c.roundBox(
|
|
24040
24137
|
0.04,
|
|
@@ -25072,8 +25169,8 @@ var GameVehiclesFleet = (() => {
|
|
|
25072
25169
|
});
|
|
25073
25170
|
}
|
|
25074
25171
|
function cyclic(c, x, fl, z) {
|
|
25075
|
-
c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic);
|
|
25076
|
-
c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z);
|
|
25172
|
+
c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic).userData.noCabinRay = true;
|
|
25173
|
+
c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z).userData.noCabinRay = true;
|
|
25077
25174
|
}
|
|
25078
25175
|
function collective(c, x, fl, z) {
|
|
25079
25176
|
c.rod(new V3(x - 0.35, fl + 0.18, z), new V3(x + 0.05, fl + 0.32, z), 0.016, MT.plastic);
|
|
@@ -25604,8 +25701,8 @@ var GameVehiclesFleet = (() => {
|
|
|
25604
25701
|
c.rod(new V3(0.62, cy + 0.72, 0.62), new V3(0.55, cy + 0.82, 0.62), 0.02, MT.chrome);
|
|
25605
25702
|
c.rod(new V3(0.55, cy + 0.7, 0.98), new V3(0.42, cy + 0.88, 1), 0.015, MT.chrome);
|
|
25606
25703
|
c.sphere(0.035, MT.plastic, 0.42, cy + 0.9, 1);
|
|
25607
|
-
kit.seat(c, -0.1, cy + 2e-3, 0.72, { w: 0.55, h: 0.42, back: 0.48, lean: 0.12, mat: vinyl, headrest: false });
|
|
25608
|
-
kit.seat(c, -0.1, cy + 2e-3, -0.74, { w: 0.55, h: 0.42, back: 0.48, lean: 0.12, mat: vinyl, headrest: false });
|
|
25704
|
+
kit.seat(c, -0.1, cy + 2e-3, 0.72, { w: 0.55, h: 0.42, back: 0.48, lean: 0.12, mat: vinyl, headrest: false, open: true, role: "front_passenger" });
|
|
25705
|
+
kit.seat(c, -0.1, cy + 2e-3, -0.74, { w: 0.55, h: 0.42, back: 0.48, lean: 0.12, mat: vinyl, headrest: false, open: true, id: "driver", role: "driver" });
|
|
25609
25706
|
[1, -1].forEach(function(s) {
|
|
25610
25707
|
const pts = [];
|
|
25611
25708
|
for (let i = 0; i <= 8; i++) {
|
|
@@ -25916,7 +26013,8 @@ var GameVehiclesFleet = (() => {
|
|
|
25916
26013
|
c.rod(new V3(0, 0, 0), new V3(0, Math.cos(a8) * 0.36, Math.sin(a8) * 0.36), 0.014, MT.wood, { parent: whl });
|
|
25917
26014
|
}
|
|
25918
26015
|
c.cylinder(0.05, 0.05, 0.14, MT.wood, 0.06, 0, 0, "x", { parent: whl });
|
|
25919
|
-
kit.seat(c, hx - 0.
|
|
26016
|
+
kit.seat(c, hx - 0.12, hy0 + 2e-3, 0, { w: 0.54, h: 0.55, back: 0.45, mat: inner, headrest: false, id: "driver", role: "driver" });
|
|
26017
|
+
c.addDoor({ id: "cabin_door", widthMetres: 0.68, heightMetres: 1.55 });
|
|
25920
26018
|
c.roundBox(1.8, 0.12, 0.65, 0.04, CM("#7c5a3b"), hx - 0.2, hy0 + 0.5, -0.72);
|
|
25921
26019
|
c.roundBox(1.7, 0.08, 0.55, 0.04, CM("#6b7c8f", { roughness: 1 }), hx - 0.2, hy0 + 0.6, -0.72);
|
|
25922
26020
|
c.roundBox(1.9, 0.02, 2.1, 0.01, inner, hx, hy0 + hh - 0.06, 0).castShadow = false;
|
|
@@ -26132,11 +26230,13 @@ var GameVehiclesFleet = (() => {
|
|
|
26132
26230
|
const fl = 0.74, fab = CM("#4a463f", { roughness: 0.9 });
|
|
26133
26231
|
c.roundBox(2.2, 0.03, 0.98, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
|
|
26134
26232
|
[0.26, -0.26].forEach(function(z) {
|
|
26135
|
-
kit.seat(c, 0.38, fl, z, { w: 0.
|
|
26233
|
+
kit.seat(c, 0.38, fl, z, { w: 0.48, h: 0.24, back: 0.62, lean: 0.18, mat: fab, role: "pilot" });
|
|
26136
26234
|
EA.pedals(c, 1.18, fl, z);
|
|
26137
26235
|
kit.yoke(c, 0.98, 1.47, z);
|
|
26138
26236
|
});
|
|
26139
|
-
kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.
|
|
26237
|
+
kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.24, back: 0.58, lean: 0.2, mat: fab });
|
|
26238
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 0.95 });
|
|
26239
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 0.95 });
|
|
26140
26240
|
EA.instPanel(c, 1.1, 1.52, 1, { gauges: 6, z0: -0.38, screens: [[0, 0.12, 0.14, 0.22]] });
|
|
26141
26241
|
c.roundBox(0.1, 0.1, 0.1, 0.02, MT.plastic, 1, 1.32, 0);
|
|
26142
26242
|
c.cylinder(0.018, 0.018, 0.1, MT.chrome, 0.93, 1.34, 0.02, "x");
|
|
@@ -26411,9 +26511,10 @@ var GameVehiclesFleet = (() => {
|
|
|
26411
26511
|
);
|
|
26412
26512
|
const fl = -0.36;
|
|
26413
26513
|
c.roundBox(1.3, 0.03, 0.8, 0.01, MT.carpet, -0.4, fl, 0, { parent: grp }).castShadow = false;
|
|
26414
|
-
kit.seat(c, -0.55, fl, 0, { w: 0.5, h: 0.
|
|
26415
|
-
c.
|
|
26416
|
-
c.
|
|
26514
|
+
kit.seat(c, -0.55, fl, 0, { w: 0.5, h: 0.18, back: 0.66, lean: 0.12, mat: CM("#3a3530", { roughness: 0.9 }), parent: grp, role: "pilot" });
|
|
26515
|
+
c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
|
|
26516
|
+
c.rod(new V3(0, fl, 0), new V3(-0.06, fl + 0.55, 0), 0.016, MT.plastic, { parent: grp }).userData.noCabinRay = true;
|
|
26517
|
+
c.roundBox(0.04, 0.13, 0.05, 0.015, MT.plastic, -0.07, fl + 0.6, 0, { parent: grp }).userData.noCabinRay = true;
|
|
26417
26518
|
c.roundBox(0.16, 0.3, 0.8, 0.04, CM("#232427"), 0.36, 0.5, 0, { parent: grp, rot: [0, 0, 0.2] });
|
|
26418
26519
|
[-0.24, -0.12, 0, 0.12, 0.24].forEach(function(z, i) {
|
|
26419
26520
|
c.cylinder(0.036, 0.036, 0.012, MT.gauge, 0.27, 0.55 - i % 2 * 0.09, z, "x", { seg: 16, parent: grp }).castShadow = false;
|
|
@@ -26823,10 +26924,12 @@ var GameVehiclesFleet = (() => {
|
|
|
26823
26924
|
const fl = 0.72, fab = CM("#3b3a38", { roughness: 0.9 });
|
|
26824
26925
|
c.roundBox(1.9, 0.03, 1.16, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
|
|
26825
26926
|
[0.3, -0.3].forEach(function(z) {
|
|
26826
|
-
kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.
|
|
26927
|
+
kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.2, back: 0.62, lean: 0.14, mat: fab, role: "pilot" });
|
|
26827
26928
|
EA.pedals(c, 1.35, fl, z);
|
|
26828
26929
|
});
|
|
26829
|
-
kit.seat(c, -0.55, fl + 0.06, 0, { w: 1.06, n: 2, h: 0.
|
|
26930
|
+
kit.seat(c, -0.55, fl + 0.06, 0, { w: 1.06, n: 2, h: 0.2, back: 0.6, lean: 0.12, mat: fab });
|
|
26931
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.72, heightMetres: 1.05 });
|
|
26932
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.72, heightMetres: 1.05 });
|
|
26830
26933
|
c.roundBox(0.42, 0.62, 0.3, 0.06, CM("#232427"), 1.15, fl + 0.32, 0, { rot: [0, 0, 0.35] });
|
|
26831
26934
|
c.roundBox(0.06, 0.3, 0.3, 0.02, CM("#1a1b1d"), 1.25, fl + 0.65, 0, { rot: [0, 0, 0.6] });
|
|
26832
26935
|
[-0.07, 0.07].forEach(function(z) {
|
|
@@ -27157,6 +27260,8 @@ var GameVehiclesFleet = (() => {
|
|
|
27157
27260
|
EA.collective(c, 1.3, fl, -0.72);
|
|
27158
27261
|
EA.collective(c, 1.3, fl, 0.12);
|
|
27159
27262
|
kit.seat(c, -0.35, fl + 0.04, 0, { w: 1.56, n: 4, h: 0.38, back: 0.62, lean: 0.1, mat: fab });
|
|
27263
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
|
|
27264
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
|
|
27160
27265
|
EA.instPanel(c, 2.25, 1.55, 1.2, { gauges: 8, z0: -0.45, tilt: 0.3, screens: [[0.05, 0.25, 0.14, 0.2]] });
|
|
27161
27266
|
c.roundBox(0.5, 0.45, 0.32, 0.06, CM("#232427"), 2.05, fl + 0.24, 0);
|
|
27162
27267
|
c.roundBox(2.3, 0.02, 1.4, 0.01, MT.headliner, 0.45, 2.24, 0).castShadow = false;
|
|
@@ -27805,6 +27910,793 @@ var GameVehiclesFleet = (() => {
|
|
|
27805
27910
|
var fleetDims = (id) => table[id];
|
|
27806
27911
|
var allFleetDims = () => table;
|
|
27807
27912
|
|
|
27913
|
+
// src/data/wheel-layouts.json
|
|
27914
|
+
var wheel_layouts_default = {
|
|
27915
|
+
compact_hatch: {
|
|
27916
|
+
axles: [
|
|
27917
|
+
{
|
|
27918
|
+
x: 1.18,
|
|
27919
|
+
track: 1.49,
|
|
27920
|
+
radius: 0.31,
|
|
27921
|
+
wheels: 2
|
|
27922
|
+
},
|
|
27923
|
+
{
|
|
27924
|
+
x: -1.4,
|
|
27925
|
+
track: 1.49,
|
|
27926
|
+
radius: 0.31,
|
|
27927
|
+
wheels: 2
|
|
27928
|
+
}
|
|
27929
|
+
]
|
|
27930
|
+
},
|
|
27931
|
+
taxi: {
|
|
27932
|
+
axles: [
|
|
27933
|
+
{
|
|
27934
|
+
x: 1.18,
|
|
27935
|
+
track: 1.49,
|
|
27936
|
+
radius: 0.31,
|
|
27937
|
+
wheels: 2
|
|
27938
|
+
},
|
|
27939
|
+
{
|
|
27940
|
+
x: -1.4,
|
|
27941
|
+
track: 1.49,
|
|
27942
|
+
radius: 0.31,
|
|
27943
|
+
wheels: 2
|
|
27944
|
+
}
|
|
27945
|
+
]
|
|
27946
|
+
},
|
|
27947
|
+
entry_hatch: {
|
|
27948
|
+
axles: [
|
|
27949
|
+
{
|
|
27950
|
+
x: 1,
|
|
27951
|
+
track: 1.35,
|
|
27952
|
+
radius: 0.29,
|
|
27953
|
+
wheels: 2
|
|
27954
|
+
},
|
|
27955
|
+
{
|
|
27956
|
+
x: -1.42,
|
|
27957
|
+
track: 1.35,
|
|
27958
|
+
radius: 0.29,
|
|
27959
|
+
wheels: 2
|
|
27960
|
+
}
|
|
27961
|
+
]
|
|
27962
|
+
},
|
|
27963
|
+
electric_hatch: {
|
|
27964
|
+
axles: [
|
|
27965
|
+
{
|
|
27966
|
+
x: 1.3,
|
|
27967
|
+
track: 1.5,
|
|
27968
|
+
radius: 0.32,
|
|
27969
|
+
wheels: 2
|
|
27970
|
+
},
|
|
27971
|
+
{
|
|
27972
|
+
x: -1.4,
|
|
27973
|
+
track: 1.5,
|
|
27974
|
+
radius: 0.32,
|
|
27975
|
+
wheels: 2
|
|
27976
|
+
}
|
|
27977
|
+
]
|
|
27978
|
+
},
|
|
27979
|
+
midsize_sedan: {
|
|
27980
|
+
axles: [
|
|
27981
|
+
{
|
|
27982
|
+
x: 1.3,
|
|
27983
|
+
track: 1.53,
|
|
27984
|
+
radius: 0.32,
|
|
27985
|
+
wheels: 2
|
|
27986
|
+
},
|
|
27987
|
+
{
|
|
27988
|
+
x: -1.4,
|
|
27989
|
+
track: 1.53,
|
|
27990
|
+
radius: 0.32,
|
|
27991
|
+
wheels: 2
|
|
27992
|
+
}
|
|
27993
|
+
]
|
|
27994
|
+
},
|
|
27995
|
+
police_sedan: {
|
|
27996
|
+
axles: [
|
|
27997
|
+
{
|
|
27998
|
+
x: 1.3,
|
|
27999
|
+
track: 1.55,
|
|
28000
|
+
radius: 0.32,
|
|
28001
|
+
wheels: 2
|
|
28002
|
+
},
|
|
28003
|
+
{
|
|
28004
|
+
x: -1.4,
|
|
28005
|
+
track: 1.55,
|
|
28006
|
+
radius: 0.32,
|
|
28007
|
+
wheels: 2
|
|
28008
|
+
}
|
|
28009
|
+
]
|
|
28010
|
+
},
|
|
28011
|
+
highway_police_sedan: {
|
|
28012
|
+
axles: [
|
|
28013
|
+
{
|
|
28014
|
+
x: 1.3,
|
|
28015
|
+
track: 1.55,
|
|
28016
|
+
radius: 0.32,
|
|
28017
|
+
wheels: 2
|
|
28018
|
+
},
|
|
28019
|
+
{
|
|
28020
|
+
x: -1.4,
|
|
28021
|
+
track: 1.55,
|
|
28022
|
+
radius: 0.32,
|
|
28023
|
+
wheels: 2
|
|
28024
|
+
}
|
|
28025
|
+
]
|
|
28026
|
+
},
|
|
28027
|
+
bicycle: {
|
|
28028
|
+
axles: [
|
|
28029
|
+
{
|
|
28030
|
+
x: 0.56,
|
|
28031
|
+
track: 0,
|
|
28032
|
+
radius: 0.34,
|
|
28033
|
+
wheels: 1
|
|
28034
|
+
},
|
|
28035
|
+
{
|
|
28036
|
+
x: -0.53,
|
|
28037
|
+
track: 0,
|
|
28038
|
+
radius: 0.34,
|
|
28039
|
+
wheels: 1
|
|
28040
|
+
}
|
|
28041
|
+
]
|
|
28042
|
+
},
|
|
28043
|
+
scooter: {
|
|
28044
|
+
axles: [
|
|
28045
|
+
{
|
|
28046
|
+
x: 0.66,
|
|
28047
|
+
track: 0,
|
|
28048
|
+
radius: 0.26,
|
|
28049
|
+
wheels: 1
|
|
28050
|
+
},
|
|
28051
|
+
{
|
|
28052
|
+
x: -0.65,
|
|
28053
|
+
track: 0,
|
|
28054
|
+
radius: 0.26,
|
|
28055
|
+
wheels: 1
|
|
28056
|
+
}
|
|
28057
|
+
]
|
|
28058
|
+
},
|
|
28059
|
+
commuter_motorcycle: {
|
|
28060
|
+
axles: [
|
|
28061
|
+
{
|
|
28062
|
+
x: 0.66,
|
|
28063
|
+
track: 0,
|
|
28064
|
+
radius: 0.31,
|
|
28065
|
+
wheels: 1
|
|
28066
|
+
},
|
|
28067
|
+
{
|
|
28068
|
+
x: -0.66,
|
|
28069
|
+
track: 0,
|
|
28070
|
+
radius: 0.31,
|
|
28071
|
+
wheels: 1
|
|
28072
|
+
}
|
|
28073
|
+
]
|
|
28074
|
+
},
|
|
28075
|
+
trail_bike: {
|
|
28076
|
+
axles: [
|
|
28077
|
+
{
|
|
28078
|
+
x: 0.72,
|
|
28079
|
+
track: 0,
|
|
28080
|
+
radius: 0.32,
|
|
28081
|
+
wheels: 1
|
|
28082
|
+
},
|
|
28083
|
+
{
|
|
28084
|
+
x: -0.66,
|
|
28085
|
+
track: 0,
|
|
28086
|
+
radius: 0.32,
|
|
28087
|
+
wheels: 1
|
|
28088
|
+
}
|
|
28089
|
+
]
|
|
28090
|
+
},
|
|
28091
|
+
adventure_bike: {
|
|
28092
|
+
axles: [
|
|
28093
|
+
{
|
|
28094
|
+
x: 0.78,
|
|
28095
|
+
track: 0,
|
|
28096
|
+
radius: 0.33,
|
|
28097
|
+
wheels: 1
|
|
28098
|
+
},
|
|
28099
|
+
{
|
|
28100
|
+
x: -0.72,
|
|
28101
|
+
track: 0,
|
|
28102
|
+
radius: 0.32,
|
|
28103
|
+
wheels: 1
|
|
28104
|
+
}
|
|
28105
|
+
]
|
|
28106
|
+
},
|
|
28107
|
+
highway_police_bike: {
|
|
28108
|
+
axles: [
|
|
28109
|
+
{
|
|
28110
|
+
x: 0.78,
|
|
28111
|
+
track: 0,
|
|
28112
|
+
radius: 0.33,
|
|
28113
|
+
wheels: 1
|
|
28114
|
+
},
|
|
28115
|
+
{
|
|
28116
|
+
x: -0.72,
|
|
28117
|
+
track: 0,
|
|
28118
|
+
radius: 0.32,
|
|
28119
|
+
wheels: 1
|
|
28120
|
+
}
|
|
28121
|
+
]
|
|
28122
|
+
},
|
|
28123
|
+
quad_bike: {
|
|
28124
|
+
axles: [
|
|
28125
|
+
{
|
|
28126
|
+
x: 0.62,
|
|
28127
|
+
track: 1,
|
|
28128
|
+
radius: 0.33,
|
|
28129
|
+
wheels: 2
|
|
28130
|
+
},
|
|
28131
|
+
{
|
|
28132
|
+
x: -0.63,
|
|
28133
|
+
track: 0.98,
|
|
28134
|
+
radius: 0.33,
|
|
28135
|
+
wheels: 2
|
|
28136
|
+
}
|
|
28137
|
+
]
|
|
28138
|
+
},
|
|
28139
|
+
beetle: {
|
|
28140
|
+
axles: [
|
|
28141
|
+
{
|
|
28142
|
+
x: 1.15,
|
|
28143
|
+
track: 1.31,
|
|
28144
|
+
radius: 0.33,
|
|
28145
|
+
wheels: 2
|
|
28146
|
+
},
|
|
28147
|
+
{
|
|
28148
|
+
x: -1.25,
|
|
28149
|
+
track: 1.29,
|
|
28150
|
+
radius: 0.33,
|
|
28151
|
+
wheels: 2
|
|
28152
|
+
}
|
|
28153
|
+
]
|
|
28154
|
+
},
|
|
28155
|
+
compact_suv: {
|
|
28156
|
+
axles: [
|
|
28157
|
+
{
|
|
28158
|
+
x: 1.33,
|
|
28159
|
+
track: 1.52,
|
|
28160
|
+
radius: 0.33,
|
|
28161
|
+
wheels: 2
|
|
28162
|
+
},
|
|
28163
|
+
{
|
|
28164
|
+
x: -1.33,
|
|
28165
|
+
track: 1.51,
|
|
28166
|
+
radius: 0.33,
|
|
28167
|
+
wheels: 2
|
|
28168
|
+
}
|
|
28169
|
+
]
|
|
28170
|
+
},
|
|
28171
|
+
hybrid_suv: {
|
|
28172
|
+
axles: [
|
|
28173
|
+
{
|
|
28174
|
+
x: 1.32,
|
|
28175
|
+
track: 1.56,
|
|
28176
|
+
radius: 0.34,
|
|
28177
|
+
wheels: 2
|
|
28178
|
+
},
|
|
28179
|
+
{
|
|
28180
|
+
x: -1.32,
|
|
28181
|
+
track: 1.57,
|
|
28182
|
+
radius: 0.34,
|
|
28183
|
+
wheels: 2
|
|
28184
|
+
}
|
|
28185
|
+
]
|
|
28186
|
+
},
|
|
28187
|
+
midsize_suv: {
|
|
28188
|
+
axles: [
|
|
28189
|
+
{
|
|
28190
|
+
x: 1.32,
|
|
28191
|
+
track: 1.57,
|
|
28192
|
+
radius: 0.35,
|
|
28193
|
+
wheels: 2
|
|
28194
|
+
},
|
|
28195
|
+
{
|
|
28196
|
+
x: -1.32,
|
|
28197
|
+
track: 1.57,
|
|
28198
|
+
radius: 0.35,
|
|
28199
|
+
wheels: 2
|
|
28200
|
+
}
|
|
28201
|
+
]
|
|
28202
|
+
},
|
|
28203
|
+
large_suv: {
|
|
28204
|
+
axles: [
|
|
28205
|
+
{
|
|
28206
|
+
x: 1.37,
|
|
28207
|
+
track: 1.54,
|
|
28208
|
+
radius: 0.39,
|
|
28209
|
+
wheels: 2
|
|
28210
|
+
},
|
|
28211
|
+
{
|
|
28212
|
+
x: -1.37,
|
|
28213
|
+
track: 1.55,
|
|
28214
|
+
radius: 0.39,
|
|
28215
|
+
wheels: 2
|
|
28216
|
+
}
|
|
28217
|
+
]
|
|
28218
|
+
},
|
|
28219
|
+
compact_pickup: {
|
|
28220
|
+
axles: [
|
|
28221
|
+
{
|
|
28222
|
+
x: 1.37,
|
|
28223
|
+
track: 1.49,
|
|
28224
|
+
radius: 0.33,
|
|
28225
|
+
wheels: 2
|
|
28226
|
+
},
|
|
28227
|
+
{
|
|
28228
|
+
x: -1.37,
|
|
28229
|
+
track: 1.5,
|
|
28230
|
+
radius: 0.33,
|
|
28231
|
+
wheels: 2
|
|
28232
|
+
}
|
|
28233
|
+
]
|
|
28234
|
+
},
|
|
28235
|
+
crossover_pickup: {
|
|
28236
|
+
axles: [
|
|
28237
|
+
{
|
|
28238
|
+
x: 1.5,
|
|
28239
|
+
track: 1.55,
|
|
28240
|
+
radius: 0.36,
|
|
28241
|
+
wheels: 2
|
|
28242
|
+
},
|
|
28243
|
+
{
|
|
28244
|
+
x: -1.49,
|
|
28245
|
+
track: 1.58,
|
|
28246
|
+
radius: 0.36,
|
|
28247
|
+
wheels: 2
|
|
28248
|
+
}
|
|
28249
|
+
]
|
|
28250
|
+
},
|
|
28251
|
+
midsize_pickup: {
|
|
28252
|
+
axles: [
|
|
28253
|
+
{
|
|
28254
|
+
x: 1.54,
|
|
28255
|
+
track: 1.54,
|
|
28256
|
+
radius: 0.39,
|
|
28257
|
+
wheels: 2
|
|
28258
|
+
},
|
|
28259
|
+
{
|
|
28260
|
+
x: -1.54,
|
|
28261
|
+
track: 1.55,
|
|
28262
|
+
radius: 0.39,
|
|
28263
|
+
wheels: 2
|
|
28264
|
+
}
|
|
28265
|
+
]
|
|
28266
|
+
},
|
|
28267
|
+
monster_truck: {
|
|
28268
|
+
axles: [
|
|
28269
|
+
{
|
|
28270
|
+
x: 1.55,
|
|
28271
|
+
track: 2.76,
|
|
28272
|
+
radius: 0.79,
|
|
28273
|
+
wheels: 2
|
|
28274
|
+
},
|
|
28275
|
+
{
|
|
28276
|
+
x: -1.55,
|
|
28277
|
+
track: 2.76,
|
|
28278
|
+
radius: 0.79,
|
|
28279
|
+
wheels: 2
|
|
28280
|
+
}
|
|
28281
|
+
]
|
|
28282
|
+
},
|
|
28283
|
+
cargo_van: {
|
|
28284
|
+
axles: [
|
|
28285
|
+
{
|
|
28286
|
+
x: 1.83,
|
|
28287
|
+
track: 1.72,
|
|
28288
|
+
radius: 0.37,
|
|
28289
|
+
wheels: 2
|
|
28290
|
+
},
|
|
28291
|
+
{
|
|
28292
|
+
x: -1.83,
|
|
28293
|
+
track: 1.72,
|
|
28294
|
+
radius: 0.37,
|
|
28295
|
+
wheels: 2
|
|
28296
|
+
}
|
|
28297
|
+
]
|
|
28298
|
+
},
|
|
28299
|
+
ambulance: {
|
|
28300
|
+
axles: [
|
|
28301
|
+
{
|
|
28302
|
+
x: 1.73,
|
|
28303
|
+
track: 1.8,
|
|
28304
|
+
radius: 0.34,
|
|
28305
|
+
wheels: 2
|
|
28306
|
+
},
|
|
28307
|
+
{
|
|
28308
|
+
x: -1.72,
|
|
28309
|
+
track: 1.8,
|
|
28310
|
+
radius: 0.34,
|
|
28311
|
+
wheels: 2
|
|
28312
|
+
}
|
|
28313
|
+
]
|
|
28314
|
+
},
|
|
28315
|
+
box_truck: {
|
|
28316
|
+
axles: [
|
|
28317
|
+
{
|
|
28318
|
+
x: 2.65,
|
|
28319
|
+
track: 1.88,
|
|
28320
|
+
radius: 0.39,
|
|
28321
|
+
wheels: 2
|
|
28322
|
+
},
|
|
28323
|
+
{
|
|
28324
|
+
x: -1.65,
|
|
28325
|
+
track: 2,
|
|
28326
|
+
radius: 0.39,
|
|
28327
|
+
wheels: 4
|
|
28328
|
+
}
|
|
28329
|
+
]
|
|
28330
|
+
},
|
|
28331
|
+
tanker_truck: {
|
|
28332
|
+
axles: [
|
|
28333
|
+
{
|
|
28334
|
+
x: 3.3,
|
|
28335
|
+
track: 2.1,
|
|
28336
|
+
radius: 0.51,
|
|
28337
|
+
wheels: 2
|
|
28338
|
+
},
|
|
28339
|
+
{
|
|
28340
|
+
x: -1.5,
|
|
28341
|
+
track: 2.12,
|
|
28342
|
+
radius: 0.51,
|
|
28343
|
+
wheels: 4
|
|
28344
|
+
},
|
|
28345
|
+
{
|
|
28346
|
+
x: -2.72,
|
|
28347
|
+
track: 2.12,
|
|
28348
|
+
radius: 0.51,
|
|
28349
|
+
wheels: 4
|
|
28350
|
+
}
|
|
28351
|
+
]
|
|
28352
|
+
},
|
|
28353
|
+
school_bus: {
|
|
28354
|
+
axles: [
|
|
28355
|
+
{
|
|
28356
|
+
x: 3.1,
|
|
28357
|
+
track: 2.05,
|
|
28358
|
+
radius: 0.51,
|
|
28359
|
+
wheels: 2
|
|
28360
|
+
},
|
|
28361
|
+
{
|
|
28362
|
+
x: -1.5,
|
|
28363
|
+
track: 2.24,
|
|
28364
|
+
radius: 0.51,
|
|
28365
|
+
wheels: 4
|
|
28366
|
+
}
|
|
28367
|
+
]
|
|
28368
|
+
},
|
|
28369
|
+
city_bus: {
|
|
28370
|
+
axles: [
|
|
28371
|
+
{
|
|
28372
|
+
x: 3.55,
|
|
28373
|
+
track: 2.1,
|
|
28374
|
+
radius: 0.5,
|
|
28375
|
+
wheels: 2
|
|
28376
|
+
},
|
|
28377
|
+
{
|
|
28378
|
+
x: -2.85,
|
|
28379
|
+
track: 2.26,
|
|
28380
|
+
radius: 0.5,
|
|
28381
|
+
wheels: 4
|
|
28382
|
+
}
|
|
28383
|
+
]
|
|
28384
|
+
},
|
|
28385
|
+
armored_truck: {
|
|
28386
|
+
axles: [
|
|
28387
|
+
{
|
|
28388
|
+
x: 2.5,
|
|
28389
|
+
track: 1.94,
|
|
28390
|
+
radius: 0.51,
|
|
28391
|
+
wheels: 2
|
|
28392
|
+
},
|
|
28393
|
+
{
|
|
28394
|
+
x: -1.7,
|
|
28395
|
+
track: 1.96,
|
|
28396
|
+
radius: 0.51,
|
|
28397
|
+
wheels: 4
|
|
28398
|
+
}
|
|
28399
|
+
]
|
|
28400
|
+
},
|
|
28401
|
+
tractor: {
|
|
28402
|
+
axles: [
|
|
28403
|
+
{
|
|
28404
|
+
x: 1.12,
|
|
28405
|
+
track: 1.48,
|
|
28406
|
+
radius: 0.4,
|
|
28407
|
+
wheels: 2
|
|
28408
|
+
},
|
|
28409
|
+
{
|
|
28410
|
+
x: -0.95,
|
|
28411
|
+
track: 1.5,
|
|
28412
|
+
radius: 0.79,
|
|
28413
|
+
wheels: 2
|
|
28414
|
+
}
|
|
28415
|
+
]
|
|
28416
|
+
},
|
|
28417
|
+
light_4x4: {
|
|
28418
|
+
axles: [
|
|
28419
|
+
{
|
|
28420
|
+
x: 1.15,
|
|
28421
|
+
track: 1.54,
|
|
28422
|
+
radius: 0.37,
|
|
28423
|
+
wheels: 2
|
|
28424
|
+
},
|
|
28425
|
+
{
|
|
28426
|
+
x: -1.15,
|
|
28427
|
+
track: 1.54,
|
|
28428
|
+
radius: 0.37,
|
|
28429
|
+
wheels: 2
|
|
28430
|
+
}
|
|
28431
|
+
]
|
|
28432
|
+
},
|
|
28433
|
+
troop_truck: {
|
|
28434
|
+
axles: [
|
|
28435
|
+
{
|
|
28436
|
+
x: 2.45,
|
|
28437
|
+
track: 1.96,
|
|
28438
|
+
radius: 0.56,
|
|
28439
|
+
wheels: 2
|
|
28440
|
+
},
|
|
28441
|
+
{
|
|
28442
|
+
x: -1.65,
|
|
28443
|
+
track: 1.96,
|
|
28444
|
+
radius: 0.56,
|
|
28445
|
+
wheels: 2
|
|
28446
|
+
}
|
|
28447
|
+
]
|
|
28448
|
+
},
|
|
28449
|
+
apc_6x6: {
|
|
28450
|
+
axles: [
|
|
28451
|
+
{
|
|
28452
|
+
x: 2,
|
|
28453
|
+
track: 2.26,
|
|
28454
|
+
radius: 0.58,
|
|
28455
|
+
wheels: 2
|
|
28456
|
+
},
|
|
28457
|
+
{
|
|
28458
|
+
x: 0.2,
|
|
28459
|
+
track: 2.26,
|
|
28460
|
+
radius: 0.58,
|
|
28461
|
+
wheels: 2
|
|
28462
|
+
},
|
|
28463
|
+
{
|
|
28464
|
+
x: -1.3,
|
|
28465
|
+
track: 2.26,
|
|
28466
|
+
radius: 0.58,
|
|
28467
|
+
wheels: 2
|
|
28468
|
+
}
|
|
28469
|
+
]
|
|
28470
|
+
},
|
|
28471
|
+
armored_car_6x6: {
|
|
28472
|
+
axles: [
|
|
28473
|
+
{
|
|
28474
|
+
x: 1.6,
|
|
28475
|
+
track: 2.27,
|
|
28476
|
+
radius: 0.5,
|
|
28477
|
+
wheels: 2
|
|
28478
|
+
},
|
|
28479
|
+
{
|
|
28480
|
+
x: -0.8,
|
|
28481
|
+
track: 2.27,
|
|
28482
|
+
radius: 0.5,
|
|
28483
|
+
wheels: 2
|
|
28484
|
+
},
|
|
28485
|
+
{
|
|
28486
|
+
x: -2.1,
|
|
28487
|
+
track: 2.27,
|
|
28488
|
+
radius: 0.5,
|
|
28489
|
+
wheels: 2
|
|
28490
|
+
}
|
|
28491
|
+
]
|
|
28492
|
+
},
|
|
28493
|
+
battle_tank: {
|
|
28494
|
+
tracks: {
|
|
28495
|
+
gauge: 2.65,
|
|
28496
|
+
rearX: -2.67,
|
|
28497
|
+
frontX: 2.55,
|
|
28498
|
+
roadWheels: 7,
|
|
28499
|
+
radius: 0.35
|
|
28500
|
+
}
|
|
28501
|
+
},
|
|
28502
|
+
step_through_scooter: {
|
|
28503
|
+
axles: [
|
|
28504
|
+
{
|
|
28505
|
+
x: 0.63,
|
|
28506
|
+
track: 0,
|
|
28507
|
+
radius: 0.28,
|
|
28508
|
+
wheels: 1
|
|
28509
|
+
},
|
|
28510
|
+
{
|
|
28511
|
+
x: -0.63,
|
|
28512
|
+
track: 0,
|
|
28513
|
+
radius: 0.26,
|
|
28514
|
+
wheels: 1
|
|
28515
|
+
}
|
|
28516
|
+
]
|
|
28517
|
+
},
|
|
28518
|
+
naked_bike: {
|
|
28519
|
+
axles: [
|
|
28520
|
+
{
|
|
28521
|
+
x: 0.69,
|
|
28522
|
+
track: 0,
|
|
28523
|
+
radius: 0.3,
|
|
28524
|
+
wheels: 1
|
|
28525
|
+
},
|
|
28526
|
+
{
|
|
28527
|
+
x: -0.68,
|
|
28528
|
+
track: 0,
|
|
28529
|
+
radius: 0.31,
|
|
28530
|
+
wheels: 1
|
|
28531
|
+
}
|
|
28532
|
+
]
|
|
28533
|
+
},
|
|
28534
|
+
sport_bike: {
|
|
28535
|
+
axles: [
|
|
28536
|
+
{
|
|
28537
|
+
x: 0.69,
|
|
28538
|
+
track: 0,
|
|
28539
|
+
radius: 0.29,
|
|
28540
|
+
wheels: 1
|
|
28541
|
+
},
|
|
28542
|
+
{
|
|
28543
|
+
x: -0.68,
|
|
28544
|
+
track: 0,
|
|
28545
|
+
radius: 0.32,
|
|
28546
|
+
wheels: 1
|
|
28547
|
+
}
|
|
28548
|
+
]
|
|
28549
|
+
},
|
|
28550
|
+
cruiser: {
|
|
28551
|
+
axles: [
|
|
28552
|
+
{
|
|
28553
|
+
x: 0.83,
|
|
28554
|
+
track: 0,
|
|
28555
|
+
radius: 0.32,
|
|
28556
|
+
wheels: 1
|
|
28557
|
+
},
|
|
28558
|
+
{
|
|
28559
|
+
x: -0.83,
|
|
28560
|
+
track: 0,
|
|
28561
|
+
radius: 0.32,
|
|
28562
|
+
wheels: 1
|
|
28563
|
+
}
|
|
28564
|
+
]
|
|
28565
|
+
},
|
|
28566
|
+
delivery_bike: {
|
|
28567
|
+
axles: [
|
|
28568
|
+
{
|
|
28569
|
+
x: 0.66,
|
|
28570
|
+
track: 0,
|
|
28571
|
+
radius: 0.31,
|
|
28572
|
+
wheels: 1
|
|
28573
|
+
},
|
|
28574
|
+
{
|
|
28575
|
+
x: -0.66,
|
|
28576
|
+
track: 0,
|
|
28577
|
+
radius: 0.31,
|
|
28578
|
+
wheels: 1
|
|
28579
|
+
}
|
|
28580
|
+
]
|
|
28581
|
+
},
|
|
28582
|
+
boxy_hatch: {
|
|
28583
|
+
axles: [
|
|
28584
|
+
{
|
|
28585
|
+
x: 1.17,
|
|
28586
|
+
track: 1.34,
|
|
28587
|
+
radius: 0.29,
|
|
28588
|
+
wheels: 2
|
|
28589
|
+
},
|
|
28590
|
+
{
|
|
28591
|
+
x: -1.19,
|
|
28592
|
+
track: 1.36,
|
|
28593
|
+
radius: 0.29,
|
|
28594
|
+
wheels: 2
|
|
28595
|
+
}
|
|
28596
|
+
]
|
|
28597
|
+
},
|
|
28598
|
+
family_hatch: {
|
|
28599
|
+
axles: [
|
|
28600
|
+
{
|
|
28601
|
+
x: 1.2,
|
|
28602
|
+
track: 1.46,
|
|
28603
|
+
radius: 0.3,
|
|
28604
|
+
wheels: 2
|
|
28605
|
+
},
|
|
28606
|
+
{
|
|
28607
|
+
x: -1.26,
|
|
28608
|
+
track: 1.46,
|
|
28609
|
+
radius: 0.3,
|
|
28610
|
+
wheels: 2
|
|
28611
|
+
}
|
|
28612
|
+
]
|
|
28613
|
+
},
|
|
28614
|
+
rideshare_hatch: {
|
|
28615
|
+
axles: [
|
|
28616
|
+
{
|
|
28617
|
+
x: 1.21,
|
|
28618
|
+
track: 1.5,
|
|
28619
|
+
radius: 0.3,
|
|
28620
|
+
wheels: 2
|
|
28621
|
+
},
|
|
28622
|
+
{
|
|
28623
|
+
x: -1.32,
|
|
28624
|
+
track: 1.5,
|
|
28625
|
+
radius: 0.3,
|
|
28626
|
+
wheels: 2
|
|
28627
|
+
}
|
|
28628
|
+
]
|
|
28629
|
+
},
|
|
28630
|
+
turbo_hatch: {
|
|
28631
|
+
axles: [
|
|
28632
|
+
{
|
|
28633
|
+
x: 1.25,
|
|
28634
|
+
track: 1.54,
|
|
28635
|
+
radius: 0.31,
|
|
28636
|
+
wheels: 2
|
|
28637
|
+
},
|
|
28638
|
+
{
|
|
28639
|
+
x: -1.32,
|
|
28640
|
+
track: 1.54,
|
|
28641
|
+
radius: 0.31,
|
|
28642
|
+
wheels: 2
|
|
28643
|
+
}
|
|
28644
|
+
]
|
|
28645
|
+
},
|
|
28646
|
+
fastback_sedan: {
|
|
28647
|
+
axles: [
|
|
28648
|
+
{
|
|
28649
|
+
x: 1.35,
|
|
28650
|
+
track: 1.57,
|
|
28651
|
+
radius: 0.32,
|
|
28652
|
+
wheels: 2
|
|
28653
|
+
},
|
|
28654
|
+
{
|
|
28655
|
+
x: -1.35,
|
|
28656
|
+
track: 1.57,
|
|
28657
|
+
radius: 0.32,
|
|
28658
|
+
wheels: 2
|
|
28659
|
+
}
|
|
28660
|
+
]
|
|
28661
|
+
},
|
|
28662
|
+
classic_six_sedan: {
|
|
28663
|
+
axles: [
|
|
28664
|
+
{
|
|
28665
|
+
x: 1.3,
|
|
28666
|
+
track: 1.43,
|
|
28667
|
+
radius: 0.31,
|
|
28668
|
+
wheels: 2
|
|
28669
|
+
},
|
|
28670
|
+
{
|
|
28671
|
+
x: -1.37,
|
|
28672
|
+
track: 1.41,
|
|
28673
|
+
radius: 0.31,
|
|
28674
|
+
wheels: 2
|
|
28675
|
+
}
|
|
28676
|
+
]
|
|
28677
|
+
},
|
|
28678
|
+
v8_coupe: {
|
|
28679
|
+
axles: [
|
|
28680
|
+
{
|
|
28681
|
+
x: 1.35,
|
|
28682
|
+
track: 1.59,
|
|
28683
|
+
radius: 0.34,
|
|
28684
|
+
wheels: 2
|
|
28685
|
+
},
|
|
28686
|
+
{
|
|
28687
|
+
x: -1.37,
|
|
28688
|
+
track: 1.64,
|
|
28689
|
+
radius: 0.35,
|
|
28690
|
+
wheels: 2
|
|
28691
|
+
}
|
|
28692
|
+
]
|
|
28693
|
+
}
|
|
28694
|
+
};
|
|
28695
|
+
|
|
28696
|
+
// src/wheel-layouts.ts
|
|
28697
|
+
var table2 = wheel_layouts_default;
|
|
28698
|
+
var fleetWheelLayout = (id) => table2[id];
|
|
28699
|
+
|
|
27808
28700
|
// src/data/paint.json
|
|
27809
28701
|
var paint_default = {
|
|
27810
28702
|
civil: [
|
|
@@ -28967,7 +29859,7 @@ var GameVehiclesFleet = (() => {
|
|
|
28967
29859
|
var stats_default = {
|
|
28968
29860
|
compact_hatch: {
|
|
28969
29861
|
speed: 8,
|
|
28970
|
-
acceleration:
|
|
29862
|
+
acceleration: 3,
|
|
28971
29863
|
handling: 7,
|
|
28972
29864
|
toughness: 5,
|
|
28973
29865
|
load: 4,
|
|
@@ -28977,7 +29869,7 @@ var GameVehiclesFleet = (() => {
|
|
|
28977
29869
|
},
|
|
28978
29870
|
taxi: {
|
|
28979
29871
|
speed: 8,
|
|
28980
|
-
acceleration:
|
|
29872
|
+
acceleration: 3,
|
|
28981
29873
|
handling: 7,
|
|
28982
29874
|
toughness: 5,
|
|
28983
29875
|
load: 4,
|
|
@@ -28987,7 +29879,7 @@ var GameVehiclesFleet = (() => {
|
|
|
28987
29879
|
},
|
|
28988
29880
|
entry_hatch: {
|
|
28989
29881
|
speed: 7,
|
|
28990
|
-
acceleration:
|
|
29882
|
+
acceleration: 1,
|
|
28991
29883
|
handling: 7,
|
|
28992
29884
|
toughness: 5,
|
|
28993
29885
|
load: 4,
|
|
@@ -28997,7 +29889,7 @@ var GameVehiclesFleet = (() => {
|
|
|
28997
29889
|
},
|
|
28998
29890
|
electric_hatch: {
|
|
28999
29891
|
speed: 7,
|
|
29000
|
-
acceleration:
|
|
29892
|
+
acceleration: 4,
|
|
29001
29893
|
handling: 6,
|
|
29002
29894
|
toughness: 6,
|
|
29003
29895
|
load: 4,
|
|
@@ -29007,7 +29899,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29007
29899
|
},
|
|
29008
29900
|
midsize_sedan: {
|
|
29009
29901
|
speed: 9,
|
|
29010
|
-
acceleration:
|
|
29902
|
+
acceleration: 6,
|
|
29011
29903
|
handling: 6,
|
|
29012
29904
|
toughness: 6,
|
|
29013
29905
|
load: 4,
|
|
@@ -29017,7 +29909,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29017
29909
|
},
|
|
29018
29910
|
police_sedan: {
|
|
29019
29911
|
speed: 9,
|
|
29020
|
-
acceleration:
|
|
29912
|
+
acceleration: 6,
|
|
29021
29913
|
handling: 6,
|
|
29022
29914
|
toughness: 6,
|
|
29023
29915
|
load: 4,
|
|
@@ -29027,7 +29919,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29027
29919
|
},
|
|
29028
29920
|
highway_police_sedan: {
|
|
29029
29921
|
speed: 9,
|
|
29030
|
-
acceleration:
|
|
29922
|
+
acceleration: 6,
|
|
29031
29923
|
handling: 6,
|
|
29032
29924
|
toughness: 6,
|
|
29033
29925
|
load: 4,
|
|
@@ -29107,7 +29999,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29107
29999
|
},
|
|
29108
30000
|
beetle: {
|
|
29109
30001
|
speed: 5,
|
|
29110
|
-
acceleration:
|
|
30002
|
+
acceleration: 1,
|
|
29111
30003
|
handling: 7,
|
|
29112
30004
|
toughness: 5,
|
|
29113
30005
|
load: 4,
|
|
@@ -29117,7 +30009,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29117
30009
|
},
|
|
29118
30010
|
compact_suv: {
|
|
29119
30011
|
speed: 8,
|
|
29120
|
-
acceleration:
|
|
30012
|
+
acceleration: 5,
|
|
29121
30013
|
handling: 6,
|
|
29122
30014
|
toughness: 6,
|
|
29123
30015
|
load: 4,
|
|
@@ -29127,7 +30019,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29127
30019
|
},
|
|
29128
30020
|
hybrid_suv: {
|
|
29129
30021
|
speed: 8,
|
|
29130
|
-
acceleration:
|
|
30022
|
+
acceleration: 2,
|
|
29131
30023
|
handling: 6,
|
|
29132
30024
|
toughness: 6,
|
|
29133
30025
|
load: 4,
|
|
@@ -29457,7 +30349,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29457
30349
|
},
|
|
29458
30350
|
boxy_hatch: {
|
|
29459
30351
|
speed: 6,
|
|
29460
|
-
acceleration:
|
|
30352
|
+
acceleration: 2,
|
|
29461
30353
|
handling: 7,
|
|
29462
30354
|
toughness: 4,
|
|
29463
30355
|
load: 3,
|
|
@@ -29467,7 +30359,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29467
30359
|
},
|
|
29468
30360
|
family_hatch: {
|
|
29469
30361
|
speed: 7,
|
|
29470
|
-
acceleration:
|
|
30362
|
+
acceleration: 4,
|
|
29471
30363
|
handling: 7,
|
|
29472
30364
|
toughness: 5,
|
|
29473
30365
|
load: 4,
|
|
@@ -29477,7 +30369,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29477
30369
|
},
|
|
29478
30370
|
rideshare_hatch: {
|
|
29479
30371
|
speed: 7,
|
|
29480
|
-
acceleration:
|
|
30372
|
+
acceleration: 2,
|
|
29481
30373
|
handling: 7,
|
|
29482
30374
|
toughness: 5,
|
|
29483
30375
|
load: 4,
|
|
@@ -29487,7 +30379,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29487
30379
|
},
|
|
29488
30380
|
turbo_hatch: {
|
|
29489
30381
|
speed: 8,
|
|
29490
|
-
acceleration:
|
|
30382
|
+
acceleration: 6,
|
|
29491
30383
|
handling: 7,
|
|
29492
30384
|
toughness: 5,
|
|
29493
30385
|
load: 4,
|
|
@@ -29507,7 +30399,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29507
30399
|
},
|
|
29508
30400
|
classic_six_sedan: {
|
|
29509
30401
|
speed: 7,
|
|
29510
|
-
acceleration:
|
|
30402
|
+
acceleration: 4,
|
|
29511
30403
|
handling: 5,
|
|
29512
30404
|
toughness: 6,
|
|
29513
30405
|
load: 5,
|
|
@@ -29517,7 +30409,7 @@ var GameVehiclesFleet = (() => {
|
|
|
29517
30409
|
},
|
|
29518
30410
|
v8_coupe: {
|
|
29519
30411
|
speed: 10,
|
|
29520
|
-
acceleration:
|
|
30412
|
+
acceleration: 10,
|
|
29521
30413
|
handling: 5,
|
|
29522
30414
|
toughness: 6,
|
|
29523
30415
|
load: 3,
|
|
@@ -29665,6 +30557,11 @@ var GameVehiclesFleet = (() => {
|
|
|
29665
30557
|
|
|
29666
30558
|
// src/proving.ts
|
|
29667
30559
|
var FLEET_FOUR_WHEEL_DRIVE = ["light_4x4", "troop_truck", "apc_6x6", "armored_car_6x6", "battle_tank", "monster_truck", "midsize_pickup", "large_suv", "tractor", "quad_bike"];
|
|
30560
|
+
var domainIsLand = (group) => group !== "water" && group !== "air";
|
|
30561
|
+
var FLEET_VEHICLE_TYPES = { bicycle: "bicycle", tractor: "tractor", battle_tank: "tracked", quad_bike: "car" };
|
|
30562
|
+
var GROUP_VEHICLE_TYPES = { motorcycles: "motorcycle", heavy: "truck" };
|
|
30563
|
+
var MILITARY_TRUCKS = ["troop_truck", "apc_6x6", "armored_car_6x6"];
|
|
30564
|
+
var fleetVehicleTypeOf = (id) => FLEET_VEHICLE_TYPES[id] ?? (MILITARY_TRUCKS.includes(id) ? "truck" : GROUP_VEHICLE_TYPES[fleetGroupOf(id) ?? ""] ?? "car");
|
|
29668
30565
|
var fleetGroupOf = (id) => Object.entries(fleetGroups).find(([, ids]) => ids.includes(id))?.[0];
|
|
29669
30566
|
function fleetProvingSubject(id, options = {}) {
|
|
29670
30567
|
const stats2 = fleetStats(id);
|
|
@@ -29672,6 +30569,9 @@ var GameVehiclesFleet = (() => {
|
|
|
29672
30569
|
if (!stats2 || !dims) return null;
|
|
29673
30570
|
const group = fleetGroupOf(id) ?? "cars";
|
|
29674
30571
|
const density = { motorcycles: 90, cars: 88, suvs: 90, pickups: 95, vans: 80, heavy: 120, agricultural: 150, military: 260, water: 60, air: 40 };
|
|
30572
|
+
const layout = fleetWheelLayout(id);
|
|
30573
|
+
const axles = layout?.axles?.map((axle) => ({ x: axle.x, track: axle.track, radius: axle.radius }));
|
|
30574
|
+
const modelWheelbase = axles ? Math.round((axles[0].x - axles[axles.length - 1].x) * 100) / 100 : void 0;
|
|
29675
30575
|
return {
|
|
29676
30576
|
id,
|
|
29677
30577
|
domain: group === "water" ? "water" : group === "air" ? "air" : "land",
|
|
@@ -29679,12 +30579,79 @@ var GameVehiclesFleet = (() => {
|
|
|
29679
30579
|
stats: { acceleration: stats2.acceleration, handling: stats2.handling, maxSpeedKmh: stats2.maxSpeedKmh },
|
|
29680
30580
|
body: {
|
|
29681
30581
|
mass: options.mass ?? Math.round((density[group] ?? 90) * dims.length * dims.width * dims.height),
|
|
29682
|
-
wheelbase: options.wheelbase ?? Math.round(dims.length * 0.6 * 100) / 100,
|
|
29683
|
-
track: options.track ?? Math.round(dims.width * 0.82 * 100) / 100,
|
|
29684
|
-
fourWheelDrive: options.fourWheelDrive ?? FLEET_FOUR_WHEEL_DRIVE.includes(id)
|
|
30582
|
+
wheelbase: options.wheelbase ?? modelWheelbase ?? (layout?.tracks ? Math.round((layout.tracks.frontX - layout.tracks.rearX) * 100) / 100 : Math.round(dims.length * 0.6 * 100) / 100),
|
|
30583
|
+
track: options.track ?? axles?.[0]?.track ?? layout?.tracks?.gauge ?? Math.round(dims.width * 0.82 * 100) / 100,
|
|
30584
|
+
fourWheelDrive: options.fourWheelDrive ?? FLEET_FOUR_WHEEL_DRIVE.includes(id),
|
|
30585
|
+
...domainIsLand(group) ? { type: fleetVehicleTypeOf(id), ...axles && !options.wheelbase ? { axles } : {}, ...layout?.tracks ? { tracks: layout.tracks } : {} } : {}
|
|
29685
30586
|
}
|
|
29686
30587
|
};
|
|
29687
30588
|
}
|
|
30589
|
+
|
|
30590
|
+
// src/acceleration-sources.ts
|
|
30591
|
+
var FLEET_ACCELERATION_SOURCES = {
|
|
30592
|
+
compact_hatch: { seconds: 13.3, source: "Chevrolet Onix 1.0 naturally aspirated: 13.3 s ethanol / 13.7 s petrol (GM, via https://www.webmotors.com.br/wm1/testes/teste-chevrolet-onix-1-0/ e https://www.fichacompleta.com.br/carros/chevrolet/onix-1-0-2025)" },
|
|
30593
|
+
taxi: { seconds: 13.3, source: "Chevrolet Onix Plus LT 1.0 naturally aspirated: 13.3 s (https://garagem360.com.br/?p=216236)" },
|
|
30594
|
+
entry_hatch: { seconds: 15.5, source: "Renault Kwid 1.0: 15.5 s, Renault figure (https://www.icarros.com.br/noticias/testes-e-comparativos/como-anda-o-renault-kwid-intense,-de-r$-39.990-/23022.html); 14.9 s measured by Quatro Rodas" },
|
|
30595
|
+
electric_hatch: { seconds: 12.3, source: "BYD Dolphin 95 hp: 12.3 s (spec sheets; https://www.motor.es/byd/dolphin/comfort-27792.html); a Colombian test measured 10.9 s (https://www.elcarrocolombiano.com/pruebas/byd-dolphin-primer-carro-electrico-colombia-prueba-test-drive-video/)" },
|
|
30596
|
+
midsize_sedan: { seconds: 9.9, source: "Toyota Corolla GLi 2.0: 9.9 s, Motor Show measurement (https://motorshow.com.br/blog-sobre-rodas-avaliacao-toyota-corolla-gli-e-o-melhor-carro-que-voce-pode-comprar-hoje-com-r-110-mil)" },
|
|
30597
|
+
police_sedan: { seconds: 9, source: "Chevrolet Cruze 1.4 turbo: 9.0 s, Motor Show (https://motorshow.com.br/segunda-geracao-coloca-o-chevrolet-cruze-em-patamar-superior); 8.8 s at Autopapo" },
|
|
30598
|
+
highway_police_sedan: { seconds: 9, source: "Chevrolet Cruze 1.4 turbo: 9.0 s, Motor Show (https://motorshow.com.br/segunda-geracao-coloca-o-chevrolet-cruze-em-patamar-superior)" },
|
|
30599
|
+
beetle: { seconds: 30.9, source: "Volkswagen Fusca 1300 (1971 on): 30.9 s, spec database (https://www.fichacompleta.com.br/en/carros/volkswagen/fusca-1300-1975); sources range from 24 to 45 s, all above the cars band: rating 1" },
|
|
30600
|
+
boxy_hatch: { seconds: 14.7, source: "Fiat Uno Mille Economy/Celebration (Fire flex, 2009-2013): 14.7 s (https://carro.blog.br/usados/avaliacao-do-fiat-uno-mille-economy-1-0-4p-2013-o-ultimo-ano-do-uno-quadrado.html)" },
|
|
30601
|
+
family_hatch: { seconds: 12.3, source: "Volkswagen Gol G5 1.0 flex on ethanol: 12.3 s, Webmotors (https://www.webmotors.com.br/wm1/?p=675225)" },
|
|
30602
|
+
rideshare_hatch: { seconds: 14.5, source: "Hyundai HB20 1.0 naturally aspirated: 14.5 s ethanol / 15.4 s petrol, Hyundai catalogue (https://www.hyundai.com.br/content/dam/hmb/cars/hb20/2023/catalogos/Catalogo_DIgital_Novo_HB20_Sense%20Plus_2024.pdf)" },
|
|
30603
|
+
turbo_hatch: { seconds: 9.9, source: "Volkswagen Polo 200 TSI: 9.9 s petrol / 9.6 s ethanol (https://autoentusiastas.com.br/2017/09/andando-com-o-novo-polo-com-video/); Motor Show 10.1 / 9.6 s" },
|
|
30604
|
+
fastback_sedan: { seconds: 8.2, source: "Honda Civic 1.5 turbo (10th generation): 8.2 s, maker spec sheets; 8.43 s measured (https://www.headlightmag.com/preview-accelaration-fuel-consumption-honda-civic-el-plus/)" },
|
|
30605
|
+
classic_six_sedan: { seconds: 12.2, source: "Chevrolet Opala Comodoro 4.1 (1990): 12.2 s, spec database (https://www.fichacompleta.com.br/en/carros/comparativo/opala-ss-4-1-1971-vs-opala-comodoro-4-1-1990)" },
|
|
30606
|
+
v8_coupe: { seconds: 4.8, source: "Ford Mustang GT 5.0: 4.8 s, Ford figure (https://media.ford.com/content/fordmedia/feu/en/news/2015/04/27/all-new-mustang-sprints-0-100-km-h-in-under-5-seconds--2-200-ord.html)" },
|
|
30607
|
+
compact_suv: { seconds: 10, source: "Volkswagen T-Cross 200 TSI: 10.0 s petrol, VW spec sheet (https://garagem360.com.br/?p=249858)" },
|
|
30608
|
+
hybrid_suv: { seconds: 11.8, source: "Toyota Corolla Cross Hybrid (Brazil): 11.8 s measured by Motor Show (https://motorshow.com.br/avaliacao-corolla-cross-hibrido-2-0-tem-197-cv-e-humilha-o-brasileiro-com-freio-eletronico-teto-e-muito-mais)" },
|
|
30609
|
+
midsize_suv: { seconds: null, source: "no source: Jeep Compass Longitude, only figures for other engines and markets (10.3 s at 130 hp, 9.2 s at 150 hp, 10.7 s at altitude)" },
|
|
30610
|
+
large_suv: { seconds: null, source: "no source: the current Toyota SW4 2.8 has no published 0-100 (the only figure found is the old SW4, 25.5 s)" }
|
|
30611
|
+
};
|
|
30612
|
+
|
|
30613
|
+
// src/cabin-categories.ts
|
|
30614
|
+
var CABIN_OVERRIDES = {
|
|
30615
|
+
school_bus: "bus",
|
|
30616
|
+
city_bus: "bus",
|
|
30617
|
+
light_4x4: "military_light",
|
|
30618
|
+
troop_truck: "truck",
|
|
30619
|
+
apc_6x6: "military_armored",
|
|
30620
|
+
armored_car_6x6: "military_armored",
|
|
30621
|
+
battle_tank: "military_armored",
|
|
30622
|
+
transport_helicopter: "aircraft_enclosed",
|
|
30623
|
+
light_attack_turboprop: "aircraft_enclosed",
|
|
30624
|
+
attack_helicopter: "aircraft_enclosed",
|
|
30625
|
+
fishing_boat: "boat_cabin",
|
|
30626
|
+
patrol_boat: "boat_cabin"
|
|
30627
|
+
};
|
|
30628
|
+
function fleetCabinCategoryOf(id) {
|
|
30629
|
+
const override = CABIN_OVERRIDES[id];
|
|
30630
|
+
if (override !== void 0) return override;
|
|
30631
|
+
const group = fleetGroupOf(id);
|
|
30632
|
+
switch (group) {
|
|
30633
|
+
case "cars":
|
|
30634
|
+
return "passenger_car";
|
|
30635
|
+
case "suvs":
|
|
30636
|
+
case "pickups":
|
|
30637
|
+
return "suv_pickup";
|
|
30638
|
+
case "vans":
|
|
30639
|
+
return "van";
|
|
30640
|
+
case "heavy":
|
|
30641
|
+
return "truck";
|
|
30642
|
+
case "agricultural":
|
|
30643
|
+
return "agricultural";
|
|
30644
|
+
case "air":
|
|
30645
|
+
return "aircraft_enclosed";
|
|
30646
|
+
case "motorcycles":
|
|
30647
|
+
case "water":
|
|
30648
|
+
return "open_vehicle";
|
|
30649
|
+
case "military":
|
|
30650
|
+
return "military_armored";
|
|
30651
|
+
default:
|
|
30652
|
+
return "passenger_car";
|
|
30653
|
+
}
|
|
30654
|
+
}
|
|
29688
30655
|
return __toCommonJS(index_exports);
|
|
29689
30656
|
})();
|
|
29690
30657
|
//# sourceMappingURL=index.global.js.map
|