• Problem with SWEP Silenced attack
    1 replies, posted
I'm working on my custom SWEP base and already added silencer support Here is my part of Primary attack code that responsible for viewmodel's attack animations  if self:GetNWBool("Silenced") == true then    if  self:Clip1() > 1 then    self:SendWeaponAnim( ACT_VM_PRIMARYATTACK_SILENCED )   elseif self:Clip1() == 1 then    self:SendWeaponAnim( ACT_VM_DRYFIRE_SILENCED )   end   self:EmitSound(Sound(self.Primary.SilencedSound))   else   if  self:Clip1() > 1 then    self:SendWeaponAnim( ACT_VM_PRIMARYATTACK )   elseif self:Clip1() == 1 then    self:SendWeaponAnim( ACT_VM_DRYFIRE )   end   self:EmitSound(Sound(self.Primary.Sound))   end But ACT_VM_PRIMARYATTACK_SILENCED doesn't work. It shoots but without silencer (It hides and I don't know why). Other custom SWEPs works pretty good with such code, but not my. Can anyone help with that ?
Does the model support those activities? Are you sure the NWBool is set to true server-side?
Sorry, you need to Log In to post a reply to this thread.