Single-bullet Reload System
(Alternatively known as the: Single Action Reload System)
Ever wanted to top up your magazine, but not waste time going through the whole reload cycle?
Or perhaps role-play a handful of survivors of the zombie apocalypse, carefully conserving their ammo?
Regardless of your answer to either of those questions, this script is for you! 8)
Credits: Idea and code both by me (AL).
Written for Soldat Server Version: 2.7.3 (Client v1.6.3)
Synopsis: Adds a (optional) 'spas style' bullet-by-bullet reload mechanic to all weapons (should work even with weapon mods).
Players can choose whether to perform the normal full reload by tapping the reload key, or to use my reload system by holding the reload key instead.
Code snippets:
(None! - With the whole script being only ~60 lines long, I may as well just paste the full thing in directly)
Notes:
- For best results: release your reload key once your weapon switches to a spas, and run soldatserver with '-safe 0' for optimal timings
(if you don't, you will trigger a normal reload when your wep switches back again) the script will wait for you to release the reload button before proceeding (as of v1.1) - You may want to add some kind of messaging system to tell your players that this script actually exists. The script by itself does not add anything of the sort.
- The code is uncommented, due to its comparatively tiny length and a (small?) degree of laziness from myself
Known Issues/Bugs:
- Idle animations such as /tabac cancel the reloading sequence
- If you change weapons twice (quickly), the ammo you start reloading from is sometimes different from what it should be
- Any person with reasonable reflexes can turn their gun into a spas (reduced from outright spawning a new spas)