mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
fix npc aiming bad
This commit is contained in:
parent
afef8a94db
commit
402bf96bda
@ -6,7 +6,7 @@ function SWEP:NPC_PrimaryAttack()
|
||||
|
||||
self:SetBaseSettings()
|
||||
self:SetShouldHoldType()
|
||||
self:DoShootSounds()
|
||||
self:DoShootSounds(true)
|
||||
self:DoEffects()
|
||||
self:DoEject()
|
||||
|
||||
|
@ -87,10 +87,10 @@ local soundtab6 = {
|
||||
name = "shootdistantindoor"
|
||||
}
|
||||
|
||||
function SWEP:DoShootSounds()
|
||||
function SWEP:DoShootSounds(npc)
|
||||
local randomChoice = self.RandomChoice
|
||||
local pvar = swepGetProcessedValue(self, "ShootPitchVariation", true)
|
||||
local pvrand = util.SharedRandom("ARC9_sshoot", -pvar, pvar)
|
||||
local pvrand = npc and math.Rand(-pvar, pvar) or util.SharedRandom("ARC9_sshoot", -pvar, pvar)
|
||||
|
||||
local sstr = lsstr
|
||||
local sslr = lsslr
|
||||
|
Loading…
Reference in New Issue
Block a user