@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.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Plugin, VehicleKit, ScenarioDefinition, VehicleContext, CutTest, LabelArgument, VehicleLamp, VehicleSpec } from '@adatechnology/game-vehicles';
|
|
1
|
+
import { Plugin, VehicleKit, ScenarioDefinition, VehicleContext, CutTest, LabelArgument, VehicleLamp, VehicleSpec, CabinCategory } from '@adatechnology/game-vehicles';
|
|
2
2
|
import * as three from 'three';
|
|
3
3
|
import { BufferGeometry, Color, Material, Matrix4, Vector3, Object3D, Mesh, ColorRepresentation } from 'three';
|
|
4
4
|
import { VehicleCardData, ProvingSubject } from '@adatechnology/game-vehicles-proving';
|
|
@@ -3741,4 +3741,7 @@ declare const fleetGroupOf: (id: string) => string | undefined;
|
|
|
3741
3741
|
*/
|
|
3742
3742
|
declare function fleetProvingSubject(id: string, options?: Partial<Pick<VehicleCardData, 'mass' | 'wheelbase' | 'track' | 'fourWheelDrive'>>): ProvingSubject | null;
|
|
3743
3743
|
|
|
3744
|
-
|
|
3744
|
+
/** Returns the R6 cabin clearance category for a fleet vehicle id (Spec 012 R6). */
|
|
3745
|
+
declare function fleetCabinCategoryOf(id: FleetVehicleId): CabinCategory;
|
|
3746
|
+
|
|
3747
|
+
export { FLEET_FOUR_WHEEL_DRIVE, type FleetCard, type FleetContext, type FleetDims, type FleetFuel, type FleetGroupId, type FleetLabel, type FleetOptions, type FleetScenarioId, type FleetShared, type FleetStats, type FleetVehicleId, type PaintPalette, agricultural, air, allFleetDims, cars, colorFromSeed, createFleetPack, createScenarios, en as enLocale, fleetCabinCategoryOf, fleetCard, fleetDims, fleetGroupIds, fleetGroupOf, fleetGroups, fleetPack, fleetProvingSubject, fleetStats, fleetVehicleIds, heavy, installFleet, legacyGlassLabels, legacyScenarioSeeds, legacyVehicleSeeds, legacyZoneIds, military, motorcycles, paintPalettes, paletteOf, pickups, ptBR as ptBrLocale, scenarioIds, suvs, vans, version, water };
|
package/dist/index.global.js
CHANGED
|
@@ -30,6 +30,7 @@ var GameVehiclesFleet = (() => {
|
|
|
30
30
|
createFleetPack: () => createFleetPack,
|
|
31
31
|
createScenarios: () => createScenarios,
|
|
32
32
|
enLocale: () => en_default,
|
|
33
|
+
fleetCabinCategoryOf: () => fleetCabinCategoryOf,
|
|
33
34
|
fleetCard: () => fleetCard,
|
|
34
35
|
fleetDims: () => fleetDims,
|
|
35
36
|
fleetGroupIds: () => fleetGroupIds,
|
|
@@ -4912,8 +4913,9 @@ var GameVehiclesFleet = (() => {
|
|
|
4912
4913
|
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
4914
|
c.sphere(0.025, MT.plastic, hx + 0.78, ih + 1.12, z - 0.05);
|
|
4914
4915
|
});
|
|
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 }) });
|
|
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 }), role: "front_passenger" });
|
|
4917
|
+
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" });
|
|
4918
|
+
c.addDoor({ id: "cabin_door", widthMetres: 0.72, heightMetres: 1.65 });
|
|
4917
4919
|
c.roundBox(0.45, 0.42, 1.9, 0.04, CM("#25282b", { roughness: 0.8 }), hx - 1.35, ih + 0.21, 0.1);
|
|
4918
4920
|
c.seatTops.push({ x: hx - 1.35, y: ih + 0.44, z: 0.1, w: 1.8, l: 0.4 });
|
|
4919
4921
|
c.roundBox(3, 0.02, 2, 0.01, CM("#3a3f44", { roughness: 0.9 }), hx, hy0 + hh - 0.06, 0).castShadow = false;
|
|
@@ -5858,8 +5860,9 @@ var GameVehiclesFleet = (() => {
|
|
|
5858
5860
|
m.tumble = T;
|
|
5859
5861
|
m.frontQuad = qf;
|
|
5860
5862
|
if (intr && s.shelf) {
|
|
5861
|
-
const sx0 = gh.rb + 0.03, sx1 = gh.rb + s.shelf;
|
|
5862
|
-
|
|
5863
|
+
const sx0 = gh.rb + 0.03, sx1 = Math.min(gh.rb + s.shelf, gh.rb + 0.26);
|
|
5864
|
+
if (sx1 > sx0 + 0.04)
|
|
5865
|
+
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
5866
|
}
|
|
5864
5867
|
if (intr)
|
|
5865
5868
|
kit.interior(
|
|
@@ -5870,11 +5873,17 @@ var GameVehiclesFleet = (() => {
|
|
|
5870
5873
|
ft: gh.ft,
|
|
5871
5874
|
rb: gh.rb,
|
|
5872
5875
|
rt: gh.rt,
|
|
5873
|
-
roof:
|
|
5876
|
+
roof: gh.roof + 0.02,
|
|
5874
5877
|
belt: gh.belt,
|
|
5875
|
-
floor: s.bottomY + 0.
|
|
5878
|
+
floor: s.bottomY + 0.02,
|
|
5879
|
+
seatH: 0.12,
|
|
5880
|
+
dashD: 0.32,
|
|
5881
|
+
dashH: 0.24,
|
|
5882
|
+
visorUp: true,
|
|
5876
5883
|
zIn: gh.Wg / 2 - 0.09,
|
|
5877
5884
|
zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
|
|
5885
|
+
xFront: s.shelf ? gh.fb - 0.86 : void 0,
|
|
5886
|
+
rowPitch: s.shelf ? 0.72 : void 0,
|
|
5878
5887
|
xRear: gh.rb + 0.06
|
|
5879
5888
|
},
|
|
5880
5889
|
intr
|
|
@@ -6422,7 +6431,7 @@ var GameVehiclesFleet = (() => {
|
|
|
6422
6431
|
]);
|
|
6423
6432
|
c2.roundBox(0.03, 0.05, 0.16, 0.012, MT.trim, I.S.endX(-1, 0.84) - 0.01, 0.84, 0);
|
|
6424
6433
|
},
|
|
6425
|
-
interior: { rows: 2, col: "#4a4c52", trim: "#26272a" },
|
|
6434
|
+
interior: { rows: 2, col: "#4a4c52", trim: "#26272a", rowPitch: 0.72 },
|
|
6426
6435
|
hood: { motor: "gasoline" },
|
|
6427
6436
|
wheels: [
|
|
6428
6437
|
[1.17, 0.2875, 0.175, wheelOpts("hubcap")],
|
|
@@ -7922,7 +7931,7 @@ var GameVehiclesFleet = (() => {
|
|
|
7922
7931
|
const lip = K.grid(-1, 0, { z1: 0.7, y0: 0.88, y1: 0.97, du: 0.03, dv: 0.02 });
|
|
7923
7932
|
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
7933
|
},
|
|
7925
|
-
interior: { rows: 2, col: "#1c1d20", trim: "#121316" },
|
|
7934
|
+
interior: { rows: 2, col: "#1c1d20", trim: "#121316", xFront: -0.46, rowPitch: 0.62 },
|
|
7926
7935
|
hood: { motor: "v8_na" },
|
|
7927
7936
|
wheels: [
|
|
7928
7937
|
[1.35, 0.3435, 0.255, { rim: ALLOYD, spokeMat: ALLOY, spokes: 10, rimR: 0.72 }],
|
|
@@ -8185,16 +8194,20 @@ var GameVehiclesFleet = (() => {
|
|
|
8185
8194
|
x: xd - 0.07,
|
|
8186
8195
|
y: belt + 0.02,
|
|
8187
8196
|
w: zi * 2,
|
|
8188
|
-
d: 0.
|
|
8189
|
-
h: Math.min(0.
|
|
8197
|
+
d: 0.34,
|
|
8198
|
+
h: Math.min(0.28, belt - fl - 0.16),
|
|
8190
8199
|
drv: -zi * 0.52,
|
|
8191
8200
|
mat: trim,
|
|
8192
8201
|
top: fab
|
|
8193
8202
|
});
|
|
8194
8203
|
kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.22, tilt: 1.12, col: 0.5, mat: trim });
|
|
8195
8204
|
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.
|
|
8205
|
+
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" });
|
|
8206
|
+
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" });
|
|
8207
|
+
const doorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
|
|
8208
|
+
const doorH = Math.max(1.05, ry - fl - 0.1);
|
|
8209
|
+
c.addDoor({ id: "door_front_left", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
|
|
8210
|
+
c.addDoor({ id: "door_front_right", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
|
|
8198
8211
|
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
8212
|
c.sphere(0.035, MT.plastic, sx + 0.5, fl + 0.5, -0.08);
|
|
8200
8213
|
c.roundBox(0.03, ry - fl - 0.12, zi * 2, 0.01, trim, f - len + 0.07, (ry + fl) / 2, 0);
|
|
@@ -8971,7 +8984,8 @@ var GameVehiclesFleet = (() => {
|
|
|
8971
8984
|
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
8985
|
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
8986
|
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 });
|
|
8987
|
+
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" });
|
|
8988
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.85, heightMetres: 1.95 });
|
|
8975
8989
|
c.roundBox(0.9, 0.38, 0.5, 0.08, CM("#2a2b2d"), f - 0.6, fl + 0.19, -0.05);
|
|
8976
8990
|
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
8991
|
c.roundBox(L - 0.5, 0.02, zi * 2, 0.01, MT.headliner, 0, 2.98, 0).castShadow = false;
|
|
@@ -9305,9 +9319,11 @@ var GameVehiclesFleet = (() => {
|
|
|
9305
9319
|
[1, 1.5, -2.2].forEach(function(x) {
|
|
9306
9320
|
c.rod(new V3(x, fl, 0), new V3(x, 2.95, 0), 0.018, pole);
|
|
9307
9321
|
});
|
|
9308
|
-
kit.dashboard(c, { x: fx2(1.3) - 0.08, y: 1.3, w: 1.2, d: 0.
|
|
9322
|
+
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
9323
|
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 });
|
|
9324
|
+
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" });
|
|
9325
|
+
c.addDoor({ id: "door_front_right", widthMetres: 1, heightMetres: 2.05 });
|
|
9326
|
+
c.addDoor({ id: "door_rear_right", widthMetres: 1, heightMetres: 2.05 });
|
|
9311
9327
|
c.roundBox(0.4, 0.95, 0.32, 0.05, CM("#9aa0a4", { metalness: 0.5 }), 3.95, fl + 0.48, -0.55);
|
|
9312
9328
|
[0, 2.09, 4.19].forEach(function(a) {
|
|
9313
9329
|
c.rod(
|
|
@@ -9645,7 +9661,9 @@ var GameVehiclesFleet = (() => {
|
|
|
9645
9661
|
c.cylinder(0.05, 0.05, 0.012, MT.gauge, -0.165, 1.6, 0.1, "x");
|
|
9646
9662
|
kit.steeringWheel(c, -0.38, 1.66, 0, { r: 0.2, tilt: 1, col: 0.42, mat: MT.trim });
|
|
9647
9663
|
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.
|
|
9664
|
+
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" });
|
|
9665
|
+
c.addDoor({ id: "cab_entry_left", widthMetres: 0.85, heightMetres: 1.15 });
|
|
9666
|
+
c.addDoor({ id: "cab_entry_right", widthMetres: 0.85, heightMetres: 1.15 });
|
|
9649
9667
|
c.roundBox(0.3, 0.2, 0.3, 0.04, dgray, -1, 1.28, 0);
|
|
9650
9668
|
[
|
|
9651
9669
|
[0.25, 1],
|
|
@@ -9997,7 +10015,11 @@ var GameVehiclesFleet = (() => {
|
|
|
9997
10015
|
const fl = 0.6, fab = CM("#2f3136", { roughness: 0.9 });
|
|
9998
10016
|
GH.liner(c, ST, -0.3, 1, fl, MT.carpet, { h: 0.03, maxW: 0.98 });
|
|
9999
10017
|
[0.26, -0.26].forEach(function(z) {
|
|
10000
|
-
kit.seat(c, 0.05, fl, z, { w: 0.
|
|
10018
|
+
kit.seat(c, 0.05, fl, z, { w: 0.48, h: 0.12, back: 0.6, lean: 0.12, mat: fab, role: "pilot" });
|
|
10019
|
+
if (z < 0) {
|
|
10020
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.68, heightMetres: 0.95 });
|
|
10021
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.68, heightMetres: 0.95 });
|
|
10022
|
+
}
|
|
10001
10023
|
EA.pedals(c, 1.15, fl, z);
|
|
10002
10024
|
});
|
|
10003
10025
|
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 +10387,11 @@ var GameVehiclesFleet = (() => {
|
|
|
10365
10387
|
const fl = 0.68, fab = CM("#4b4339", { roughness: 0.9 });
|
|
10366
10388
|
GH.liner(c, ST, -0.6, 1.8, fl, MT.carpet, { h: 0.03, maxW: 1.15 });
|
|
10367
10389
|
[0.3, -0.3].forEach(function(z) {
|
|
10368
|
-
kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.
|
|
10390
|
+
kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.28, back: 0.64, lean: 0.12, mat: fab, role: "pilot" });
|
|
10391
|
+
if (z < 0) {
|
|
10392
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.05 });
|
|
10393
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.05 });
|
|
10394
|
+
}
|
|
10369
10395
|
EA.cyclic(c, 1.4, fl, z);
|
|
10370
10396
|
EA.pedals(c, 2.1, fl, z);
|
|
10371
10397
|
});
|
|
@@ -10769,7 +10795,11 @@ var GameVehiclesFleet = (() => {
|
|
|
10769
10795
|
const fl = 0.7, fab = CM("#2c3540", { roughness: 0.9 });
|
|
10770
10796
|
GH.liner(c, ST, -2.9, 2.5, fl, MT.carpet, { h: 0.03, maxW: 1.5 });
|
|
10771
10797
|
[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 });
|
|
10798
|
+
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab, role: "pilot" });
|
|
10799
|
+
if (z < 0) {
|
|
10800
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
|
|
10801
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
|
|
10802
|
+
}
|
|
10773
10803
|
EA.cyclic(c, 1.95, fl, z);
|
|
10774
10804
|
EA.pedals(c, 2.75, fl, z);
|
|
10775
10805
|
});
|
|
@@ -11202,10 +11232,12 @@ var GameVehiclesFleet = (() => {
|
|
|
11202
11232
|
kit.cutMesh(fus, [EA.sideCutP(tdP, 0.5)], 40, { sub: 0.12 });
|
|
11203
11233
|
EA.colorize(fus.geometry, col);
|
|
11204
11234
|
const fab = CM("#2e3328", { roughness: 0.85 });
|
|
11205
|
-
kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.
|
|
11235
|
+
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
11236
|
c.roundBox(0.2, 0.3, 0.6, 0.04, CM("#232427"), 5.35, 1.98, 0, { rot: [0, 0, 0.3] });
|
|
11207
11237
|
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.
|
|
11238
|
+
kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.1, back: 0.72, lean: 0.15, mat: fab, role: "pilot" });
|
|
11239
|
+
c.addDoor({ id: "canopy_left", widthMetres: 0.72, heightMetres: 0.95 });
|
|
11240
|
+
c.addDoor({ id: "door_cargo_left", widthMetres: 0.9, heightMetres: 1.15 });
|
|
11209
11241
|
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
11242
|
EA.cyclic(c, 3.55, 2.12, 0);
|
|
11211
11243
|
EA.collective(c, 3.3, 2.12, -0.38);
|
|
@@ -12017,6 +12049,10 @@ var GameVehiclesFleet = (() => {
|
|
|
12017
12049
|
mirrorCol: "#22231d",
|
|
12018
12050
|
wheels: []
|
|
12019
12051
|
};
|
|
12052
|
+
s.interior = Object.assign(
|
|
12053
|
+
{ floor: s.bottomY + 0.02, roof: s.gh.roof + 0.02, seatH: 0.14, dashD: 0.32, dashH: 0.24, visorUp: true },
|
|
12054
|
+
s.interior || {}
|
|
12055
|
+
);
|
|
12020
12056
|
kit.car(c, s);
|
|
12021
12057
|
[xf, xr].forEach(function(x) {
|
|
12022
12058
|
;
|
|
@@ -12281,8 +12317,8 @@ var GameVehiclesFleet = (() => {
|
|
|
12281
12317
|
x: xd - 0.07,
|
|
12282
12318
|
y: belt + 0.02,
|
|
12283
12319
|
w: zi * 2,
|
|
12284
|
-
d: 0.
|
|
12285
|
-
h: Math.min(0.
|
|
12320
|
+
d: 0.34,
|
|
12321
|
+
h: Math.min(0.28, belt - fl - 0.16),
|
|
12286
12322
|
drv: -zi * 0.52,
|
|
12287
12323
|
mat: trim,
|
|
12288
12324
|
top: fab,
|
|
@@ -12290,8 +12326,12 @@ var GameVehiclesFleet = (() => {
|
|
|
12290
12326
|
});
|
|
12291
12327
|
kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.23, tilt: 1.12, col: 0.5, mat: trim });
|
|
12292
12328
|
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.
|
|
12329
|
+
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" });
|
|
12330
|
+
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" });
|
|
12331
|
+
const mDoorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
|
|
12332
|
+
const mDoorH = Math.max(1.05, ry - fl - 0.1);
|
|
12333
|
+
c.addDoor({ id: "door_front_left", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
|
|
12334
|
+
c.addDoor({ id: "door_front_right", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
|
|
12295
12335
|
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
12336
|
c.sphere(0.035, BLACK, sx + 0.5, fl + 0.5, -0.08);
|
|
12297
12337
|
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 +12873,9 @@ var GameVehiclesFleet = (() => {
|
|
|
12833
12873
|
[-0.9, -2.2].forEach(function(x) {
|
|
12834
12874
|
c.roundBox(0.3, 0.04, 0.1, 0.02, RED_LIGHT, x, roofY - 0.1, 0).castShadow = false;
|
|
12835
12875
|
});
|
|
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 }) });
|
|
12876
|
+
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" });
|
|
12877
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.58, heightMetres: 0.6 });
|
|
12878
|
+
c.addDoor({ id: "ramp_rear", widthMetres: 1.4, heightMetres: 1.35 });
|
|
12837
12879
|
kit.steeringWheel(c, 1.5, 1.42, -0.62, { r: 0.2, tilt: 0.9, col: 0.35 });
|
|
12838
12880
|
c.roundBox(0.35, 0.3, 0.7, 0.04, CM("#25261f"), 1.85, 1.45, -0.6);
|
|
12839
12881
|
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 +13244,9 @@ var GameVehiclesFleet = (() => {
|
|
|
13202
13244
|
});
|
|
13203
13245
|
const fl = 0.72, fab = CM("#2f3226", { roughness: 0.9 });
|
|
13204
13246
|
c.roundBox(3, 0.04, 1.6, 0.01, MT.carpet, 0.2, fl, 0);
|
|
13205
|
-
kit.seat(c, 1, fl
|
|
13247
|
+
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" });
|
|
13248
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.54, heightMetres: 0.58 });
|
|
13249
|
+
c.addDoor({ id: "hatch_commander", widthMetres: 0.6, heightMetres: 0.6 });
|
|
13206
13250
|
kit.steeringWheel(c, 1.5, 1.38, -0.55, { r: 0.18, tilt: 0.9, col: 0.3 });
|
|
13207
13251
|
c.roundBox(0.3, 0.26, 0.6, 0.04, CM("#25261f"), 1.75, 1.35, -0.5);
|
|
13208
13252
|
const nT = c.vehicle.children.length;
|
|
@@ -13250,8 +13294,8 @@ var GameVehiclesFleet = (() => {
|
|
|
13250
13294
|
for (let k = 0; k < 4; k++)
|
|
13251
13295
|
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
13296
|
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.
|
|
13297
|
+
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" });
|
|
13298
|
+
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
13299
|
c.roundBox(0.8, 0.3, 0.3, 0.05, BARREL, tx + 0.1, ty + 0.1, 0);
|
|
13256
13300
|
c.roundBox(1.6, 0.02, 1.2, 0.01, MT.headliner, tx - 0.2, ty + 0.66, 0).castShadow = false;
|
|
13257
13301
|
rigid(c, c.vehicle.children.slice(nT));
|
|
@@ -13444,7 +13488,18 @@ var GameVehiclesFleet = (() => {
|
|
|
13444
13488
|
{ rot: [0, 0, -0.18] }
|
|
13445
13489
|
);
|
|
13446
13490
|
hatch(c, 2.05, roofY - 0.1, -0.78, 0.28, 0, OLIVE_STEEL, { yaw: 0 });
|
|
13447
|
-
kit.seat(c, 1.
|
|
13491
|
+
kit.seat(c, 1.65, 0.3, -0.76, {
|
|
13492
|
+
w: 0.46,
|
|
13493
|
+
h: 0.14,
|
|
13494
|
+
back: 0.5,
|
|
13495
|
+
lean: 0.5,
|
|
13496
|
+
mat: CM("#2f3226", { roughness: 0.9 }),
|
|
13497
|
+
id: "driver",
|
|
13498
|
+
role: "driver",
|
|
13499
|
+
headroomMetres: 0.9
|
|
13500
|
+
});
|
|
13501
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.56, heightMetres: 0.58 });
|
|
13502
|
+
c.addDoor({ id: "hatch_commander", widthMetres: 0.68, heightMetres: 0.68 });
|
|
13448
13503
|
[-0.95, -0.78, -0.61].forEach(function(z, i) {
|
|
13449
13504
|
periscope(c, 2.3, roofY - 0.08, z, 0.14, i === 1 ? lbl("driver_periscope") : null);
|
|
13450
13505
|
});
|
|
@@ -13521,9 +13576,9 @@ var GameVehiclesFleet = (() => {
|
|
|
13521
13576
|
});
|
|
13522
13577
|
c.roundBox(0.25, 0.3, 1.6, 0.06, CANVAS2, bx + 0.12, ty + 0.4, 0);
|
|
13523
13578
|
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.
|
|
13579
|
+
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" });
|
|
13580
|
+
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" });
|
|
13581
|
+
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
13582
|
c.roundBox(1.1, 0.35, 0.4, 0.05, BARREL, tx + 0.6, ty + 0.35, 0.05);
|
|
13528
13583
|
c.roundBox(2.2, 0.02, 1.6, 0.01, MT.headliner, tx - 0.3, tTop - 0.08, 0).castShadow = false;
|
|
13529
13584
|
c.cylinder(0.05, 0.05, 0.03, RED_LIGHT, tx - 0.4, tTop - 0.1, 0.2);
|
|
@@ -13764,10 +13819,12 @@ var GameVehiclesFleet = (() => {
|
|
|
13764
13819
|
const fl = 0.86, fab = CM("#2f3226", { roughness: 0.9 });
|
|
13765
13820
|
c.roundBox(5.6, 0.04, 2.05, 0.01, MT.carpet, -0.4, fl, 0).castShadow = false;
|
|
13766
13821
|
[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);
|
|
13822
|
+
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab, role: "pilot" });
|
|
13823
|
+
c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK).userData.noCabinRay = true;
|
|
13824
|
+
c.sphere(0.035, BLACK, 1.95, fl + 0.57, z).userData.noCabinRay = true;
|
|
13770
13825
|
});
|
|
13826
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.15 });
|
|
13827
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.15 });
|
|
13771
13828
|
c.roundBox(0.25, 0.45, 1.9, 0.05, CM("#232427"), 2.45, fl + 0.55, 0);
|
|
13772
13829
|
c.roundBox(0.4, 0.05, 1.95, 0.02, CM("#1a1b1d"), 2.4, fl + 0.8, 0, { rot: [0, 0, 0.25] });
|
|
13773
13830
|
[-0.75, -0.45, -0.15, 0.15, 0.45, 0.75].forEach(function(z) {
|
|
@@ -14904,9 +14961,13 @@ var GameVehiclesFleet = (() => {
|
|
|
14904
14961
|
ft: gh.ft,
|
|
14905
14962
|
rb: gh.rb,
|
|
14906
14963
|
rt: gh.rt,
|
|
14907
|
-
roof:
|
|
14964
|
+
roof: gh.roof + 0.02,
|
|
14908
14965
|
belt: gh.belt,
|
|
14909
|
-
floor: s.bottomY + 0.
|
|
14966
|
+
floor: s.bottomY + 0.02,
|
|
14967
|
+
seatH: 0.12,
|
|
14968
|
+
dashD: 0.32,
|
|
14969
|
+
dashH: 0.24,
|
|
14970
|
+
visorUp: true,
|
|
14910
14971
|
zIn: gh.Wg / 2 - 0.09,
|
|
14911
14972
|
zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
|
|
14912
14973
|
xRear: gh.rb + 0.06
|
|
@@ -18379,7 +18440,7 @@ var GameVehiclesFleet = (() => {
|
|
|
18379
18440
|
c.cylinder(0.025, 0.025, 0.2, EXH, -1.98, 0.3, z, "x");
|
|
18380
18441
|
});
|
|
18381
18442
|
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.
|
|
18443
|
+
const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.31;
|
|
18383
18444
|
c.roundBox(1.7, 0.03, 0.62, 0.01, MT.carpet, -0.15, fl, 0).castShadow = false;
|
|
18384
18445
|
c.roundBox(0.2, 0.24, 1.14, 0.04, col, 0.66, 0.92, 0);
|
|
18385
18446
|
c.roundBox(0.16, 0.05, 1.12, 0.02, CM("#1b1c1e"), 0.6, 1.03, 0);
|
|
@@ -18390,9 +18451,18 @@ var GameVehiclesFleet = (() => {
|
|
|
18390
18451
|
c.rod(new V3(0.12, fl, 0), new V3(0.02, fl + 0.42, 0), 0.01, MT.chrome);
|
|
18391
18452
|
c.sphere(0.025, MT.plastic, 0.02, fl + 0.44, 0);
|
|
18392
18453
|
[-1, 1].forEach(function(sd) {
|
|
18393
|
-
kit.seat(c, -0.
|
|
18454
|
+
kit.seat(c, -0.08, fl, sd * 0.27, {
|
|
18455
|
+
w: 0.44,
|
|
18456
|
+
mat: fab,
|
|
18457
|
+
back: 0.58,
|
|
18458
|
+
lean: 0.2,
|
|
18459
|
+
h: 0.14,
|
|
18460
|
+
headrest: false,
|
|
18461
|
+
id: sd < 0 ? "driver" : "front_right",
|
|
18462
|
+
role: sd < 0 ? "driver" : "front_passenger"
|
|
18463
|
+
});
|
|
18394
18464
|
});
|
|
18395
|
-
kit.seat(c, -0.
|
|
18465
|
+
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
18466
|
[1, -1].forEach(function(sd) {
|
|
18397
18467
|
for (let yk = 0.56; yk < 0.95; yk += 0.075) {
|
|
18398
18468
|
const zf = Math.min(loftHalf(stS, -0.3, yk - 0.04), loftHalf(stS, 0.5, yk - 0.04)) - 0.045;
|
|
@@ -20453,11 +20523,12 @@ var GameVehiclesFleet = (() => {
|
|
|
20453
20523
|
c.roundBox(0.012, 0.012, 0.06, 4e-3, MT.steel, 2.06, 0.62, 0, PG);
|
|
20454
20524
|
const fl = -0.4, fab = CM("#3c3a35", { roughness: 0.9 });
|
|
20455
20525
|
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.
|
|
20526
|
+
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" });
|
|
20527
|
+
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" });
|
|
20528
|
+
c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
|
|
20458
20529
|
[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);
|
|
20530
|
+
c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG).userData.noCabinRay = true;
|
|
20531
|
+
c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG).userData.noCabinRay = true;
|
|
20461
20532
|
});
|
|
20462
20533
|
c.roundBox(0.05, 0.22, 0.6, 0.02, CM("#2a2b2d", { roughness: 0.8 }), 1.75, 0.3, 0, PG);
|
|
20463
20534
|
[-0.2, -0.08, 0.04, 0.16, -0.14].forEach(function(z, i) {
|
|
@@ -20811,7 +20882,8 @@ var GameVehiclesFleet = (() => {
|
|
|
20811
20882
|
const fl = 0.98, fab = CM("#3d4552", { roughness: 0.9 });
|
|
20812
20883
|
liner(c, ST, -4.6, 5.9, fl, MT.carpet, { h: 0.03 });
|
|
20813
20884
|
[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 }) });
|
|
20885
|
+
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" });
|
|
20886
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.55 });
|
|
20815
20887
|
kit.yoke(c, 5.5, 1.75, z);
|
|
20816
20888
|
EA.pedals(c, 5.95, fl, z);
|
|
20817
20889
|
});
|
|
@@ -21205,7 +21277,8 @@ var GameVehiclesFleet = (() => {
|
|
|
21205
21277
|
const fl = 2.06, fab = CM("#4a4640", { roughness: 0.9 });
|
|
21206
21278
|
liner(c, ST, -3.2, 2, fl, MT.carpet, { h: 0.03 });
|
|
21207
21279
|
[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 });
|
|
21280
|
+
kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab, role: "pilot" });
|
|
21281
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.4 });
|
|
21209
21282
|
kit.yoke(c, 1.5, 2.85, z);
|
|
21210
21283
|
EA.pedals(c, 1.95, fl, z);
|
|
21211
21284
|
});
|
|
@@ -21620,7 +21693,8 @@ var GameVehiclesFleet = (() => {
|
|
|
21620
21693
|
const fl = 0.8, fab = CM("#c9bda6", { roughness: 0.75 });
|
|
21621
21694
|
liner(c, ST, -2, 4, fl, MT.carpet, { h: 0.03 });
|
|
21622
21695
|
[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") });
|
|
21696
|
+
kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30"), role: "pilot" });
|
|
21697
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.72, heightMetres: 1.35 });
|
|
21624
21698
|
kit.yoke(c, 4.05, 1.55, z);
|
|
21625
21699
|
});
|
|
21626
21700
|
EA.instPanel(c, 4.3, 1.68, 1.35, {
|
|
@@ -21988,11 +22062,12 @@ var GameVehiclesFleet = (() => {
|
|
|
21988
22062
|
[1.55, 1.24],
|
|
21989
22063
|
[0.2, 1.46]
|
|
21990
22064
|
].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 });
|
|
22065
|
+
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
22066
|
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
22067
|
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);
|
|
22068
|
+
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;
|
|
22069
|
+
c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1).userData.noCabinRay = true;
|
|
22070
|
+
if (i === 0) c.addDoor({ id: "canopy_door", widthMetres: 0.68, heightMetres: 0.85 });
|
|
21996
22071
|
const px = q[0] + 0.75;
|
|
21997
22072
|
c.roundBox(0.16, 0.3, 0.6, 0.04, CM("#232427"), px, q[1] + 0.65, 0, { rot: [0, 0, 0.2] });
|
|
21998
22073
|
[-0.15, 0.15].forEach(function(z) {
|
|
@@ -22828,10 +22903,26 @@ var GameVehiclesFleet = (() => {
|
|
|
22828
22903
|
roofLining(c, extra);
|
|
22829
22904
|
if (!c.meta.damage) c.meta.damage = crashDamage;
|
|
22830
22905
|
}
|
|
22906
|
+
function withCabinPackaging(s) {
|
|
22907
|
+
if (s.interior === false) return s;
|
|
22908
|
+
return Object.assign({}, s, {
|
|
22909
|
+
interior: Object.assign(
|
|
22910
|
+
{
|
|
22911
|
+
floor: s.bottomY + 0.02,
|
|
22912
|
+
roof: s.gh.roof + 0.02,
|
|
22913
|
+
seatH: 0.12,
|
|
22914
|
+
dashD: 0.32,
|
|
22915
|
+
dashH: 0.24,
|
|
22916
|
+
visorUp: true
|
|
22917
|
+
},
|
|
22918
|
+
s.interior || {}
|
|
22919
|
+
)
|
|
22920
|
+
});
|
|
22921
|
+
}
|
|
22831
22922
|
function suvBuild(c, s, o) {
|
|
22832
22923
|
o = o || {};
|
|
22833
22924
|
const n0 = c.deform.length;
|
|
22834
|
-
kit.car(c, s);
|
|
22925
|
+
kit.car(c, withCabinPackaging(s));
|
|
22835
22926
|
const low = c.deform[n0], m = c.meta;
|
|
22836
22927
|
let extra = [];
|
|
22837
22928
|
if (o.flares !== false) extra = extra.concat(fenderFlares(c, s.arches, s.W, s.bottomY, o.flare));
|
|
@@ -23318,7 +23409,7 @@ var GameVehiclesFleet = (() => {
|
|
|
23318
23409
|
);
|
|
23319
23410
|
function pickupBuild(c, s, o) {
|
|
23320
23411
|
const n0 = c.deform.length;
|
|
23321
|
-
kit.car(c, s);
|
|
23412
|
+
kit.car(c, withCabinPackaging(s));
|
|
23322
23413
|
const low = c.deform[n0], m = c.meta;
|
|
23323
23414
|
let extra = [];
|
|
23324
23415
|
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 +23805,7 @@ var GameVehiclesFleet = (() => {
|
|
|
23714
23805
|
wheels: []
|
|
23715
23806
|
};
|
|
23716
23807
|
const n0 = c.deform.length;
|
|
23717
|
-
kit.car(c, s);
|
|
23808
|
+
kit.car(c, withCabinPackaging(s));
|
|
23718
23809
|
const low = c.deform[n0], m = c.meta;
|
|
23719
23810
|
cargoBed(c, { low, x0: m.rear + 0.06, x1: -0.42, floor: 1.78, top: 2.25, W, arches: [] });
|
|
23720
23811
|
c.roundBox(0.08, 0.08, W + 0.1, 0.03, MT.chrome, m.front + 0.06, 1.72, 0);
|
|
@@ -24034,7 +24125,10 @@ var GameVehiclesFleet = (() => {
|
|
|
24034
24125
|
xRear: P.cabBack - 0.12,
|
|
24035
24126
|
xFront: P.cabBack + 0.42,
|
|
24036
24127
|
seatH: 0.42,
|
|
24037
|
-
front: "bench"
|
|
24128
|
+
front: "bench",
|
|
24129
|
+
dashD: 0.32,
|
|
24130
|
+
dashH: 0.24,
|
|
24131
|
+
visorUp: true
|
|
24038
24132
|
});
|
|
24039
24133
|
c.roundBox(
|
|
24040
24134
|
0.04,
|
|
@@ -25072,8 +25166,8 @@ var GameVehiclesFleet = (() => {
|
|
|
25072
25166
|
});
|
|
25073
25167
|
}
|
|
25074
25168
|
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);
|
|
25169
|
+
c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic).userData.noCabinRay = true;
|
|
25170
|
+
c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z).userData.noCabinRay = true;
|
|
25077
25171
|
}
|
|
25078
25172
|
function collective(c, x, fl, z) {
|
|
25079
25173
|
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 +25698,8 @@ var GameVehiclesFleet = (() => {
|
|
|
25604
25698
|
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
25699
|
c.rod(new V3(0.55, cy + 0.7, 0.98), new V3(0.42, cy + 0.88, 1), 0.015, MT.chrome);
|
|
25606
25700
|
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 });
|
|
25701
|
+
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" });
|
|
25702
|
+
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
25703
|
[1, -1].forEach(function(s) {
|
|
25610
25704
|
const pts = [];
|
|
25611
25705
|
for (let i = 0; i <= 8; i++) {
|
|
@@ -25916,7 +26010,8 @@ var GameVehiclesFleet = (() => {
|
|
|
25916
26010
|
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
26011
|
}
|
|
25918
26012
|
c.cylinder(0.05, 0.05, 0.14, MT.wood, 0.06, 0, 0, "x", { parent: whl });
|
|
25919
|
-
kit.seat(c, hx - 0.
|
|
26013
|
+
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" });
|
|
26014
|
+
c.addDoor({ id: "cabin_door", widthMetres: 0.68, heightMetres: 1.55 });
|
|
25920
26015
|
c.roundBox(1.8, 0.12, 0.65, 0.04, CM("#7c5a3b"), hx - 0.2, hy0 + 0.5, -0.72);
|
|
25921
26016
|
c.roundBox(1.7, 0.08, 0.55, 0.04, CM("#6b7c8f", { roughness: 1 }), hx - 0.2, hy0 + 0.6, -0.72);
|
|
25922
26017
|
c.roundBox(1.9, 0.02, 2.1, 0.01, inner, hx, hy0 + hh - 0.06, 0).castShadow = false;
|
|
@@ -26132,11 +26227,13 @@ var GameVehiclesFleet = (() => {
|
|
|
26132
26227
|
const fl = 0.74, fab = CM("#4a463f", { roughness: 0.9 });
|
|
26133
26228
|
c.roundBox(2.2, 0.03, 0.98, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
|
|
26134
26229
|
[0.26, -0.26].forEach(function(z) {
|
|
26135
|
-
kit.seat(c, 0.38, fl, z, { w: 0.
|
|
26230
|
+
kit.seat(c, 0.38, fl, z, { w: 0.48, h: 0.24, back: 0.62, lean: 0.18, mat: fab, role: "pilot" });
|
|
26136
26231
|
EA.pedals(c, 1.18, fl, z);
|
|
26137
26232
|
kit.yoke(c, 0.98, 1.47, z);
|
|
26138
26233
|
});
|
|
26139
|
-
kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.
|
|
26234
|
+
kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.24, back: 0.58, lean: 0.2, mat: fab });
|
|
26235
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 0.95 });
|
|
26236
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 0.95 });
|
|
26140
26237
|
EA.instPanel(c, 1.1, 1.52, 1, { gauges: 6, z0: -0.38, screens: [[0, 0.12, 0.14, 0.22]] });
|
|
26141
26238
|
c.roundBox(0.1, 0.1, 0.1, 0.02, MT.plastic, 1, 1.32, 0);
|
|
26142
26239
|
c.cylinder(0.018, 0.018, 0.1, MT.chrome, 0.93, 1.34, 0.02, "x");
|
|
@@ -26411,9 +26508,10 @@ var GameVehiclesFleet = (() => {
|
|
|
26411
26508
|
);
|
|
26412
26509
|
const fl = -0.36;
|
|
26413
26510
|
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.
|
|
26511
|
+
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" });
|
|
26512
|
+
c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
|
|
26513
|
+
c.rod(new V3(0, fl, 0), new V3(-0.06, fl + 0.55, 0), 0.016, MT.plastic, { parent: grp }).userData.noCabinRay = true;
|
|
26514
|
+
c.roundBox(0.04, 0.13, 0.05, 0.015, MT.plastic, -0.07, fl + 0.6, 0, { parent: grp }).userData.noCabinRay = true;
|
|
26417
26515
|
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
26516
|
[-0.24, -0.12, 0, 0.12, 0.24].forEach(function(z, i) {
|
|
26419
26517
|
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 +26921,12 @@ var GameVehiclesFleet = (() => {
|
|
|
26823
26921
|
const fl = 0.72, fab = CM("#3b3a38", { roughness: 0.9 });
|
|
26824
26922
|
c.roundBox(1.9, 0.03, 1.16, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
|
|
26825
26923
|
[0.3, -0.3].forEach(function(z) {
|
|
26826
|
-
kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.
|
|
26924
|
+
kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.2, back: 0.62, lean: 0.14, mat: fab, role: "pilot" });
|
|
26827
26925
|
EA.pedals(c, 1.35, fl, z);
|
|
26828
26926
|
});
|
|
26829
|
-
kit.seat(c, -0.55, fl + 0.06, 0, { w: 1.06, n: 2, h: 0.
|
|
26927
|
+
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 });
|
|
26928
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.72, heightMetres: 1.05 });
|
|
26929
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.72, heightMetres: 1.05 });
|
|
26830
26930
|
c.roundBox(0.42, 0.62, 0.3, 0.06, CM("#232427"), 1.15, fl + 0.32, 0, { rot: [0, 0, 0.35] });
|
|
26831
26931
|
c.roundBox(0.06, 0.3, 0.3, 0.02, CM("#1a1b1d"), 1.25, fl + 0.65, 0, { rot: [0, 0, 0.6] });
|
|
26832
26932
|
[-0.07, 0.07].forEach(function(z) {
|
|
@@ -27157,6 +27257,8 @@ var GameVehiclesFleet = (() => {
|
|
|
27157
27257
|
EA.collective(c, 1.3, fl, -0.72);
|
|
27158
27258
|
EA.collective(c, 1.3, fl, 0.12);
|
|
27159
27259
|
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 });
|
|
27260
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
|
|
27261
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
|
|
27160
27262
|
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
27263
|
c.roundBox(0.5, 0.45, 0.32, 0.06, CM("#232427"), 2.05, fl + 0.24, 0);
|
|
27162
27264
|
c.roundBox(2.3, 0.02, 1.4, 0.01, MT.headliner, 0.45, 2.24, 0).castShadow = false;
|
|
@@ -29685,6 +29787,49 @@ var GameVehiclesFleet = (() => {
|
|
|
29685
29787
|
}
|
|
29686
29788
|
};
|
|
29687
29789
|
}
|
|
29790
|
+
|
|
29791
|
+
// src/cabin-categories.ts
|
|
29792
|
+
var CABIN_OVERRIDES = {
|
|
29793
|
+
school_bus: "bus",
|
|
29794
|
+
city_bus: "bus",
|
|
29795
|
+
light_4x4: "military_light",
|
|
29796
|
+
troop_truck: "truck",
|
|
29797
|
+
apc_6x6: "military_armored",
|
|
29798
|
+
armored_car_6x6: "military_armored",
|
|
29799
|
+
battle_tank: "military_armored",
|
|
29800
|
+
transport_helicopter: "aircraft_enclosed",
|
|
29801
|
+
light_attack_turboprop: "aircraft_enclosed",
|
|
29802
|
+
attack_helicopter: "aircraft_enclosed",
|
|
29803
|
+
fishing_boat: "boat_cabin",
|
|
29804
|
+
patrol_boat: "boat_cabin"
|
|
29805
|
+
};
|
|
29806
|
+
function fleetCabinCategoryOf(id) {
|
|
29807
|
+
const override = CABIN_OVERRIDES[id];
|
|
29808
|
+
if (override !== void 0) return override;
|
|
29809
|
+
const group = fleetGroupOf(id);
|
|
29810
|
+
switch (group) {
|
|
29811
|
+
case "cars":
|
|
29812
|
+
return "passenger_car";
|
|
29813
|
+
case "suvs":
|
|
29814
|
+
case "pickups":
|
|
29815
|
+
return "suv_pickup";
|
|
29816
|
+
case "vans":
|
|
29817
|
+
return "van";
|
|
29818
|
+
case "heavy":
|
|
29819
|
+
return "truck";
|
|
29820
|
+
case "agricultural":
|
|
29821
|
+
return "agricultural";
|
|
29822
|
+
case "air":
|
|
29823
|
+
return "aircraft_enclosed";
|
|
29824
|
+
case "motorcycles":
|
|
29825
|
+
case "water":
|
|
29826
|
+
return "open_vehicle";
|
|
29827
|
+
case "military":
|
|
29828
|
+
return "military_armored";
|
|
29829
|
+
default:
|
|
29830
|
+
return "passenger_car";
|
|
29831
|
+
}
|
|
29832
|
+
}
|
|
29688
29833
|
return __toCommonJS(index_exports);
|
|
29689
29834
|
})();
|
|
29690
29835
|
//# sourceMappingURL=index.global.js.map
|