Weapon Safety
This simple mod adds a functional safety to all weapons. You cannot fire while the safety is engaged. On AK-family rifles, VSS-family rifles and the SVD, you cannot manipulate the bolt when the safety is on. Unfortunately, I couldn’t find a way to block loading a cartridge when attaching a magazine.
If you want to add support for custom weapons, add the following to the weapon config:
modes[] += { "Safe" }; // It is better to overwrite the array completely so "Safe" is the first mode, but appending works fine. class Safe : Mode_Safe {};
All credit goes to TheAdmiral. I just noticed there wasn’t a mod like this on the Workshop and decided to release it.
Repacking is, of course, allowed — this is just a minor tweak to base game configs and scripts.