-
Notifications
You must be signed in to change notification settings - Fork 1
LoadAfterShot, LoadAfterReloadEmpty, and ManualReload settings
SWEP.LoadAfterShot = true / false (default: false) (works for both gun & battery base)
This will cause the weapon to play a manual cycle animation (called via viewmodel event ACT_SHOTGUN_PUMP) after every shot made. This will make the gun unable to fire until this has been performed.
SWEP.LoadAfterReloadEmpty = true/false (default: false) (only applicable to the gun base)
If set to true, when firing off the last shot in your weapon's primary clip it will prevent the last shot from doing a LoadAfterShot animation, and instead play the animation after the weapon has been reloaded, to cycle out the empty round/shell/etc and cycle in the new ammunition.
Setting to false will result in LoadAfterShot playing the cycle animation even on the last shot.
SWEP.ManualReload = true/false (default: false) (only applicable to the gun base)
Man I'm proud of this one, and at the same time sad that I've never seen anyone do this in gmod before. ManualReload is a setting that, when set to true, will cause the weapon to reload one shot at a time as long as the reload key is held. This is useful for shotguns or manually-loading rifles. Setting to false will just cause reloading to play a standard ACT_VM_RELOAD and the weapon will reload.