Once again sticking my neck out . . . :beat:
From what I can tell the various optics are all defined classes in the master config. All you have to do is copy the necessary optics entries to your weapon.
For example (rustles up a copy of the master config), the optics for the NVGoggles are apparently -
opticsZoomMin=1.0;
opticsZoomMax=1.0;
modelOptics="optika_night";The optics for (say) the Dragunov are -
opticsZoomMin=0.04;
opticsZoomMax=0.04;
modelOptics = "optika_snpiere";There are some other enties under SniperRiffle which may be relevant here (such as "optics" and "opticsflare") but I'd have to do some research to determine which ones are necessary for the prposed addon.
From what I can tell, if you want to have multiple optics on the same weapon all you'd have to do is define two Magazine types of nearly the same type for your weapon - say IR and Visual. In the config for these magazine types you'd put the above optics entries in. Of course you would make sure that they both had the same Min and Max zoom, say 0.1 or something like that.
As I said - I'd be really keen to try to make something like this up. I'm very busy with other projects and real life (rats !) at the moment but I WILL try soemthing later this month.
If anyone else wanted to tackle this in the meanwhile then please be my guest !
Cheers
Roni