This commit is contained in:
2023-05-22 22:35:45 +03:00
parent 97403a249a
commit d1c446b598
2 changed files with 18 additions and 10 deletions

View File

@@ -9,10 +9,10 @@ local Vehicle, POWERTRAIN_COMPONENT = unpack(require('/koptilnya/engine_remaster
local WheelConfig = {
BrakePower = 800,
CustomWheel = {},
Offset = 180,
Model = 'models/sprops/trans/wheel_d/t_wheel25.mdl'
Model = 'models/sprops/trans/wheel_d/t_wheel25.mdl',
RotationAxle = Angle(1, 0, 0)
}
local FrontWheelsConfig = table.merge(table.copy(WheelConfig), { SteerLock = 10 })
local FrontWheelsConfig = table.merge(table.copy(WheelConfig), { SteerLock = 35 })
local RearWheelsConfig = table.merge(table.copy(WheelConfig), { HandbrakePower = 2000 })
Vehicle:new({
@@ -75,22 +75,22 @@ Vehicle:new({
Name = 'WheelFL',
Input = 'Axle1',
Type = POWERTRAIN_COMPONENT.Wheel,
Config = FrontWheelsConfig
Config = table.merge(table.copy(FrontWheelsConfig), { Offset = 0 })
},
{
Name = 'WheelFR',
Input = 'Axle1',
Type = POWERTRAIN_COMPONENT.Wheel,
Config = FrontWheelsConfig
Config = table.merge(table.copy(FrontWheelsConfig), { Offset = 180 })
},
{
Name = 'WheelRL',
Type = POWERTRAIN_COMPONENT.Wheel,
Config = RearWheelsConfig
Config = table.merge(table.copy(RearWheelsConfig), { Offset = 0 })
},
{
Name = 'WheelRR',
Type = POWERTRAIN_COMPONENT.Wheel,
Config = RearWheelsConfig
Config = table.merge(table.copy(RearWheelsConfig), { Offset = 180 })
}
})