@adatechnology/game-vehicles-fleet 7.0.0 → 8.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/dist/index.d.ts +5 -2
- package/dist/index.global.js +212 -67
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +212 -67
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -4852,8 +4852,9 @@ function installBoatsExtra(fx) {
|
|
|
4852
4852
|
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);
|
|
4853
4853
|
c.sphere(0.025, MT.plastic, hx + 0.78, ih + 1.12, z - 0.05);
|
|
4854
4854
|
});
|
|
4855
|
-
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 }) });
|
|
4856
|
-
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 }) });
|
|
4855
|
+
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" });
|
|
4856
|
+
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" });
|
|
4857
|
+
c.addDoor({ id: "cabin_door", widthMetres: 0.72, heightMetres: 1.65 });
|
|
4857
4858
|
c.roundBox(0.45, 0.42, 1.9, 0.04, CM("#25282b", { roughness: 0.8 }), hx - 1.35, ih + 0.21, 0.1);
|
|
4858
4859
|
c.seatTops.push({ x: hx - 1.35, y: ih + 0.44, z: 0.1, w: 1.8, l: 0.4 });
|
|
4859
4860
|
c.roundBox(3, 0.02, 2, 0.01, CM("#3a3f44", { roughness: 0.9 }), hx, hy0 + hh - 0.06, 0).castShadow = false;
|
|
@@ -5798,8 +5799,9 @@ function installCarsExtra(fx) {
|
|
|
5798
5799
|
m.tumble = T;
|
|
5799
5800
|
m.frontQuad = qf;
|
|
5800
5801
|
if (intr && s.shelf) {
|
|
5801
|
-
const sx0 = gh.rb + 0.03, sx1 = gh.rb + s.shelf;
|
|
5802
|
-
|
|
5802
|
+
const sx0 = gh.rb + 0.03, sx1 = Math.min(gh.rb + s.shelf, gh.rb + 0.26);
|
|
5803
|
+
if (sx1 > sx0 + 0.04)
|
|
5804
|
+
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;
|
|
5803
5805
|
}
|
|
5804
5806
|
if (intr)
|
|
5805
5807
|
kit.interior(
|
|
@@ -5810,11 +5812,17 @@ function installCarsExtra(fx) {
|
|
|
5810
5812
|
ft: gh.ft,
|
|
5811
5813
|
rb: gh.rb,
|
|
5812
5814
|
rt: gh.rt,
|
|
5813
|
-
roof:
|
|
5815
|
+
roof: gh.roof + 0.02,
|
|
5814
5816
|
belt: gh.belt,
|
|
5815
|
-
floor: s.bottomY + 0.
|
|
5817
|
+
floor: s.bottomY + 0.02,
|
|
5818
|
+
seatH: 0.12,
|
|
5819
|
+
dashD: 0.32,
|
|
5820
|
+
dashH: 0.24,
|
|
5821
|
+
visorUp: true,
|
|
5816
5822
|
zIn: gh.Wg / 2 - 0.09,
|
|
5817
5823
|
zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
|
|
5824
|
+
xFront: s.shelf ? gh.fb - 0.86 : void 0,
|
|
5825
|
+
rowPitch: s.shelf ? 0.72 : void 0,
|
|
5818
5826
|
xRear: gh.rb + 0.06
|
|
5819
5827
|
},
|
|
5820
5828
|
intr
|
|
@@ -6362,7 +6370,7 @@ function installCarsExtra(fx) {
|
|
|
6362
6370
|
]);
|
|
6363
6371
|
c2.roundBox(0.03, 0.05, 0.16, 0.012, MT.trim, I.S.endX(-1, 0.84) - 0.01, 0.84, 0);
|
|
6364
6372
|
},
|
|
6365
|
-
interior: { rows: 2, col: "#4a4c52", trim: "#26272a" },
|
|
6373
|
+
interior: { rows: 2, col: "#4a4c52", trim: "#26272a", rowPitch: 0.72 },
|
|
6366
6374
|
hood: { motor: "gasoline" },
|
|
6367
6375
|
wheels: [
|
|
6368
6376
|
[1.17, 0.2875, 0.175, wheelOpts("hubcap")],
|
|
@@ -7862,7 +7870,7 @@ function installCarsExtra(fx) {
|
|
|
7862
7870
|
const lip = K.grid(-1, 0, { z1: 0.7, y0: 0.88, y1: 0.97, du: 0.03, dv: 0.02 });
|
|
7863
7871
|
K.skin(lip, GLOSS, { u0: 0.05, u1: 0.95, yb: 0.925, yt: 0.955, off: 0.016, thick: 0.02, nv: 2 });
|
|
7864
7872
|
},
|
|
7865
|
-
interior: { rows: 2, col: "#1c1d20", trim: "#121316" },
|
|
7873
|
+
interior: { rows: 2, col: "#1c1d20", trim: "#121316", xFront: -0.46, rowPitch: 0.62 },
|
|
7866
7874
|
hood: { motor: "v8_na" },
|
|
7867
7875
|
wheels: [
|
|
7868
7876
|
[1.35, 0.3435, 0.255, { rim: ALLOYD, spokeMat: ALLOY, spokes: 10, rimR: 0.72 }],
|
|
@@ -8125,16 +8133,20 @@ function installHeavy(fx) {
|
|
|
8125
8133
|
x: xd - 0.07,
|
|
8126
8134
|
y: belt + 0.02,
|
|
8127
8135
|
w: zi * 2,
|
|
8128
|
-
d: 0.
|
|
8129
|
-
h: Math.min(0.
|
|
8136
|
+
d: 0.34,
|
|
8137
|
+
h: Math.min(0.28, belt - fl - 0.16),
|
|
8130
8138
|
drv: -zi * 0.52,
|
|
8131
8139
|
mat: trim,
|
|
8132
8140
|
top: fab
|
|
8133
8141
|
});
|
|
8134
8142
|
kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.22, tilt: 1.12, col: 0.5, mat: trim });
|
|
8135
8143
|
const sx = Math.max(f - len + 0.62, xd - 1.08);
|
|
8136
|
-
kit.seat(c, sx, fl, -zi * 0.52, { w: 0.
|
|
8137
|
-
kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.
|
|
8144
|
+
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" });
|
|
8145
|
+
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" });
|
|
8146
|
+
const doorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
|
|
8147
|
+
const doorH = Math.max(1.05, ry - fl - 0.1);
|
|
8148
|
+
c.addDoor({ id: "door_front_left", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
|
|
8149
|
+
c.addDoor({ id: "door_front_right", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
|
|
8138
8150
|
c.rod(new V3(sx + 0.55, fl, -0.05), new V3(sx + 0.5, fl + 0.48, -0.08), 0.014, MT.chrome);
|
|
8139
8151
|
c.sphere(0.035, MT.plastic, sx + 0.5, fl + 0.5, -0.08);
|
|
8140
8152
|
c.roundBox(0.03, ry - fl - 0.12, zi * 2, 0.01, trim, f - len + 0.07, (ry + fl) / 2, 0);
|
|
@@ -8911,7 +8923,8 @@ function installHeavy(fx) {
|
|
|
8911
8923
|
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 });
|
|
8912
8924
|
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") });
|
|
8913
8925
|
kit.steeringWheel(c, f - 0.6, 1.48, -0.7, { r: 0.25, tilt: 1.1, col: 0.45 });
|
|
8914
|
-
kit.seat(c, f - 1.05, fl, -0.7, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.45 });
|
|
8926
|
+
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" });
|
|
8927
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.85, heightMetres: 1.95 });
|
|
8915
8928
|
c.roundBox(0.9, 0.38, 0.5, 0.08, CM("#2a2b2d"), f - 0.6, fl + 0.19, -0.05);
|
|
8916
8929
|
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);
|
|
8917
8930
|
c.roundBox(L - 0.5, 0.02, zi * 2, 0.01, MT.headliner, 0, 2.98, 0).castShadow = false;
|
|
@@ -9245,9 +9258,11 @@ function installHeavy(fx) {
|
|
|
9245
9258
|
[1, 1.5, -2.2].forEach(function(x) {
|
|
9246
9259
|
c.rod(new V3(x, fl, 0), new V3(x, 2.95, 0), 0.018, pole);
|
|
9247
9260
|
});
|
|
9248
|
-
kit.dashboard(c, { x: fx2(1.3) - 0.08, y: 1.3, w: 1.2, d: 0.
|
|
9261
|
+
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") });
|
|
9249
9262
|
kit.steeringWheel(c, f - 0.62, 1.38, -0.68, { r: 0.25, tilt: 1.15, col: 0.4 });
|
|
9250
|
-
kit.seat(c, f - 1.15, 0.6, -0.68, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.46 });
|
|
9263
|
+
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" });
|
|
9264
|
+
c.addDoor({ id: "door_front_right", widthMetres: 1, heightMetres: 2.05 });
|
|
9265
|
+
c.addDoor({ id: "door_rear_right", widthMetres: 1, heightMetres: 2.05 });
|
|
9251
9266
|
c.roundBox(0.4, 0.95, 0.32, 0.05, CM("#9aa0a4", { metalness: 0.5 }), 3.95, fl + 0.48, -0.55);
|
|
9252
9267
|
[0, 2.09, 4.19].forEach(function(a) {
|
|
9253
9268
|
c.rod(
|
|
@@ -9585,7 +9600,9 @@ function installHeavy(fx) {
|
|
|
9585
9600
|
c.cylinder(0.05, 0.05, 0.012, MT.gauge, -0.165, 1.6, 0.1, "x");
|
|
9586
9601
|
kit.steeringWheel(c, -0.38, 1.66, 0, { r: 0.2, tilt: 1, col: 0.42, mat: MT.trim });
|
|
9587
9602
|
c.roundBox(1, 0.05, 0.94, 0.02, CM("#5c5f62", { metalness: 0.5 }), -0.7, 1.12, 0);
|
|
9588
|
-
kit.seat(c, -1, 1.35, 0, { w: 0.
|
|
9603
|
+
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" });
|
|
9604
|
+
c.addDoor({ id: "cab_entry_left", widthMetres: 0.85, heightMetres: 1.15 });
|
|
9605
|
+
c.addDoor({ id: "cab_entry_right", widthMetres: 0.85, heightMetres: 1.15 });
|
|
9589
9606
|
c.roundBox(0.3, 0.2, 0.3, 0.04, dgray, -1, 1.28, 0);
|
|
9590
9607
|
[
|
|
9591
9608
|
[0.25, 1],
|
|
@@ -9937,7 +9954,11 @@ function installHelicoptersExtra(fx) {
|
|
|
9937
9954
|
const fl = 0.6, fab = CM("#2f3136", { roughness: 0.9 });
|
|
9938
9955
|
GH.liner(c, ST, -0.3, 1, fl, MT.carpet, { h: 0.03, maxW: 0.98 });
|
|
9939
9956
|
[0.26, -0.26].forEach(function(z) {
|
|
9940
|
-
kit.seat(c, 0.05, fl, z, { w: 0.
|
|
9957
|
+
kit.seat(c, 0.05, fl, z, { w: 0.48, h: 0.12, back: 0.6, lean: 0.12, mat: fab, role: "pilot" });
|
|
9958
|
+
if (z < 0) {
|
|
9959
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.68, heightMetres: 0.95 });
|
|
9960
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.68, heightMetres: 0.95 });
|
|
9961
|
+
}
|
|
9941
9962
|
EA.pedals(c, 1.15, fl, z);
|
|
9942
9963
|
});
|
|
9943
9964
|
c.roundBox(0.35, 0.5, 0.24, 0.05, CM("#232427"), 0.95, fl + 0.28, 0, { rot: [0, 0, 0.35] });
|
|
@@ -10305,7 +10326,11 @@ function installHelicoptersExtra(fx) {
|
|
|
10305
10326
|
const fl = 0.68, fab = CM("#4b4339", { roughness: 0.9 });
|
|
10306
10327
|
GH.liner(c, ST, -0.6, 1.8, fl, MT.carpet, { h: 0.03, maxW: 1.15 });
|
|
10307
10328
|
[0.3, -0.3].forEach(function(z) {
|
|
10308
|
-
kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.
|
|
10329
|
+
kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.28, back: 0.64, lean: 0.12, mat: fab, role: "pilot" });
|
|
10330
|
+
if (z < 0) {
|
|
10331
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.05 });
|
|
10332
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.05 });
|
|
10333
|
+
}
|
|
10309
10334
|
EA.cyclic(c, 1.4, fl, z);
|
|
10310
10335
|
EA.pedals(c, 2.1, fl, z);
|
|
10311
10336
|
});
|
|
@@ -10709,7 +10734,11 @@ function installHelicoptersExtra(fx) {
|
|
|
10709
10734
|
const fl = 0.7, fab = CM("#2c3540", { roughness: 0.9 });
|
|
10710
10735
|
GH.liner(c, ST, -2.9, 2.5, fl, MT.carpet, { h: 0.03, maxW: 1.5 });
|
|
10711
10736
|
[0.42, -0.42].forEach(function(z) {
|
|
10712
|
-
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab });
|
|
10737
|
+
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab, role: "pilot" });
|
|
10738
|
+
if (z < 0) {
|
|
10739
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
|
|
10740
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
|
|
10741
|
+
}
|
|
10713
10742
|
EA.cyclic(c, 1.95, fl, z);
|
|
10714
10743
|
EA.pedals(c, 2.75, fl, z);
|
|
10715
10744
|
});
|
|
@@ -11142,10 +11171,12 @@ function installHelicoptersExtra(fx) {
|
|
|
11142
11171
|
kit.cutMesh(fus, [EA.sideCutP(tdP, 0.5)], 40, { sub: 0.12 });
|
|
11143
11172
|
EA.colorize(fus.geometry, col);
|
|
11144
11173
|
const fab = CM("#2e3328", { roughness: 0.85 });
|
|
11145
|
-
kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.
|
|
11174
|
+
kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.1, back: 0.7, lean: 0.15, mat: fab, role: "pilot" });
|
|
11146
11175
|
c.roundBox(0.2, 0.3, 0.6, 0.04, CM("#232427"), 5.35, 1.98, 0, { rot: [0, 0, 0.3] });
|
|
11147
11176
|
c.roundBox(0.2, 0.2, 0.15, 0.03, MT.plastic, 5.25, 2.15, 0);
|
|
11148
|
-
kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.
|
|
11177
|
+
kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.1, back: 0.72, lean: 0.15, mat: fab, role: "pilot" });
|
|
11178
|
+
c.addDoor({ id: "canopy_left", widthMetres: 0.72, heightMetres: 0.95 });
|
|
11179
|
+
c.addDoor({ id: "door_cargo_left", widthMetres: 0.9, heightMetres: 1.15 });
|
|
11149
11180
|
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]] });
|
|
11150
11181
|
EA.cyclic(c, 3.55, 2.12, 0);
|
|
11151
11182
|
EA.collective(c, 3.3, 2.12, -0.38);
|
|
@@ -11957,6 +11988,10 @@ function installMilitary(fx) {
|
|
|
11957
11988
|
mirrorCol: "#22231d",
|
|
11958
11989
|
wheels: []
|
|
11959
11990
|
};
|
|
11991
|
+
s.interior = Object.assign(
|
|
11992
|
+
{ floor: s.bottomY + 0.02, roof: s.gh.roof + 0.02, seatH: 0.14, dashD: 0.32, dashH: 0.24, visorUp: true },
|
|
11993
|
+
s.interior || {}
|
|
11994
|
+
);
|
|
11960
11995
|
kit.car(c, s);
|
|
11961
11996
|
[xf, xr].forEach(function(x) {
|
|
11962
11997
|
;
|
|
@@ -12221,8 +12256,8 @@ function installMilitary(fx) {
|
|
|
12221
12256
|
x: xd - 0.07,
|
|
12222
12257
|
y: belt + 0.02,
|
|
12223
12258
|
w: zi * 2,
|
|
12224
|
-
d: 0.
|
|
12225
|
-
h: Math.min(0.
|
|
12259
|
+
d: 0.34,
|
|
12260
|
+
h: Math.min(0.28, belt - fl - 0.16),
|
|
12226
12261
|
drv: -zi * 0.52,
|
|
12227
12262
|
mat: trim,
|
|
12228
12263
|
top: fab,
|
|
@@ -12230,8 +12265,12 @@ function installMilitary(fx) {
|
|
|
12230
12265
|
});
|
|
12231
12266
|
kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.23, tilt: 1.12, col: 0.5, mat: trim });
|
|
12232
12267
|
const sx = Math.max(f - len + 0.62, xd - 1.08);
|
|
12233
|
-
kit.seat(c, sx, fl, -zi * 0.52, { w: 0.
|
|
12234
|
-
kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.
|
|
12268
|
+
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" });
|
|
12269
|
+
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" });
|
|
12270
|
+
const mDoorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
|
|
12271
|
+
const mDoorH = Math.max(1.05, ry - fl - 0.1);
|
|
12272
|
+
c.addDoor({ id: "door_front_left", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
|
|
12273
|
+
c.addDoor({ id: "door_front_right", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
|
|
12235
12274
|
c.rod(new V3(sx + 0.55, fl, -0.05), new V3(sx + 0.5, fl + 0.48, -0.08), 0.014, OLIVE_STEEL);
|
|
12236
12275
|
c.sphere(0.035, BLACK, sx + 0.5, fl + 0.5, -0.08);
|
|
12237
12276
|
c.roundBox(0.25, 0.16, 0.34, 0.02, CM("#3b402d", { roughness: 0.7 }), xd - 0.35, belt + 0.12, 0.1);
|
|
@@ -12773,7 +12812,9 @@ function installMilitary(fx) {
|
|
|
12773
12812
|
[-0.9, -2.2].forEach(function(x) {
|
|
12774
12813
|
c.roundBox(0.3, 0.04, 0.1, 0.02, RED_LIGHT, x, roofY - 0.1, 0).castShadow = false;
|
|
12775
12814
|
});
|
|
12776
|
-
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 }) });
|
|
12815
|
+
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" });
|
|
12816
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.58, heightMetres: 0.6 });
|
|
12817
|
+
c.addDoor({ id: "ramp_rear", widthMetres: 1.4, heightMetres: 1.35 });
|
|
12777
12818
|
kit.steeringWheel(c, 1.5, 1.42, -0.62, { r: 0.2, tilt: 0.9, col: 0.35 });
|
|
12778
12819
|
c.roundBox(0.35, 0.3, 0.7, 0.04, CM("#25261f"), 1.85, 1.45, -0.6);
|
|
12779
12820
|
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 }) });
|
|
@@ -13142,7 +13183,9 @@ function installMilitary(fx) {
|
|
|
13142
13183
|
});
|
|
13143
13184
|
const fl = 0.72, fab = CM("#2f3226", { roughness: 0.9 });
|
|
13144
13185
|
c.roundBox(3, 0.04, 1.6, 0.01, MT.carpet, 0.2, fl, 0);
|
|
13145
|
-
kit.seat(c, 1, fl
|
|
13186
|
+
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" });
|
|
13187
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.54, heightMetres: 0.58 });
|
|
13188
|
+
c.addDoor({ id: "hatch_commander", widthMetres: 0.6, heightMetres: 0.6 });
|
|
13146
13189
|
kit.steeringWheel(c, 1.5, 1.38, -0.55, { r: 0.18, tilt: 0.9, col: 0.3 });
|
|
13147
13190
|
c.roundBox(0.3, 0.26, 0.6, 0.04, CM("#25261f"), 1.75, 1.35, -0.5);
|
|
13148
13191
|
const nT = c.vehicle.children.length;
|
|
@@ -13190,8 +13233,8 @@ function installMilitary(fx) {
|
|
|
13190
13233
|
for (let k = 0; k < 4; k++)
|
|
13191
13234
|
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);
|
|
13192
13235
|
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);
|
|
13193
|
-
kit.seat(c, tx - 0.4, fl + 0.
|
|
13194
|
-
kit.seat(c, tx - 0.4, fl + 0.
|
|
13236
|
+
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" });
|
|
13237
|
+
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" });
|
|
13195
13238
|
c.roundBox(0.8, 0.3, 0.3, 0.05, BARREL, tx + 0.1, ty + 0.1, 0);
|
|
13196
13239
|
c.roundBox(1.6, 0.02, 1.2, 0.01, MT.headliner, tx - 0.2, ty + 0.66, 0).castShadow = false;
|
|
13197
13240
|
rigid(c, c.vehicle.children.slice(nT));
|
|
@@ -13384,7 +13427,18 @@ function installMilitary(fx) {
|
|
|
13384
13427
|
{ rot: [0, 0, -0.18] }
|
|
13385
13428
|
);
|
|
13386
13429
|
hatch(c, 2.05, roofY - 0.1, -0.78, 0.28, 0, OLIVE_STEEL, { yaw: 0 });
|
|
13387
|
-
kit.seat(c, 1.
|
|
13430
|
+
kit.seat(c, 1.65, 0.3, -0.76, {
|
|
13431
|
+
w: 0.46,
|
|
13432
|
+
h: 0.14,
|
|
13433
|
+
back: 0.5,
|
|
13434
|
+
lean: 0.5,
|
|
13435
|
+
mat: CM("#2f3226", { roughness: 0.9 }),
|
|
13436
|
+
id: "driver",
|
|
13437
|
+
role: "driver",
|
|
13438
|
+
headroomMetres: 0.9
|
|
13439
|
+
});
|
|
13440
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.56, heightMetres: 0.58 });
|
|
13441
|
+
c.addDoor({ id: "hatch_commander", widthMetres: 0.68, heightMetres: 0.68 });
|
|
13388
13442
|
[-0.95, -0.78, -0.61].forEach(function(z, i) {
|
|
13389
13443
|
periscope(c, 2.3, roofY - 0.08, z, 0.14, i === 1 ? lbl("driver_periscope") : null);
|
|
13390
13444
|
});
|
|
@@ -13461,9 +13515,9 @@ function installMilitary(fx) {
|
|
|
13461
13515
|
});
|
|
13462
13516
|
c.roundBox(0.25, 0.3, 1.6, 0.06, CANVAS2, bx + 0.12, ty + 0.4, 0);
|
|
13463
13517
|
c.part("cargo", trl("labels.luggage_basket"), null, new V3(bx + 0.1, ty + 0.5, 0), 1);
|
|
13464
|
-
kit.seat(c, tx - 0.55, ty - 0.45, 0.6, { w: 0.
|
|
13465
|
-
kit.seat(c, tx + 0.2, ty - 0.55, 0.62, { w: 0.
|
|
13466
|
-
kit.seat(c, tx - 0.3, ty - 0.55, -0.62, { w: 0.
|
|
13518
|
+
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" });
|
|
13519
|
+
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" });
|
|
13520
|
+
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" });
|
|
13467
13521
|
c.roundBox(1.1, 0.35, 0.4, 0.05, BARREL, tx + 0.6, ty + 0.35, 0.05);
|
|
13468
13522
|
c.roundBox(2.2, 0.02, 1.6, 0.01, MT.headliner, tx - 0.3, tTop - 0.08, 0).castShadow = false;
|
|
13469
13523
|
c.cylinder(0.05, 0.05, 0.03, RED_LIGHT, tx - 0.4, tTop - 0.1, 0.2);
|
|
@@ -13704,10 +13758,12 @@ function installMilitary(fx) {
|
|
|
13704
13758
|
const fl = 0.86, fab = CM("#2f3226", { roughness: 0.9 });
|
|
13705
13759
|
c.roundBox(5.6, 0.04, 2.05, 0.01, MT.carpet, -0.4, fl, 0).castShadow = false;
|
|
13706
13760
|
[0.5, -0.5].forEach(function(z) {
|
|
13707
|
-
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab });
|
|
13708
|
-
c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK);
|
|
13709
|
-
c.sphere(0.035, BLACK, 1.95, fl + 0.57, z);
|
|
13761
|
+
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab, role: "pilot" });
|
|
13762
|
+
c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK).userData.noCabinRay = true;
|
|
13763
|
+
c.sphere(0.035, BLACK, 1.95, fl + 0.57, z).userData.noCabinRay = true;
|
|
13710
13764
|
});
|
|
13765
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.15 });
|
|
13766
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.15 });
|
|
13711
13767
|
c.roundBox(0.25, 0.45, 1.9, 0.05, CM("#232427"), 2.45, fl + 0.55, 0);
|
|
13712
13768
|
c.roundBox(0.4, 0.05, 1.95, 0.02, CM("#1a1b1d"), 2.4, fl + 0.8, 0, { rot: [0, 0, 0.25] });
|
|
13713
13769
|
[-0.75, -0.45, -0.15, 0.15, 0.45, 0.75].forEach(function(z) {
|
|
@@ -14844,9 +14900,13 @@ function installMotorcyclesCars(fx) {
|
|
|
14844
14900
|
ft: gh.ft,
|
|
14845
14901
|
rb: gh.rb,
|
|
14846
14902
|
rt: gh.rt,
|
|
14847
|
-
roof:
|
|
14903
|
+
roof: gh.roof + 0.02,
|
|
14848
14904
|
belt: gh.belt,
|
|
14849
|
-
floor: s.bottomY + 0.
|
|
14905
|
+
floor: s.bottomY + 0.02,
|
|
14906
|
+
seatH: 0.12,
|
|
14907
|
+
dashD: 0.32,
|
|
14908
|
+
dashH: 0.24,
|
|
14909
|
+
visorUp: true,
|
|
14850
14910
|
zIn: gh.Wg / 2 - 0.09,
|
|
14851
14911
|
zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
|
|
14852
14912
|
xRear: gh.rb + 0.06
|
|
@@ -18319,7 +18379,7 @@ function installMotorcyclesCars(fx) {
|
|
|
18319
18379
|
c.cylinder(0.025, 0.025, 0.2, EXH, -1.98, 0.3, z, "x");
|
|
18320
18380
|
});
|
|
18321
18381
|
c.part("engine", trl("labels.air_cooled_engine_rear"), null, new V3(-1.6, 0.55, 0), 1);
|
|
18322
|
-
const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.
|
|
18382
|
+
const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.31;
|
|
18323
18383
|
c.roundBox(1.7, 0.03, 0.62, 0.01, MT.carpet, -0.15, fl, 0).castShadow = false;
|
|
18324
18384
|
c.roundBox(0.2, 0.24, 1.14, 0.04, col, 0.66, 0.92, 0);
|
|
18325
18385
|
c.roundBox(0.16, 0.05, 1.12, 0.02, CM("#1b1c1e"), 0.6, 1.03, 0);
|
|
@@ -18330,9 +18390,18 @@ function installMotorcyclesCars(fx) {
|
|
|
18330
18390
|
c.rod(new V3(0.12, fl, 0), new V3(0.02, fl + 0.42, 0), 0.01, MT.chrome);
|
|
18331
18391
|
c.sphere(0.025, MT.plastic, 0.02, fl + 0.44, 0);
|
|
18332
18392
|
[-1, 1].forEach(function(sd) {
|
|
18333
|
-
kit.seat(c, -0.
|
|
18393
|
+
kit.seat(c, -0.08, fl, sd * 0.27, {
|
|
18394
|
+
w: 0.44,
|
|
18395
|
+
mat: fab,
|
|
18396
|
+
back: 0.58,
|
|
18397
|
+
lean: 0.2,
|
|
18398
|
+
h: 0.14,
|
|
18399
|
+
headrest: false,
|
|
18400
|
+
id: sd < 0 ? "driver" : "front_right",
|
|
18401
|
+
role: sd < 0 ? "driver" : "front_passenger"
|
|
18402
|
+
});
|
|
18334
18403
|
});
|
|
18335
|
-
kit.seat(c, -0.
|
|
18404
|
+
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" });
|
|
18336
18405
|
[1, -1].forEach(function(sd) {
|
|
18337
18406
|
for (let yk = 0.56; yk < 0.95; yk += 0.075) {
|
|
18338
18407
|
const zf = Math.min(loftHalf(stS, -0.3, yk - 0.04), loftHalf(stS, 0.5, yk - 0.04)) - 0.045;
|
|
@@ -20393,11 +20462,12 @@ function installPlanesExtra(fx) {
|
|
|
20393
20462
|
c.roundBox(0.012, 0.012, 0.06, 4e-3, MT.steel, 2.06, 0.62, 0, PG);
|
|
20394
20463
|
const fl = -0.4, fab = CM("#3c3a35", { roughness: 0.9 });
|
|
20395
20464
|
c.roundBox(2, 0.025, 0.6, 0.01, MT.carpet, 0.55, fl, 0, PG).castShadow = false;
|
|
20396
|
-
kit.seat(c, 0.62, fl, 0, { w: 0.48, h: 0.
|
|
20397
|
-
kit.seat(c, -0.22, fl + 0.04, 0, { w: 0.5, h: 0.
|
|
20465
|
+
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" });
|
|
20466
|
+
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" });
|
|
20467
|
+
c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
|
|
20398
20468
|
[1.12, 0.3].forEach(function(x) {
|
|
20399
|
-
c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG);
|
|
20400
|
-
c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG);
|
|
20469
|
+
c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG).userData.noCabinRay = true;
|
|
20470
|
+
c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG).userData.noCabinRay = true;
|
|
20401
20471
|
});
|
|
20402
20472
|
c.roundBox(0.05, 0.22, 0.6, 0.02, CM("#2a2b2d", { roughness: 0.8 }), 1.75, 0.3, 0, PG);
|
|
20403
20473
|
[-0.2, -0.08, 0.04, 0.16, -0.14].forEach(function(z, i) {
|
|
@@ -20751,7 +20821,8 @@ function installPlanesExtra(fx) {
|
|
|
20751
20821
|
const fl = 0.98, fab = CM("#3d4552", { roughness: 0.9 });
|
|
20752
20822
|
liner(c, ST, -4.6, 5.9, fl, MT.carpet, { h: 0.03 });
|
|
20753
20823
|
[0.38, -0.38].forEach(function(z) {
|
|
20754
|
-
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 }) });
|
|
20824
|
+
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" });
|
|
20825
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.55 });
|
|
20755
20826
|
kit.yoke(c, 5.5, 1.75, z);
|
|
20756
20827
|
EA.pedals(c, 5.95, fl, z);
|
|
20757
20828
|
});
|
|
@@ -21145,7 +21216,8 @@ function installPlanesExtra(fx) {
|
|
|
21145
21216
|
const fl = 2.06, fab = CM("#4a4640", { roughness: 0.9 });
|
|
21146
21217
|
liner(c, ST, -3.2, 2, fl, MT.carpet, { h: 0.03 });
|
|
21147
21218
|
[0.38, -0.38].forEach(function(z) {
|
|
21148
|
-
kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab });
|
|
21219
|
+
kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab, role: "pilot" });
|
|
21220
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.4 });
|
|
21149
21221
|
kit.yoke(c, 1.5, 2.85, z);
|
|
21150
21222
|
EA.pedals(c, 1.95, fl, z);
|
|
21151
21223
|
});
|
|
@@ -21560,7 +21632,8 @@ function installPlanesExtra(fx) {
|
|
|
21560
21632
|
const fl = 0.8, fab = CM("#c9bda6", { roughness: 0.75 });
|
|
21561
21633
|
liner(c, ST, -2, 4, fl, MT.carpet, { h: 0.03 });
|
|
21562
21634
|
[0.36, -0.36].forEach(function(z) {
|
|
21563
|
-
kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30") });
|
|
21635
|
+
kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30"), role: "pilot" });
|
|
21636
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.72, heightMetres: 1.35 });
|
|
21564
21637
|
kit.yoke(c, 4.05, 1.55, z);
|
|
21565
21638
|
});
|
|
21566
21639
|
EA.instPanel(c, 4.3, 1.68, 1.35, {
|
|
@@ -21928,11 +22001,12 @@ function installPlanesExtra(fx) {
|
|
|
21928
22001
|
[1.55, 1.24],
|
|
21929
22002
|
[0.2, 1.46]
|
|
21930
22003
|
].forEach(function(q, i) {
|
|
21931
|
-
kit.seat(c, q[0], q[1], 0, { w: 0.5, h: 0.32, back: 0.85, lean: 0.24, mat: fab, headrest: false });
|
|
22004
|
+
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" });
|
|
21932
22005
|
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] });
|
|
21933
22006
|
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);
|
|
21934
|
-
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);
|
|
21935
|
-
c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1);
|
|
22007
|
+
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;
|
|
22008
|
+
c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1).userData.noCabinRay = true;
|
|
22009
|
+
if (i === 0) c.addDoor({ id: "canopy_door", widthMetres: 0.68, heightMetres: 0.85 });
|
|
21936
22010
|
const px = q[0] + 0.75;
|
|
21937
22011
|
c.roundBox(0.16, 0.3, 0.6, 0.04, CM("#232427"), px, q[1] + 0.65, 0, { rot: [0, 0, 0.2] });
|
|
21938
22012
|
[-0.15, 0.15].forEach(function(z) {
|
|
@@ -22768,10 +22842,26 @@ function installSuvPickupVan(fx) {
|
|
|
22768
22842
|
roofLining(c, extra);
|
|
22769
22843
|
if (!c.meta.damage) c.meta.damage = crashDamage;
|
|
22770
22844
|
}
|
|
22845
|
+
function withCabinPackaging(s) {
|
|
22846
|
+
if (s.interior === false) return s;
|
|
22847
|
+
return Object.assign({}, s, {
|
|
22848
|
+
interior: Object.assign(
|
|
22849
|
+
{
|
|
22850
|
+
floor: s.bottomY + 0.02,
|
|
22851
|
+
roof: s.gh.roof + 0.02,
|
|
22852
|
+
seatH: 0.12,
|
|
22853
|
+
dashD: 0.32,
|
|
22854
|
+
dashH: 0.24,
|
|
22855
|
+
visorUp: true
|
|
22856
|
+
},
|
|
22857
|
+
s.interior || {}
|
|
22858
|
+
)
|
|
22859
|
+
});
|
|
22860
|
+
}
|
|
22771
22861
|
function suvBuild(c, s, o) {
|
|
22772
22862
|
o = o || {};
|
|
22773
22863
|
const n0 = c.deform.length;
|
|
22774
|
-
kit.car(c, s);
|
|
22864
|
+
kit.car(c, withCabinPackaging(s));
|
|
22775
22865
|
const low = c.deform[n0], m = c.meta;
|
|
22776
22866
|
let extra = [];
|
|
22777
22867
|
if (o.flares !== false) extra = extra.concat(fenderFlares(c, s.arches, s.W, s.bottomY, o.flare));
|
|
@@ -23258,7 +23348,7 @@ function installSuvPickupVan(fx) {
|
|
|
23258
23348
|
);
|
|
23259
23349
|
function pickupBuild(c, s, o) {
|
|
23260
23350
|
const n0 = c.deform.length;
|
|
23261
|
-
kit.car(c, s);
|
|
23351
|
+
kit.car(c, withCabinPackaging(s));
|
|
23262
23352
|
const low = c.deform[n0], m = c.meta;
|
|
23263
23353
|
let extra = [];
|
|
23264
23354
|
cargoBed(c, { low, x0: m.rear + 0.06, x1: o.bedFront, floor: o.floor, top: s.gh.belt, W: s.W, arches: s.arches });
|
|
@@ -23654,7 +23744,7 @@ function installSuvPickupVan(fx) {
|
|
|
23654
23744
|
wheels: []
|
|
23655
23745
|
};
|
|
23656
23746
|
const n0 = c.deform.length;
|
|
23657
|
-
kit.car(c, s);
|
|
23747
|
+
kit.car(c, withCabinPackaging(s));
|
|
23658
23748
|
const low = c.deform[n0], m = c.meta;
|
|
23659
23749
|
cargoBed(c, { low, x0: m.rear + 0.06, x1: -0.42, floor: 1.78, top: 2.25, W, arches: [] });
|
|
23660
23750
|
c.roundBox(0.08, 0.08, W + 0.1, 0.03, MT.chrome, m.front + 0.06, 1.72, 0);
|
|
@@ -23974,7 +24064,10 @@ function installSuvPickupVan(fx) {
|
|
|
23974
24064
|
xRear: P.cabBack - 0.12,
|
|
23975
24065
|
xFront: P.cabBack + 0.42,
|
|
23976
24066
|
seatH: 0.42,
|
|
23977
|
-
front: "bench"
|
|
24067
|
+
front: "bench",
|
|
24068
|
+
dashD: 0.32,
|
|
24069
|
+
dashH: 0.24,
|
|
24070
|
+
visorUp: true
|
|
23978
24071
|
});
|
|
23979
24072
|
c.roundBox(
|
|
23980
24073
|
0.04,
|
|
@@ -25012,8 +25105,8 @@ function createWaterAirKit(kit) {
|
|
|
25012
25105
|
});
|
|
25013
25106
|
}
|
|
25014
25107
|
function cyclic(c, x, fl, z) {
|
|
25015
|
-
c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic);
|
|
25016
|
-
c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z);
|
|
25108
|
+
c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic).userData.noCabinRay = true;
|
|
25109
|
+
c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z).userData.noCabinRay = true;
|
|
25017
25110
|
}
|
|
25018
25111
|
function collective(c, x, fl, z) {
|
|
25019
25112
|
c.rod(new V3(x - 0.35, fl + 0.18, z), new V3(x + 0.05, fl + 0.32, z), 0.016, MT.plastic);
|
|
@@ -25544,8 +25637,8 @@ function installWaterAir(fx) {
|
|
|
25544
25637
|
c.rod(new V3(0.62, cy + 0.72, 0.62), new V3(0.55, cy + 0.82, 0.62), 0.02, MT.chrome);
|
|
25545
25638
|
c.rod(new V3(0.55, cy + 0.7, 0.98), new V3(0.42, cy + 0.88, 1), 0.015, MT.chrome);
|
|
25546
25639
|
c.sphere(0.035, MT.plastic, 0.42, cy + 0.9, 1);
|
|
25547
|
-
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 });
|
|
25548
|
-
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 });
|
|
25640
|
+
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" });
|
|
25641
|
+
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" });
|
|
25549
25642
|
[1, -1].forEach(function(s) {
|
|
25550
25643
|
const pts = [];
|
|
25551
25644
|
for (let i = 0; i <= 8; i++) {
|
|
@@ -25856,7 +25949,8 @@ function installWaterAir(fx) {
|
|
|
25856
25949
|
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 });
|
|
25857
25950
|
}
|
|
25858
25951
|
c.cylinder(0.05, 0.05, 0.14, MT.wood, 0.06, 0, 0, "x", { parent: whl });
|
|
25859
|
-
kit.seat(c, hx - 0.
|
|
25952
|
+
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" });
|
|
25953
|
+
c.addDoor({ id: "cabin_door", widthMetres: 0.68, heightMetres: 1.55 });
|
|
25860
25954
|
c.roundBox(1.8, 0.12, 0.65, 0.04, CM("#7c5a3b"), hx - 0.2, hy0 + 0.5, -0.72);
|
|
25861
25955
|
c.roundBox(1.7, 0.08, 0.55, 0.04, CM("#6b7c8f", { roughness: 1 }), hx - 0.2, hy0 + 0.6, -0.72);
|
|
25862
25956
|
c.roundBox(1.9, 0.02, 2.1, 0.01, inner, hx, hy0 + hh - 0.06, 0).castShadow = false;
|
|
@@ -26072,11 +26166,13 @@ function installWaterAir(fx) {
|
|
|
26072
26166
|
const fl = 0.74, fab = CM("#4a463f", { roughness: 0.9 });
|
|
26073
26167
|
c.roundBox(2.2, 0.03, 0.98, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
|
|
26074
26168
|
[0.26, -0.26].forEach(function(z) {
|
|
26075
|
-
kit.seat(c, 0.38, fl, z, { w: 0.
|
|
26169
|
+
kit.seat(c, 0.38, fl, z, { w: 0.48, h: 0.24, back: 0.62, lean: 0.18, mat: fab, role: "pilot" });
|
|
26076
26170
|
EA.pedals(c, 1.18, fl, z);
|
|
26077
26171
|
kit.yoke(c, 0.98, 1.47, z);
|
|
26078
26172
|
});
|
|
26079
|
-
kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.
|
|
26173
|
+
kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.24, back: 0.58, lean: 0.2, mat: fab });
|
|
26174
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 0.95 });
|
|
26175
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 0.95 });
|
|
26080
26176
|
EA.instPanel(c, 1.1, 1.52, 1, { gauges: 6, z0: -0.38, screens: [[0, 0.12, 0.14, 0.22]] });
|
|
26081
26177
|
c.roundBox(0.1, 0.1, 0.1, 0.02, MT.plastic, 1, 1.32, 0);
|
|
26082
26178
|
c.cylinder(0.018, 0.018, 0.1, MT.chrome, 0.93, 1.34, 0.02, "x");
|
|
@@ -26351,9 +26447,10 @@ function installWaterAir(fx) {
|
|
|
26351
26447
|
);
|
|
26352
26448
|
const fl = -0.36;
|
|
26353
26449
|
c.roundBox(1.3, 0.03, 0.8, 0.01, MT.carpet, -0.4, fl, 0, { parent: grp }).castShadow = false;
|
|
26354
|
-
kit.seat(c, -0.55, fl, 0, { w: 0.5, h: 0.
|
|
26355
|
-
c.
|
|
26356
|
-
c.
|
|
26450
|
+
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" });
|
|
26451
|
+
c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
|
|
26452
|
+
c.rod(new V3(0, fl, 0), new V3(-0.06, fl + 0.55, 0), 0.016, MT.plastic, { parent: grp }).userData.noCabinRay = true;
|
|
26453
|
+
c.roundBox(0.04, 0.13, 0.05, 0.015, MT.plastic, -0.07, fl + 0.6, 0, { parent: grp }).userData.noCabinRay = true;
|
|
26357
26454
|
c.roundBox(0.16, 0.3, 0.8, 0.04, CM("#232427"), 0.36, 0.5, 0, { parent: grp, rot: [0, 0, 0.2] });
|
|
26358
26455
|
[-0.24, -0.12, 0, 0.12, 0.24].forEach(function(z, i) {
|
|
26359
26456
|
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;
|
|
@@ -26763,10 +26860,12 @@ function installWaterAir(fx) {
|
|
|
26763
26860
|
const fl = 0.72, fab = CM("#3b3a38", { roughness: 0.9 });
|
|
26764
26861
|
c.roundBox(1.9, 0.03, 1.16, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
|
|
26765
26862
|
[0.3, -0.3].forEach(function(z) {
|
|
26766
|
-
kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.
|
|
26863
|
+
kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.2, back: 0.62, lean: 0.14, mat: fab, role: "pilot" });
|
|
26767
26864
|
EA.pedals(c, 1.35, fl, z);
|
|
26768
26865
|
});
|
|
26769
|
-
kit.seat(c, -0.55, fl + 0.06, 0, { w: 1.06, n: 2, h: 0.
|
|
26866
|
+
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 });
|
|
26867
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.72, heightMetres: 1.05 });
|
|
26868
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.72, heightMetres: 1.05 });
|
|
26770
26869
|
c.roundBox(0.42, 0.62, 0.3, 0.06, CM("#232427"), 1.15, fl + 0.32, 0, { rot: [0, 0, 0.35] });
|
|
26771
26870
|
c.roundBox(0.06, 0.3, 0.3, 0.02, CM("#1a1b1d"), 1.25, fl + 0.65, 0, { rot: [0, 0, 0.6] });
|
|
26772
26871
|
[-0.07, 0.07].forEach(function(z) {
|
|
@@ -27097,6 +27196,8 @@ function installWaterAir(fx) {
|
|
|
27097
27196
|
EA.collective(c, 1.3, fl, -0.72);
|
|
27098
27197
|
EA.collective(c, 1.3, fl, 0.12);
|
|
27099
27198
|
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 });
|
|
27199
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
|
|
27200
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
|
|
27100
27201
|
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]] });
|
|
27101
27202
|
c.roundBox(0.5, 0.45, 0.32, 0.06, CM("#232427"), 2.05, fl + 0.24, 0);
|
|
27102
27203
|
c.roundBox(2.3, 0.02, 1.4, 0.01, MT.headliner, 0.45, 2.24, 0).castShadow = false;
|
|
@@ -29625,6 +29726,49 @@ function fleetProvingSubject(id, options = {}) {
|
|
|
29625
29726
|
}
|
|
29626
29727
|
};
|
|
29627
29728
|
}
|
|
29729
|
+
|
|
29730
|
+
// src/cabin-categories.ts
|
|
29731
|
+
var CABIN_OVERRIDES = {
|
|
29732
|
+
school_bus: "bus",
|
|
29733
|
+
city_bus: "bus",
|
|
29734
|
+
light_4x4: "military_light",
|
|
29735
|
+
troop_truck: "truck",
|
|
29736
|
+
apc_6x6: "military_armored",
|
|
29737
|
+
armored_car_6x6: "military_armored",
|
|
29738
|
+
battle_tank: "military_armored",
|
|
29739
|
+
transport_helicopter: "aircraft_enclosed",
|
|
29740
|
+
light_attack_turboprop: "aircraft_enclosed",
|
|
29741
|
+
attack_helicopter: "aircraft_enclosed",
|
|
29742
|
+
fishing_boat: "boat_cabin",
|
|
29743
|
+
patrol_boat: "boat_cabin"
|
|
29744
|
+
};
|
|
29745
|
+
function fleetCabinCategoryOf(id) {
|
|
29746
|
+
const override = CABIN_OVERRIDES[id];
|
|
29747
|
+
if (override !== void 0) return override;
|
|
29748
|
+
const group = fleetGroupOf(id);
|
|
29749
|
+
switch (group) {
|
|
29750
|
+
case "cars":
|
|
29751
|
+
return "passenger_car";
|
|
29752
|
+
case "suvs":
|
|
29753
|
+
case "pickups":
|
|
29754
|
+
return "suv_pickup";
|
|
29755
|
+
case "vans":
|
|
29756
|
+
return "van";
|
|
29757
|
+
case "heavy":
|
|
29758
|
+
return "truck";
|
|
29759
|
+
case "agricultural":
|
|
29760
|
+
return "agricultural";
|
|
29761
|
+
case "air":
|
|
29762
|
+
return "aircraft_enclosed";
|
|
29763
|
+
case "motorcycles":
|
|
29764
|
+
case "water":
|
|
29765
|
+
return "open_vehicle";
|
|
29766
|
+
case "military":
|
|
29767
|
+
return "military_armored";
|
|
29768
|
+
default:
|
|
29769
|
+
return "passenger_car";
|
|
29770
|
+
}
|
|
29771
|
+
}
|
|
29628
29772
|
export {
|
|
29629
29773
|
FLEET_FOUR_WHEEL_DRIVE,
|
|
29630
29774
|
agricultural,
|
|
@@ -29635,6 +29779,7 @@ export {
|
|
|
29635
29779
|
createFleetPack,
|
|
29636
29780
|
createScenarios,
|
|
29637
29781
|
en_default as enLocale,
|
|
29782
|
+
fleetCabinCategoryOf,
|
|
29638
29783
|
fleetCard,
|
|
29639
29784
|
fleetDims,
|
|
29640
29785
|
fleetGroupIds,
|