zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_butcherknifez.lua

18 lines
315 B
Lua
Raw Normal View History

2014-10-02 08:49:54 +08:00
AddCSLuaFile()
SWEP.Base = "weapon_zs_butcherknife"
SWEP.ZombieOnly = true
SWEP.MeleeDamage = 30
SWEP.Primary.Delay = 0.4
function SWEP:OnMeleeHit(hitent, hitflesh, tr)
if not hitent:IsPlayer() then
self.MeleeDamage = 11
end
end
function SWEP:PostOnMeleeHit(hitent, hitflesh, tr)
self.MeleeDamage = 24
end