SWEP.Base = "weapon_zs_base_enemy"

SWEP.ViewModel = "models/weapons/v_knife_t.mdl"
SWEP.WorldModel = "models/weapons/w_knife_t.mdl"

SWEP.Primary.Delay = 0.4

SWEP.Secondary.Delay = 0.22

SWEP.SpitWindUp = 1.25
SWEP.PounceWindUp = 1.25

SWEP.MeleeHitDetection = {
	traceEndDistance = 35,
	traceEndExtraHeight = 10,
	hitScanHeight = 1.7,
	hitScanRadius = 10,
	upZThreshold = 0.25,
	upZHeight = 47,
	upZaimDistance = 1,
	downZThreshold = 0.25,
	downZHeight = 0,
	downZaimDistance = 10
}

function SWEP:Precache()
	util.PrecacheSound("npc/headcrab_poison/ph_scream1.wav")
	util.PrecacheSound("npc/headcrab_poison/ph_scream2.wav")
	util.PrecacheSound("npc/headcrab_poison/ph_scream3.wav")
	util.PrecacheSound("npc/headcrab_poison/ph_jump1.wav")
	util.PrecacheSound("npc/headcrab_poison/ph_jump2.wav")
	util.PrecacheSound("npc/headcrab_poison/ph_jump3.wav")
	util.PrecacheSound("npc/headcrab_poison/ph_poisonbite1.wav")
	util.PrecacheSound("npc/headcrab_poison/ph_poisonbite2.wav")
	util.PrecacheSound("npc/headcrab_poison/ph_poisonbite3.wav")
end

function SWEP:GetNextSpit()
	return self:GetDTFloat(0)
end

function SWEP:IsGoingToSpit()
	return self:GetNextSpit() > 0
end

function SWEP:GetLeaping()
	return self:GetDTBool(0)
end
SWEP.IsLeaping = SWEP.GetLeaping

function SWEP:GetNextLeap()
	return self:GetDTFloat(1)
end

function SWEP:IsGoingToLeap()
	return self:GetNextLeap() > 0
end

function SWEP:ShouldPlayLeapAnimation()
	return self:IsLeaping() or self:IsGoingToLeap()
end