zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_redeemers.lua
William Moodhe e9da54c2f9 ZS updates for 2014-2018
Too many changes to list.
2018-05-01 18:32:59 -04:00

59 lines
1.3 KiB
Lua

AddCSLuaFile()
SWEP.PrintName = "'Redeemers' Dual Handguns"
SWEP.Slot = 1
SWEP.SlotPos = 0
if CLIENT then
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
SWEP.ConeMax = 2.75
SWEP.ConeMin = 2.5
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_RELOAD_SPEED, 0.1)
function SWEP:SecondaryAttack()
end
function SWEP:SendWeaponAnimation()
self:SendWeaponAnim(self:Clip1() % 2 == 0 and ACT_VM_PRIMARYATTACK or ACT_VM_SECONDARYATTACK)
end
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