2014-10-02 08:49:54 +08:00
|
|
|
AddCSLuaFile()
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.PrintName = "'Redeemers' Dual Handguns"
|
|
|
|
SWEP.Slot = 1
|
|
|
|
SWEP.SlotPos = 0
|
2014-10-02 08:49:54 +08:00
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
if CLIENT then
|
2014-10-02 08:49:54 +08:00
|
|
|
SWEP.ViewModelFlip = false
|
|
|
|
SWEP.ViewModelFOV = 50
|
|
|
|
|
|
|
|
SWEP.HUD3DBone = "v_weapon.slide_right"
|
|
|
|
SWEP.HUD3DPos = Vector(1, 0.1, -1)
|
|
|
|
SWEP.HUD3DScale = 0.015
|
|
|
|
end
|
|
|
|
|
|
|
|
SWEP.Base = "weapon_zs_base"
|
|
|
|
|
|
|
|
SWEP.HoldType = "duel"
|
|
|
|
|
|
|
|
SWEP.ViewModel = "models/weapons/cstrike/c_pist_elite.mdl"
|
|
|
|
SWEP.WorldModel = "models/weapons/w_pist_elite.mdl"
|
|
|
|
SWEP.UseHands = true
|
|
|
|
|
|
|
|
SWEP.Primary.Sound = Sound("Weapon_ELITE.Single")
|
|
|
|
SWEP.Primary.Damage = 22
|
|
|
|
SWEP.Primary.NumShots = 1
|
|
|
|
SWEP.Primary.Delay = 0.15
|
|
|
|
|
|
|
|
SWEP.Primary.ClipSize = 30
|
|
|
|
SWEP.Primary.Automatic = true
|
|
|
|
SWEP.Primary.Ammo = "pistol"
|
|
|
|
SWEP.Primary.DefaultClip = 150
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.ConeMax = 2.75
|
|
|
|
SWEP.ConeMin = 2.5
|
|
|
|
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_RELOAD_SPEED, 0.1)
|
2014-10-02 08:49:54 +08:00
|
|
|
|
|
|
|
function SWEP:SecondaryAttack()
|
|
|
|
end
|
|
|
|
|
|
|
|
function SWEP:SendWeaponAnimation()
|
|
|
|
self:SendWeaponAnim(self:Clip1() % 2 == 0 and ACT_VM_PRIMARYATTACK or ACT_VM_SECONDARYATTACK)
|
|
|
|
end
|
2018-05-02 06:32:59 +08:00
|
|
|
|
|
|
|
if not CLIENT then return end
|
|
|
|
|
|
|
|
function SWEP:GetTracerOrigin()
|
|
|
|
local owner = self:GetOwner()
|
|
|
|
if owner:IsValid() then
|
|
|
|
local vm = owner:GetViewModel()
|
|
|
|
if vm and vm:IsValid() then
|
|
|
|
local attachment = vm:GetAttachment(self:Clip1() % 2 + 3)
|
|
|
|
if attachment then
|
|
|
|
return attachment.Pos
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|