SWEP Reload Animation

I’m trying to do reload animations to my SWEP, but this doesn’t work:



self.Weapon:DefaultReload( ACT_VM_RELOAD )


The whole function:



function SWEP:Reload()

if(  self.Primary.Clip != self.Primary.ClipSize and !self.Reloading ) then

self.Weapon:EmitSound( self.ReloadSound )

self.Weapon:DefaultReload( ACT_VM_RELOAD )

self.Reloading = true

timer.Create( CurTime().."reload", 1, 1, function() self.Reloading = false end )

self.Primary.Clip = self.Primary.ClipSize


end


end


Any ideas?

EDIT: self.Weapon:SendWeaponAnim( ACT_VM_RELOAD ) was the solution

I know this is old, but: does the weapon actually reload and not show the animation or does it do nothing at all?

Whats the view model name?

(ex: “models/weapons/v_pistol_p228”)

Ok, who said my post was dumb? I ask because I experienced this exact problem and no one on here could fix it for me. So I wanted to make sure it was the same issue. Idiot…

Anyway, what fixed the problem for me was re-downloading the CSS content on my server. Even though it was installed, (or it said it had anyway), I just tried it after hours of trying other things. And suddenly it was fixed.

So, it is either that, or a problem with the base.

Edit: Oh, didn’t see you editted a fix to the OP, I guess it was a different issue than I was describing. Glad its solved for you.