I haven't been a developer in GSC, so can't speak with the same authority of one, but it's my understanding that the engine checks the pre-defined variables when a weapon right clicked, then further checks if those variables are active in the relevant weapon_name.ltx files (if so, in what way) or not (e.g. as 0,1,2 --as pre-defined values again)
if scope_status is given 2 then it'll be offered to be attached , if 0 then not, for example.
engine checks the right click assigned variables' pre-defined values, e.g. 0, 1, 2 .
I don't think you can force a new different "function" on the variable, if you are thinking to change the function of a current variable in the game.
I don't mean it cannot be ever made, but such an answer can only come from the likes of original AMK team and Russo, in addition to the GSC developers. (ps: some AMK members have had connections with GSC, anyway, as far as I'm aware)
---------------
PS: as a side note, I wouldn't think a Fallout 3 style "weapon repair ability by using found weapons" could be helpful in SoC. Because, while there are quite few weapons in Fallout 3 from which you can take parts and repair your own weapon, in SoC there are bundles of weapons tossed around, and if that would be the case then your weapon would never get even a slight change to deteriorate, because there will a more than a few in avery couple steps which would be available as a repair parts. Just a thought, though.
