15 lines
345 B
Lua
15 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
|