-
Notifications
You must be signed in to change notification settings - Fork 0
/
CarSettings_DC.luab
125 lines (108 loc) · 2.65 KB
/
CarSettings_DC.luab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
function CarSettings(name, accelerationSpeed, maxSpeed, jointsoftness, mass, steerSpeed, maxSteer, wheelOff, wheelMaxOff, wheelMass, friction, wheelshift, engineSnd)
local addoff=0;
wheelshift=20;
if (name=="models\\concept3") then
jointsoftness=0.9;
mass=5;
wheelOff=15;
wheelMaxOff=25;
end
if (name=="models\\bus") then
jointsoftness=3;
mass=30;
end
if (name=="models\\taxi") then
jointsoftness=1.2;
mass=5;
accelerationSpeed=30;
maxSpeed=30;
wheelshift=40;
end
if (name=="models\\tcar3") then
jointsoftness=1.2;
mass=5;
accelerationSpeed=30;
maxSpeed=35;
engineSnd="Sounds\\car\\low.wav";
end
if (name=="models\\pikap2") then
wheelshift=40;
jointsoftness=1.2;
mass=5;
accelerationSpeed=30;
maxSpeed=40;
engineSnd="Sounds\\car\\low.wav";
end
if (name=="models\\furgon") then
accelerationSpeed=15;
mass=4;
engineSnd="Sounds\\car\\diesel.wav";
maxSpeed=30;
end
if (name=="models\\furgon1") then
accelerationSpeed=15;
mass=4;
engineSnd="Sounds\\car\\diesel.wav";
maxSpeed=30;
end
if (name=="models\\pikap") then
mass=4;
maxSpeed=30;
wheelshift=30;
engineSnd="Sounds\\car\\diesel.wav";
end
if (name=="models\\van1") then
mass=5;
wheelOff=20;
wheelMaxOff=30;
engineSnd="Sounds\\car\\low.wav";
maxSpeed=30;
end
if (name=="models\\police") then
jointsoftness=1.2;
mass=5;
addoff=-10;
wheelOff=20;
wheelMaxOff=30;
accelerationSpeed=20;
maxSpeed=30;
wheelshift=30;
end
if (name=="models\\tcar1") then
jointsoftness=1;
addoff=-10;
mass=10;
wheelOff=20;
wheelMaxOff=30;
wheelshift=30;
maxSpeed=30;
end
if (name~="models\\concept6") then
if (name~="models\\concept8") then
if (name~="models\\concept7") then
if (name~="models\\concept5") then
if (name~="models\\concept4") then
if (name=="models\\concept3") then
jointsoftness=0.8;
mass=7;
wheelOff=15;
wheelMaxOff=30;
accelerationSpeed=15;
maxSpeed=45;
friction=3000;
addoff=-7;
if (name=="models\\concept5") then
jointsoftness=1;
accelerationSpeed=10;
engineSnd="Sounds\\car\\diesel.wav";
maxSpeed=40;
end
end
maxSpeed=(maxSpeed * 1.2);
wheelOff=((30 - (maxSpeed / 10)) + addoff);
wheelMaxOff=40;
jointsoftness=(maxSpeed / 80);
wheelshift=10;
mass=5;
return accelerationSpeed, maxSpeed, jointsoftness, mass, steerSpeed, maxSteer, wheelOff, wheelMaxOff, wheelMass, friction, wheelshift, engineSnd;
end