mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
npc spawn with reloaded gun
This commit is contained in:
parent
69f20e4105
commit
ab569c4b6e
@ -103,6 +103,9 @@ function SWEP:NPC_Initialize()
|
||||
self.LoadedPreset = true
|
||||
|
||||
if CLIENT then return end
|
||||
|
||||
self.Primary.DefaultClip = self:GetProcessedValue("ClipSize")
|
||||
self:SetClip1(self.ClipSize > 0 and math.max(1, self.Primary.DefaultClip) or self.Primary.DefaultClip)
|
||||
|
||||
timer.Simple(0.1, function()
|
||||
if IsValid(self) and !self.WeaponWasGiven and arc9_npc_atts:GetBool() then
|
||||
|
Loading…
Reference in New Issue
Block a user