Skip to content

LoadAfterShot, LoadAfterReloadEmpty, and ManualReload settings

Vuthakral edited this page Aug 28, 2019 · 3 revisions

Ammunition Loading Animations

LoadAfterShot
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.

LoadAfterReloadEmpty
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.

ManualReload
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.

Clone this wiki locally