59 lines
951 B
Lua
59 lines
951 B
Lua
SWEP.Name = "Item"
|
|
|
|
SWEP.AnimPrefix = "none"
|
|
SWEP.HoldType = "normal"
|
|
|
|
SWEP.Spawnable = true
|
|
SWEP.AdminSpawnable = true
|
|
|
|
SWEP.Primary.ClipSize = -1
|
|
SWEP.Primary.DefaultClip = -1
|
|
SWEP.Primary.Automatic = false
|
|
SWEP.Primary.Ammo = "none"
|
|
|
|
SWEP.Secondary.ClipSize = -1
|
|
SWEP.Secondary.DefaultClip = -1
|
|
SWEP.Secondary.Automatic = false
|
|
SWEP.Secondary.Ammo = "none"
|
|
|
|
SWEP.DrawCrosshair = false
|
|
SWEP.Primary.Sound = Sound("")
|
|
|
|
SWEP.WorldModel = ""
|
|
|
|
SWEP.WalkSpeed = SPEED_NORMAL
|
|
|
|
function SWEP:Initialize()
|
|
end
|
|
|
|
function SWEP:SetWeaponHoldType()
|
|
end
|
|
|
|
function SWEP:PrimaryAttack()
|
|
end
|
|
|
|
function SWEP:SecondaryAttack()
|
|
end
|
|
|
|
function SWEP:Reload()
|
|
end
|
|
|
|
function SWEP:Deploy()
|
|
if SERVER then
|
|
if GAMEMODE.ZombieEscape then
|
|
self.Owner:SelectWeapon("weapon_zs_zeknife")
|
|
else
|
|
self.Owner:SelectWeapon("weapon_zs_fists")
|
|
end
|
|
end
|
|
return true
|
|
end
|
|
|
|
function SWEP:CanPrimaryAttack()
|
|
return false
|
|
end
|
|
|
|
function SWEP:CanSecondaryAttack()
|
|
return false
|
|
end
|
|
|