• [BUG] Weird sound bug with my swep, please help!
    2 replies, posted
My swep can initiate reload sounds even when the mag is full! It's a really annoying bug, and I've tried just about everything. I don't know much about functions and base coding and stuff like that, but using my reload sounds with CSS skins and putting each model tick into the autorun worked just fine. Now I'm using a gun that I believe is a HL2 skin, cause it only has 3 ticks and theyre all played at the same time, which is 4 seconds AFTER the gun starts reloading. So I used function SWEP:Reload() if self.NextReload > CurTime() then return end self.NextReload = CurTime() + self.ReloadTime self.Weapon:EmitSound( "weapons/blunderbuss/blunderbuss_reload.wav" ) self.Weapon:DefaultReload( ACT_VM_RELOAD ) end And guess what? It works great, my gun works as it should BUT!! My swep can initiate reload sounds even when the mag is full! It doesn't do the actual reload or add or take ammo, it just ticks the sound. It also used to tick the view punches when I had those before I removed them. Please help guys, I can not progress by swep pack until I fix this, It's a very bothersome bug! THANK YOU <3
if self:Clip1() == self.Primary.ClipSize then return end
Trying this now thanks for you response! [editline]12th August 2013[/editline] IT WORKED I LOVE YOU SO MUCH. THANK YOU! It's sad this bug has taken at least 8 hours of my life away trying to solve and it was just one line.
Sorry, you need to Log In to post a reply to this thread.