zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_baseproj/cl_init.lua

15 lines
345 B
Lua
Raw Normal View History

INC_CLIENT()
SWEP.ViewModelFlip = false
function SWEP:ShootBullets(damage, numshots, cone)
local owner = self:GetOwner()
self:SendWeaponAnimation()
owner:DoAttackEvent()
if self.Recoil > 0 then
local r = math.Rand(0.8, 1)
owner:ViewPunch(Angle(r * -self.Recoil, 0, (1 - r) * (math.random(2) == 1 and -1 or 1) * self.Recoil))
end
end