add sborka
This commit is contained in:
@@ -0,0 +1 @@
|
||||
include("shared.lua")
|
||||
@@ -0,0 +1,79 @@
|
||||
AddCSLuaFile( "shared.lua" )
|
||||
AddCSLuaFile( "cl_init.lua" )
|
||||
include("shared.lua")
|
||||
|
||||
function ENT:OnSpawn( PObj )
|
||||
self:AddDriverSeat( Vector(-29,17.5,21), Angle(0,-90,-10) )
|
||||
self:AddPassengerSeat( Vector(-11,-17.5,24), Angle(0,-90,10) )
|
||||
self:AddPassengerSeat( Vector(-45,0,24), Angle(0,-90,10) )
|
||||
|
||||
self:AddEngine( Vector(38,0,37) )
|
||||
self:AddFuelTank( Vector(-42.36,0,13.8), Angle(0,0,0), 600, LVS.FUELTYPE_PETROL )
|
||||
|
||||
local WheelModel = "models/diggercars/willys/wh.mdl"
|
||||
|
||||
local FrontAxle = self:DefineAxle( {
|
||||
Axle = {
|
||||
ForwardAngle = Angle(0,0,0),
|
||||
SteerType = LVS.WHEEL_STEER_FRONT,
|
||||
SteerAngle = 30,
|
||||
TorqueFactor = 0.3,
|
||||
BrakeFactor = 1,
|
||||
},
|
||||
Wheels = {
|
||||
self:AddWheel( {
|
||||
pos = Vector(49.5,-27,16),
|
||||
mdl = WheelModel,
|
||||
mdl_ang = Angle(0,180,0),
|
||||
} ),
|
||||
|
||||
self:AddWheel( {
|
||||
pos = Vector(49.5,27,16),
|
||||
mdl = WheelModel,
|
||||
mdl_ang = Angle(0,0,0),
|
||||
} ),
|
||||
},
|
||||
Suspension = {
|
||||
Height = 10,
|
||||
MaxTravel = 7,
|
||||
ControlArmLength = 25,
|
||||
SpringConstant = 20000,
|
||||
SpringDamping = 2000,
|
||||
SpringRelativeDamping = 2000,
|
||||
},
|
||||
} )
|
||||
|
||||
local RearAxle = self:DefineAxle( {
|
||||
Axle = {
|
||||
ForwardAngle = Angle(0,0,0),
|
||||
SteerType = LVS.WHEEL_STEER_NONE,
|
||||
TorqueFactor = 0.7,
|
||||
BrakeFactor = 1,
|
||||
UseHandbrake = true,
|
||||
},
|
||||
Wheels = {
|
||||
self:AddWheel( {
|
||||
pos = Vector(-37,-27,12),
|
||||
mdl = WheelModel,
|
||||
mdl_ang = Angle(0,180,0),
|
||||
} ),
|
||||
|
||||
self:AddWheel( {
|
||||
pos = Vector(-37,27,12),
|
||||
mdl = WheelModel,
|
||||
mdl_ang = Angle(0,0,0),
|
||||
} ),
|
||||
},
|
||||
Suspension = {
|
||||
Height = 10,
|
||||
MaxTravel = 7,
|
||||
ControlArmLength = 25,
|
||||
SpringConstant = 20000,
|
||||
SpringDamping = 2000,
|
||||
SpringRelativeDamping = 2000,
|
||||
},
|
||||
} )
|
||||
|
||||
-- trailer hitch
|
||||
self:AddTrailerHitch( Vector(-68,0,17), LVS.HITCHTYPE_MALE )
|
||||
end
|
||||
@@ -0,0 +1,164 @@
|
||||
|
||||
ENT.Base = "lvs_base_wheeldrive"
|
||||
|
||||
ENT.PrintName = "Willys Jeep"
|
||||
ENT.Author = "Luna"
|
||||
ENT.Information = "Luna's Vehicle Script"
|
||||
ENT.Category = "[LVS] - Cars"
|
||||
|
||||
ENT.VehicleCategory = "Cars"
|
||||
ENT.VehicleSubCategory = "Military"
|
||||
|
||||
ENT.Spawnable = true
|
||||
ENT.AdminSpawnable = false
|
||||
|
||||
ENT.MDL = "models/diggercars/willys/willys.mdl"
|
||||
|
||||
ENT.AITEAM = 2
|
||||
|
||||
ENT.MaxVelocity = 1200
|
||||
|
||||
ENT.EngineCurve = 0.25
|
||||
ENT.EngineTorque = 150
|
||||
|
||||
ENT.TransGears = 4
|
||||
ENT.TransGearsReverse = 1
|
||||
|
||||
ENT.HornSound = "lvs/horn2.wav"
|
||||
ENT.HornPos = Vector(40,0,35)
|
||||
|
||||
ENT.EngineSounds = {
|
||||
{
|
||||
sound = "lvs/vehicles/willy/eng_idle_loop.wav",
|
||||
Volume = 0.5,
|
||||
Pitch = 85,
|
||||
PitchMul = 25,
|
||||
SoundLevel = 75,
|
||||
SoundType = LVS.SOUNDTYPE_IDLE_ONLY,
|
||||
},
|
||||
{
|
||||
sound = "lvs/vehicles/willy/eng_loop.wav",
|
||||
Volume = 1,
|
||||
Pitch = 50,
|
||||
PitchMul = 100,
|
||||
SoundLevel = 75,
|
||||
UseDoppler = true,
|
||||
},
|
||||
}
|
||||
|
||||
ENT.Lights = {
|
||||
{
|
||||
Trigger = "main",
|
||||
SubMaterialID = 0,
|
||||
Sprites = {
|
||||
[1] = {
|
||||
pos = Vector(60.34,-17.52,34.46),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
},
|
||||
[2] = {
|
||||
pos = Vector(60.34,17.52,34.46),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
},
|
||||
[3] = {
|
||||
pos = Vector(-63.41,-20.49,21.1),
|
||||
colorG = 0,
|
||||
colorB = 0,
|
||||
colorA = 150,
|
||||
},
|
||||
},
|
||||
ProjectedTextures = {
|
||||
[1] = {
|
||||
pos = Vector(60.34,-17.52,34.46),
|
||||
ang = Angle(0,0,0),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
shadows = true,
|
||||
},
|
||||
[2] = {
|
||||
pos = Vector(60.34,17.52,34.46),
|
||||
ang = Angle(0,0,0),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
shadows = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Trigger = "main",
|
||||
SubMaterialID = 3,
|
||||
},
|
||||
{
|
||||
Trigger = "high",
|
||||
Sprites = {
|
||||
[1] = {
|
||||
pos = Vector(60.34,-17.52,34.46),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
},
|
||||
[2] = {
|
||||
pos = Vector(60.34,17.52,34.46),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
},
|
||||
},
|
||||
ProjectedTextures = {
|
||||
[1] = {
|
||||
pos = Vector(60.34,-17.52,34.46),
|
||||
ang = Angle(0,0,0),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
shadows = true,
|
||||
},
|
||||
[2] = {
|
||||
pos = Vector(60.34,17.52,34.46),
|
||||
ang = Angle(0,0,0),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
shadows = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Trigger = "brake",
|
||||
SubMaterialID = 2,
|
||||
Sprites = {
|
||||
[1] = {
|
||||
pos = Vector(-63.41,20.49,21.1),
|
||||
colorG = 0,
|
||||
colorB = 0,
|
||||
colorA = 150,
|
||||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
Trigger = "fog",
|
||||
SubMaterialID = 1,
|
||||
Sprites = {
|
||||
[1] = {
|
||||
pos = Vector(61.03,14.6,28.6),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
},
|
||||
[2] = {
|
||||
pos = Vector(61.03,-14.6,28.6),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
},
|
||||
[3] = {
|
||||
pos = Vector(53.09,26.85,35.88),
|
||||
colorB = 200,
|
||||
colorA = 150,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
ENT.ExhaustPositions = {
|
||||
{
|
||||
pos = Vector(-59.32,13.07,12.77),
|
||||
ang = Angle(0,180,0),
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user