Skip to content

Instantly share code, notes, and snippets.

@SupinePandora43
Created June 16, 2020 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SupinePandora43/7a2efaf45c999efef442381f1cb65f96 to your computer and use it in GitHub Desktop.
Save SupinePandora43/7a2efaf45c999efef442381f1cb65f96 to your computer and use it in GitHub Desktop.
------------------------------------------------------
---------template by DK / Пример сделан DK------------
------------------------------------------------------
AddCSLuaFile()
local light_table = {
ModernLights = false, -- грубо говоря, ксенон или старые фары. True - ксенон, false - старые
L_HeadLampPos = Vector(-31.4, 100.4, 37.5), -- рассположение обычных фар (левых - L)
L_HeadLampAng = Angle(180, -90, 0), -- угол поворота фар
R_HeadLampPos = Vector(31.4, 100.4, 37.5), -- рассположение обычных фар (правых - R)
R_HeadLampAng = Angle(180, -90, 0), -- угол поворота фар
L_RearLampPos = Vector(-33.3, -123.8, 33), -- расположение задних фар
L_RearLampAng = Angle(0, -90, 0), -- угол поворота фар
R_RearLampPos = Vector(33.3, -123.8, 33), -- расположение задних фар
R_RearLampAng = Angle(0, -90, 0), -- угол поворота фар
Headlight_sprites = { -- Обычные фары
{pos = Vector(-31.4, 100.4, 37.5), size = 30},
{pos = Vector(31.4, 100.4, 37.5), size = 30}
},
Headlamp_sprites = { -- дальние
{pos = Vector(-37.2, 98, 38.1), size = 65},
{pos = Vector(37.2, 98, 38.1), size = 65}
},
--[[FogLight_sprites = {
{pos = Vector(-108.6,-44.3,-18.5),size = 5},
{pos = Vector(-109.9,42.4,-24.1),size = 5},
},]]
Rearlight_sprites = { -- задние фары
{pos = Vector(-37.1, -123.8, 33), size = 25},
{pos = Vector(-33.3, -123.8, 33), size = 25},
{pos = Vector(-30.2, -123.8, 33), size = 25},
{pos = Vector(37.1, -123.8, 33), size = 25},
{pos = Vector(33.3, -123.8, 33), size = 25},
{pos = Vector(30.2, -123.8, 33), size = 25}
},
Brakelight_sprites = { -- тормозные огни
{pos = Vector(-37.1, -123.8, 33), size = 25},
{pos = Vector(-33.3, -123.8, 33), size = 25},
{pos = Vector(-30.2, -123.8, 33), size = 25},
{pos = Vector(37.1, -123.8, 33), size = 25},
{pos = Vector(33.3, -123.8, 33), size = 25},
{pos = Vector(30.2, -123.8, 33), size = 25}
},
Reverselight_sprites = { -- фары заднего хода
{pos = Vector(-27.3, -123.8, 33), size = 15},
{pos = Vector(27.3, -123.8, 33), size = 15}
},
Turnsignal_sprites = { -- поворотники
Left = { -- левый
{pos = Vector(-42.3, 97.5, 38), size = 25},
{pos = Vector(-40.9, -123.8, 33), size = 25}
},
Right = { -- правый
{pos = Vector(42.3, 97.5, 38), size = 25},
{pos = Vector(40.9, -123.8, 33), size = 25}
}
}
}
list.Set("simfphys_lights", "tdmtruck1", light_table) -- здесь тебе нужно изменить "test" на любое другое название, например "myfirstsimfcar"
local DKCAR = {
Name = "Scania 2009", -- название машины в меню
Model = "models/tdmcars/trucks/scania_4x2_nojiggle.mdl", -- модель машины (в вкладке дополнения и проп авто)
Category = "TDM Trucks", -- категория в которой будет машина
SpawnOffset = Vector(0, 0, 61),
SpawnAngleOffset = 90,
Members = {
Mass = 1500, -- масса авто
OnSpawn = function(ent)
print(ent)
-- ent.ForceTransmission = 2 -- are you gay?
if Trailers then
print("added")
Trailers.Init({
ent=ent,
-- inputPos=Vector(0,0,0),
outputPos=Vector(0,-67.3,38.7)
})
end
-- if ent.GetCenterposition ~= nil then
-- ent:SetCenterposition() -- position of center ballsocket for tow hitch(trailer coupling)
-- ent:SetTrailerCenterposition(Vector(0, 68, 85)) -- position of center ballsocket for trailer hook
-- else
-- print(
-- "This car support trailers BASE, but you don't installed it")
-- end
end,
LightsTable = "tdmtruck1", -- название light_table
SpeedoMax = 149.129,
BulletProofTires = false,
CustomSteerAngle = 35,
AirFriction = -3000,
FrontWheelRadius = 20, -- радиус переднего колеса
RearWheelRadius = 20, -- радиус заднего колеса
CustomMassCenter = Vector(0, 0, 33.5),
SeatOffset = Vector(-7, 0, 0), -- положение водительского сидения
FirstPersonViewPos = Vector(0, -7, 2),
SeatPitch = 0,
SeatYaw = -0,
MaxHealth = 4500,
IsArmored = false,
EnginePos = Vector(0, 68, 12),
PassengerSeats = { -- пассажирские места
{pos = Vector(25, 68, 75), ang = Angle(0, 0, 14)},
{pos = Vector(0, 40, 76), ang = Angle(0, 0, 14)}
},
ExhaustPositions = { -- позиция выхлопа
{pos = Vector(99.4, 21.3, -13.5), ang = Angle(90, 0, 0)}
},
StrengthenSuspension = false, -- жесткая подвеска.
FrontHeight = 9, -- высота передней подвески
FrontWheelMass = 200,
FrontConstant = 25000,
FrontDamping = 3500,
FrontRelativeDamping = 2500,
RearHeight = 9, -- высота задней подвески
RearWheelMass = 200,
RearConstant = 44000,
RearDamping = 3500,
RearRelativeDamping = 2500,
FastSteeringAngle = 10,
SteeringFadeFastSpeed = 535,
TurnSpeed = 4,
MaxGrip = 70,
Efficiency = 0.8,
GripOffset = -3,
BrakePower = 32, -- сила торможения
IdleRPM = 750, -- мин. кол-во оборотов
LimitRPM = 3000, -- макс. кол-во оборотов
Revlimiter = false, -- Если true - Когда стрелка спидометра доходит до красного обозначения, она не проходит дальше, если false - это игнорируется
PeakTorque = 360, -- крутящий момент
PowerbandStart = 750, -- какие обороты на нейтральной передаче
PowerbandEnd = 2800, -- ограничение по оборотам
Turbocharged = false, -- турбо false = нет, true = да
Supercharged = false, -- супер заряд
Backfire = false, -- стреляющий выхлоп
FuelFillPos = Vector(83.4, 34.4, 1.3), -- положение заправки
FuelType = FUELTYPE_PETROL, -- тип топлива
FuelTankSize = 60, -- размер бака
PowerBias = 0.5,
EngineSoundPreset = -1,
--
snd_pitch = 1,
snd_idle = "tdmfura/idle.wav",
snd_low = "tdmfura/low.wav",
snd_low_revdown = "tdmfura/low.wav", -- это всё звук
snd_low_pitch = 1,
snd_mid = "tdmfura/mid.wav",
snd_mid_gearup = "tdmfura/second.wav",
snd_mid_geardown = "tdmfura/second.wav",
snd_mid_pitch = 1,
snd_horn = "simulated_vehicles/horn_5.wav",
snd_blowoff = "simulated_vehicles/turbo_blowoff.ogg",
snd_backfire = "simulated_vehicles/sfx/ex_backfire_1.ogg",
--
DifferentialGear = 0.15,
Gears = {
-0.5, 0, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6,
1.7, 1.8, 1.9
} -- кол-во передач и "мощность"
}
}
if (file.Exists("models/tdmcars/trucks/scania_4x2_nojiggle.mdl", "GAME")) then -- путь модели (".mdl")
list.Set("simfphys_vehicles", "sim_fphys_tdmtruck1", DKCAR) -- изменить на люброе название(например sim_fphys_lalala)
end
------------------------------------------------------
---------template by DK / Пример сделан DK------------
------------------------------------------------------
-- Copyright © 2023 DK Scripts--
AddCSLuaFile()
local light_table = {
ModernLights = true,
L_RearLampPos = Vector(96, -23.6, 3.3), -- расположение задних фар
L_RearLampAng = Angle(0, 0, 0), -- угол поворота фар
R_RearLampPos = Vector(96, 23.6, 3.3), -- расположение задних фар
R_RearLampAng = Angle(0, 0, 0), -- угол поворота фар
Rearlight_sprites = { -- задние фары
{pos = Vector(-32.8, -95, 21.9), size = 25},
{pos = Vector(-25.6, -95, 21.9), size = 25}, --
{pos = Vector(-32.8, -95, 53.8), size = 25}, --
{
pos = Vector(-44.9, -86.8, 26),
size = 25,
color = Color(255, 93, 0, 255)
}, --
{
pos = Vector(-44.9, 41.3, 26),
size = 25,
color = Color(255, 93, 0, 255)
}, {pos = Vector(32.8, -95, 21.9), size = 25},
{pos = Vector(25.6, -95, 21.9), size = 25}, --
{pos = Vector(32.8, -95, 53.8), size = 25}, --
{
pos = Vector(44.9, -86.8, 26),
size = 25,
color = Color(255, 93, 0, 255)
}, --
{
pos = Vector(44.9, 41.3, 26),
size = 25,
color = Color(255, 93, 0, 255)
}
},
ems_sprites = { -- тормозные огни
{
pos = Vector(-32.8, -95, 21.9),
size = 25,
Colors = {Color(255, 0, 0, 255), Color(255, 0, 0, 255)},
Speed = 0.04
}, {
pos = Vector(-25.6, -95, 21.9),
size = 25,
Colors = {Color(255, 0, 0, 255), Color(255, 0, 0, 255)},
Speed = 0.04
}, {
pos = Vector(32.8, -95, 21.9),
size = 25,
Colors = {Color(255, 0, 0, 255), Color(255, 0, 0, 255)},
Speed = 0.04
}, {
pos = Vector(25.6, -95, 21.9),
size = 25,
Colors = {Color(255, 0, 0, 255), Color(255, 0, 0, 255)},
Speed = 0.04
}
},
Turnsignal_sprites = { -- поворотники
Left = { -- левый
{pos = Vector(-32.8, -95, 21.9), size = 25}
},
Right = { -- правый
{pos = Vector(32.8, -95, 21.9), size = 25}
}
}
}
list.Set("simfphys_lights", "tdm_trailer1", light_table) -- здесь тебе нужно изменить "test" на любое другое название, например "myfirstsimfcar"
local DKCAR = {
Name = "Car Trailer123", -- название машины в меню
Model = "models/tdmcars/trailers/car_trailer.mdl", -- модель машины (в вкладке дополнения и проп авто)
Category = "TDM Trailers", -- категория в которой будет машина
SpawnOffset = Vector(0, 0, 61),
SpawnAngleOffset = 0,
Members = {
Mass = 1150, -- масса авто
OnSpawn = function(ent)
ent:Lock() -- locks trailer
Trailers.Init({ent=ent, inputPos = Vector(0, 93, 23.3), outputPos=Vector(0, -200, 23.3)})
-- if ent.SimfIsTrailer ~= nil then
-- ent:SetActive(true) -- makes avtive
-- ent:SetSimfIsTrailer(true) -- Is traieler?true - yes, false - no
-- ent:SetTrailerCenterposition(Vector(0, 93, 23.3)) -- position of center ballsocket for trailer hook
-- ent:SetCenterposition(Vector(0, -96.5, 21.2)) -- position of center ballsocket for tow hitch(trailer coupling)
-- else
-- print(
-- "This trailer support trailers BASE, but you don't installed it")
-- end
end,
OnTick = function(ent)
ent:SetActive(true)
ent:SetTSInternal(3)
if ent.SimfIsTrailer ~= nil then
if not ent:GetIsBraking() then
ent.ForceTransmission = 1
if ent:GetNWBool("zadnyaya_gear", false) then
ent.PressedKeys["joystick_throttle"] = 0 -- makes thottle to 0 when reverse, for remove handbrake
ent.PressedKeys["joystick_brake"] = 1 -- makes brake to 1, for turn on reverse
else
ent.PressedKeys["joystick_throttle"] = 1 -- makes thottle to 1, for remove handbrake
ent.PressedKeys["joystick_brake"] = 0 -- makes brake to 0, for turn off reverse
end
end
end
end,
LightsTable = "tdm_trailer1", -- название light_table
BulletProofTires = false,
CustomSteerAngle = 0,
AirFriction = -3000,
FrontWheelRadius = 14, -- радиус переднего колеса
RearWheelRadius = 0.1, -- радиус заднего колеса
CustomMassCenter = Vector(0, -40, 23.3),
SeatOffset = Vector(226.4, -32.1, 30), -- положение водительского сидения
SeatPitch = 0,
SeatYaw = -90,
MaxHealth = 9999999999,
IsArmored = false,
EnginePos = Vector(0, 0, 0),
StrengthenSuspension = true, -- жесткая подвеска.
FrontHeight = 4, -- высота передней подвески
FrontWheelMass = 200,
FrontConstant = 25000,
FrontDamping = 2000,
FrontRelativeDamping = 2500,
RearHeight = 4, -- высота задней подвески
RearWheelMass = 200,
RearConstant = 25000,
RearDamping = 2000,
RearRelativeDamping = 2500,
FastSteeringAngle = 10,
SteeringFadeFastSpeed = 535,
TurnSpeed = 4,
MaxGrip = 79,
Efficiency = 0.9,
GripOffset = -3,
BrakePower = 0, -- сила торможения
IdleRPM = 0, -- мин. кол-во оборотов
LimitRPM = 0, -- макс. кол-во оборотов
Revlimiter = false, -- Если true - Когда стрелка спидометра доходит до красного обозначения, она не проходит дальше, если false - это игнорируется
PeakTorque = 0, -- крутящий момент
PowerbandStart = 0,
PowerbandEnd = 0,
Turbocharged = false, -- турбо false = нет, true = да
Supercharged = false, -- супер заряд
Backfire = false, -- стреляющий выхлоп
FuelFillPos = Vector(59.5, 55, 11.1), -- положение заправки
FuelType = FUELTYPE_NONE, -- тип топлива
FuelTankSize = 0, -- размер бака
PowerBias = 1,
EngineSoundPreset = 1,
--
snd_pitch = 0.5,
snd_idle = "common/null.wav",
snd_low = "common/null.wav",
snd_low_revdown = "common/null.wav", -- это всё звук
snd_low_pitch = 1,
snd_mid = "common/null.wav",
snd_mid_gearup = "common/null.wav",
snd_mid_geardown = "common/null.wav",
snd_mid_pitch = 2,
snd_horn = "common/null.wav",
snd_blowoff = "common/null.wav",
snd_backfire = "common/null.wav",
--
DifferentialGear = 0.4,
Gears = {-0.2, 0, 0.1} -- кол-во передач и "мощность"
}
}
if (file.Exists("models/tdmcars/trailers/car_trailer.mdl", "GAME")) then -- путь модели (".mdl")
list.Set("simfphys_vehicles", "sim_fphys_tdm_trailer", DKCAR) -- изменить на люброе название(например sim_fphys_lalala)
end
AddCSLuaFile()
--Trailer Transporter
local light_table = {
ModernLights = true,
L_RearLampPos = Vector(96,-23.6,3.3), -- расположение задних фар
L_RearLampAng = Angle(0,0,0), -- угол поворота фар
R_RearLampPos = Vector(96,23.6,3.3), -- расположение задних фар
R_RearLampAng = Angle(0,0,0), -- угол поворота фар
FogLight_sprites = {
{pos = Vector( -48, 294.62, 142.06 -0.4 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( -48, 182.81, 137.15 -0.3 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( -48, 75.34, 132.21),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( -48, -31.94, 128.03 -0.1 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( -48, -138.79, 123.96 -0.2 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( -48, -260.47, 118.93 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( -47, -38.54 -0.6, 32 -0.25 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( -47, -128.94, 31.6 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( -45, -218.2, 26.5 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( 48, 294.62, 142.06 -0.4 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( 48, 182.81, 137.15 -0.3 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( 48, 75.34, 132.21),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( 48, -31.94, 128.03 -0.1 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( 48, -138.79, 123.96 -0.2 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector( 48, -260.47, 118.93 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector(47, -38.54 -0.6, 32 -0.25 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector(47, -128.94, 31.6 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
{pos = Vector(45, -218.2, 26.5 ),size = 5,color=Color(255,120,0,255),material="sprites/light_ignorez"},
},
Rearlight_sprites = { -- задние фары
Vector( -36, -277.6, 26.5 ),
Vector( 36, -277.6, 26.5 ),
{pos = Vector( -43, -272.5, 34 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( -43, -272.5, 37 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( -43, -272.5, 40 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( -43, -272.5, 43 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( -43, -272.5, 46 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( -43, -272.5, 49 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( 43, -272.5, 34 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( 43, -272.5, 37 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( 43, -272.5, 40 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( 43, -272.5, 43 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( 43, -272.5, 46 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
{pos = Vector( 43, -272.5, 49 -1 ),size = 15,color=Color(255,120,0,100),material="sprites/light_ignorez"},
},
ems_sprites = { -- тормозные огни
{pos = Vector( -42.38,-273 -4, 26.71 ),size = 25,Colors = {Color(255,0,0,255),Color(255,0,0,255)},Speed = 0.04,},
{pos = Vector( 42.38, -273 -4, 26.71 ),size = 25,Colors = {Color(255,0,0,255),Color(255,0,0,255)},Speed = 0.04,},
},
Turnsignal_sprites = { -- поворотники
Left = { -- левый
{pos = Vector( -49,-275, 27 + 8.5 ),size = 7,color=Color(255,120,0,255)},
},
Right = { -- правый
{pos = Vector( 49,-275, 27 + 8.5 ),size = 7,color=Color(255,120,0,255)},
},
},
}
list.Set( "simfphys_lights", "lw_transporter_trailer", light_table) -- здесь тебе нужно изменить "test" на любое другое название, например "myfirstsimfcar"
local DKCAR = {
Name = "Transporter Trailer", -- название машины в меню
Model = "models/lonewolfie/trailers/trailer_transporter.mdl", -- модель машины (в вкладке дополнения и проп авто)
Category = "LW Trailers", -- категория в которой будет машина
SpawnOffset = Vector(0,0,61),
SpawnAngleOffset = 0,
Members = {
Mass = 1150, -- масса авто
OnSpawn = function(ent)
ent:Lock()
if Trailers then
Trailers.Init({ent=ent,inputPos=Vector(0,250,35)})
end
-- if ent:SimfIsTrailer() ~= nil then
-- ent:SetActive( true ) -- makes avtive
-- ent:SetSimfIsTrailer(true) -- Is traieler?true - yes, false - no
-- ent:SetCenterposition(Vector(0,250,35)) -- position of center ballsocket for trailer hook 33
-- ent:SetTrailerCenterposition(Vector(0,-96.5,21.2)) -- position of center ballsocket for tow hitch(trailer coupling)
-- else
-- print("This trailer support trailers BASE, but you don't installed it")
-- end
end,
OnTick = function(ent)
local phys = ent:GetPhysicsObject()
local physMass = 1150
if ent:GetBodygroup(1) == 1 then
physMass =physMass+700
end
if ent:GetBodygroup(2) == 1 then
physMass=physMass+700
end
phys:SetMass(physMass)
if ent:SimfIsTrailer() ~= nil then
-- locks trailer
if not ent:GetIsBraking() then
ent.ForceTransmission = 1
if ent:GetNWBool("zadnyaya_gear", false) then
ent.PressedKeys["joystick_throttle"] = 0 -- makes thottle to 0 when reverse, for remove handbrake
ent.PressedKeys["joystick_brake"] = 1 -- makes brake to 1, for turn on reverse
else
ent.PressedKeys["joystick_throttle"] = 1 -- makes thottle to 1, for remove handbrake
ent.PressedKeys["joystick_brake"] = 0 -- makes brake to 0, for turn off reverse
end
end
end
end,
LightsTable = "lw_transporter_trailer", -- название light_table
--[[CustomWheels = true,
CustomSuspensionTravel = 1,
CustomWheelModel = "models/props_phx/wheels/trucktire2.mdl",
CustomWheelPosFL = Vector(-81.4,-44.8,-17.3),
CustomWheelPosFR = Vector(-81.4,44.8,-17.3),
CustomWheelPosRL = Vector(67.7,-44.8,-17.3),
CustomWheelPosRR = Vector(67.7,44.8,-17.3),
CustomWheelAngleOffset = Angle(0,90,0),]]
BulletProofTires = false,
CustomSteerAngle = 0,
AirFriction = -3000,
FrontWheelRadius = 21,--радиус переднего колеса
RearWheelRadius = 21,--радиус заднего колеса
CustomMassCenter = Vector(0,-40,23.3),
SeatOffset = Vector(226.4,-32.1,30), -- положение водительского сидения
SeatPitch = 0,
SeatYaw = -90,
MaxHealth = 9999999999,
IsArmored = false,
EnginePos = Vector(0,0,0),
StrengthenSuspension = true, -- жесткая подвеска.
FrontHeight = 4, -- высота передней подвески
FrontWheelMass = 200,
FrontConstant = 25000,
FrontDamping = 2000,
FrontRelativeDamping = 2500,
RearHeight = 4, -- высота задней подвески
RearWheelMass = 200,
RearConstant = 25000,
RearDamping = 2000,
RearRelativeDamping = 2500,
FastSteeringAngle = 10,
SteeringFadeFastSpeed = 535,
TurnSpeed = 4,
MaxGrip = 79,
Efficiency = 0.9,
GripOffset = -3,
BrakePower = 0, -- сила торможения
IdleRPM = 0, -- мин. кол-во оборотов
LimitRPM = 0, -- макс. кол-во оборотов
Revlimiter = false, -- Если true - Когда стрелка спидометра доходит до красного обозначения, она не проходит дальше, если false - это игнорируется
PeakTorque = 0, -- крутящий момент
PowerbandStart = 0,
PowerbandEnd = 0,
Turbocharged = false, -- турбо false = нет, true = да
Supercharged = false, -- супер заряд
Backfire = false, -- стреляющий выхлоп
FuelFillPos = Vector(59.5,55,11.1), -- положение заправки
FuelType = FUELTYPE_NONE, -- тип топлива
FuelTankSize = 0, -- размер бака
PowerBias = 1,
EngineSoundPreset = 1,
--
snd_pitch = 0.5,
snd_idle = "common/null.wav",
snd_low = "common/null.wav",
snd_low_revdown = "common/null.wav", -- это всё звук
snd_low_pitch = 1,
snd_mid = "common/null.wav",
snd_mid_gearup = "common/null.wav",
snd_mid_geardown = "common/null.wav",
snd_mid_pitch = 2,
snd_horn = "common/null.wav",
snd_blowoff = "common/null.wav",
snd_backfire = "common/null.wav",
--
DifferentialGear = 0.4,
Gears = {-0.2,0,0.1} -- кол-во передач и "мощность"
}
}
if (file.Exists( "models/lonewolfie/trailers/trailer_transporter.mdl", "GAME" )) then -- путь модели (".mdl")
list.Set( "simfphys_vehicles", "sim_fphys_lw_transporter_trailer", DKCAR ) -- изменить на люброе название(например sim_fphys_lalala)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment