Makes AK/M308 Scope Mount users stop lagging the game (or at least helps reduce it)
I originally made this for and ripped it from the dev-branch of Restroom-nation Mod
Mod that caches the overrides and forbids data of weapon blueprints as a means of reducing the hitching caused by doing a gorillion for loops looking through potentially giant f-off overrides and forbids tables every time certain functions get called.
From what others in the resmod community and I have (briefly) tested, it helps with reducing (and reportedly outright removing in some cases) the hitching and stuttering when:
Highlighting attachments in the weapon mod menu of a kitted out weapon/a weapon using attachments with giant override/forbid table.
there may still be lag but AFAIK this is from the UI grabbing stats for the attachments
Switching to and from the underbarrel of a kitted out weapon/a weapon using attachments with giant override/forbid tables
In-heist when connected clients switch to a kitted out weapon/a weapon using attachments with giant override/forbid tables (notice a trend?)
Mainly for the dreaded AK/M308 scope mounts and any other similarly set up attachment that has an override for every optic in the game
The mod will also clear the cache whenever a blueprint change is done as to avoid storing and using stale data.
If there are any adverse effects stemming from this do toss a report.