Compare commits

...

4 Commits

Author SHA1 Message Date
Fierelier e8672b2762 Update nfsms 2022-10-27 19:19:57 +02:00
Fierelier 33c69823cd Less good vanilla murci 2022-10-27 19:19:50 +02:00
Fierelier 8bdc73741d Fix Elise 2022-10-27 19:18:30 +02:00
Fierelier 636fcf350f Suspension height fixes 2022-10-27 19:17:54 +02:00
2 changed files with 2133 additions and 2118 deletions

File diff suppressed because it is too large Load Diff

View File

@ -513,7 +513,7 @@ correctedRideHeight = {
"db9": 0.9,
"eclipsegt": 1.3,
"elise": 0.9,
"fordgt": 0.9,
"fordgt": 0.8,
"gallardo": 1.1,
"gti": 1.3,
"gto": 1.3,
@ -532,7 +532,7 @@ correctedRideHeight = {
"slr": 1.1,
"supra": 1.0,
"tt": 1.3,
"viper": 1.0
"viper": 0.85
}
rideHeightMultTop = 0.8
@ -555,7 +555,7 @@ topBias = {
"cts": 0.1,
"db9": 0.7,
"eclipsegt": 0.4,
"elise": 0.0,
"elise": 0.6,
"fordgt": 0.6,
"gallardo": 0.6,
"gti": 0.2,
@ -564,7 +564,7 @@ topBias = {
"is300": 0.0,
"lancerevo8": 0.5,
"monaro": 0.1,
"murcielago": 0.6,
"murcielago": 0.3,
"mustanggt": 0.1,
"punto": 0.2,
"rx7": 0.5,
@ -578,6 +578,10 @@ topBias = {
"viper": 0.4
}
gripScale = {
"elise": 0.7
}
parsedVlt = []
for line in properties.split("\n"):
line = line.strip(" \t\r")
@ -669,13 +673,24 @@ for car in carlist:
continue
if line[0] == "update_field":
if not (line[1] in ["ecar","pvehicle"]) and isCarLine and not isTopLine:
tline = findTopLine(parsedVlt,line)
if tline == None:
print(" ".join(line))
if not (line[1] in ["ecar","pvehicle"]) and isCarLine:
val = float(line[-1])
tval = float(tline[-1])
line[-1] = str(val + ((tval - val) * topBias[car]))
tval = val
if not isTopLine:
tline = findTopLine(parsedVlt,line)
if tline == None:
print(" ".join(line))
tval = float(tline[-1])
val = val + ((tval - val) * topBias[car])
if car in gripScale:
if line[3] == "GRIP_SCALE":
val = val * gripScale[car]
tval = tval * gripScale[car]
line[-1] = str(val)
index = 0
while index < length: