Initial commit
This commit is contained in:
69
addons/qwb/lua/weapons/qwb_ump45.lua
Normal file
69
addons/qwb/lua/weapons/qwb_ump45.lua
Normal file
@@ -0,0 +1,69 @@
|
||||
AddCSLuaFile()
|
||||
|
||||
SWEP.Base = 'weapon_base_qwb'
|
||||
|
||||
SWEP.WorldModel = 'models/weapons/w_smg_ump45.mdl'
|
||||
|
||||
SWEP.PrintName = 'UMP-45'
|
||||
SWEP.Category = 'qurs\' weapons base'
|
||||
|
||||
SWEP.Spawnable = true
|
||||
SWEP.AdminOnly = false
|
||||
|
||||
SWEP.IronsightOffset = Vector(-6, -0.88, 5.7)
|
||||
SWEP.IronsightAngle = Angle(0, -2, 0)
|
||||
SWEP.IronsightZNear = 0.4
|
||||
|
||||
SWEP.Primary.Sound = 'Weapon_UMP45.Single'
|
||||
SWEP.Primary.Damage = 5
|
||||
SWEP.Primary.NumShots = 1
|
||||
SWEP.Primary.Spread = 0.01
|
||||
SWEP.Primary.Delay = 0.1
|
||||
|
||||
SWEP.Primary.ClipSize = 30
|
||||
SWEP.Primary.DefaultClip = 0
|
||||
SWEP.Primary.Automatic = true
|
||||
SWEP.Primary.Ammo = 'SMG1'
|
||||
|
||||
SWEP.Recoil = 2
|
||||
SWEP.HorizontalRecoil = 6.5
|
||||
|
||||
SWEP.HoldType = 'smg'
|
||||
|
||||
SWEP.ShellType = '57'
|
||||
SWEP.ShellOffset = Vector(-5, 1, 1.5)
|
||||
SWEP.ShellVelocity = 65
|
||||
|
||||
SWEP.AimSound = Sound('weapons/ammopickup.wav')
|
||||
|
||||
-- Attachments
|
||||
SWEP.Attachments = {
|
||||
sights = {
|
||||
holo_sight = {
|
||||
name = 'Holo sight',
|
||||
mdl = 'models/attachment/crysis_holo.mdl',
|
||||
pos = Vector(-3, 1.3, 6.95),
|
||||
ang = Angle(-10, 0, 0),
|
||||
scale = 1,
|
||||
|
||||
sightCameraOffset = Vector(0, 0, 0.5),
|
||||
sightCameraAngleOffset = Angle(),
|
||||
},
|
||||
|
||||
optical_sight = {
|
||||
name = 'Optical sight',
|
||||
mdl = 'models/attachment/crysis_holo.mdl',
|
||||
pos = Vector(-3, 1.3, 6.95),
|
||||
ang = Angle(-10, 0, 0),
|
||||
scale = 1,
|
||||
|
||||
sightCameraOffset = Vector(0, 0, 0.5),
|
||||
sightCameraAngleOffset = Angle(),
|
||||
|
||||
opticPos = Vector(3.5, -0.3, 1.75), -- the position of the rendered crosshair relative to the attachment model
|
||||
opticAng = Angle(-90, 0, 0),
|
||||
opticSize = {80, 80},
|
||||
opticFOV = 5,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user