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

14 lines
345 B
Lua

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