How does the Reload function work

Hey guise, I’m trying to get a few sweps working.

I can’t seem to get reloading to work, or even understand what it is doing.
Every Swep example Ive seen just uses

self.Weapon:DefaultReload( ACT_VM_RELOAD );

What does this even do?

For all but one of my sweps, the HD doesn’t display the ammo and I can’t even reload.

Thanks guys

That just makes it reload, pretty much perfectly in most cases (not shotguns). I guess its tied to the model or something, shotguns to one reload of one shell, but they don’t cock the gun again.

As long as you have SWEP.Primary.stuff all setup correctly, it should work fine.

SWEP.Primary.Sound = Sound( “Weapon_MP5Navy.Single” )
SWEP.Primary.Recoil = 0.1
SWEP.Primary.Damage = 11
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.04
SWEP.Primary.ClipSize = 30
SWEP.Primary.Delay = 0.06
SWEP.Primary.DefaultClip = 210
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = “smg1”

I have that for a smg, however the model plays like only 1 frame and it reloads, making it an instant reload.
SWEP.Primary.Sound = Sound( “Weapon_TMP.Single”)
SWEP.Primary.Recoil = 0.5;
SWEP.Primary.Damage = 55;
SWEP.Primary.NumShots = 1;
SWEP.Primary.Cone = 0.0;
SWEP.Primary.ClipSize = 10;
SWEP.Primary.Delay = 1;
SWEP.Primary.DefaultClip = 30;
SWEP.Primary.Automatic = false;
SWEP.Primary.Ammo = “sniper1”;

I have this for my sniper rifle. It does not show the ammo and cannot reload.