As described in the title, the isIRLaserOn and isFlashlightOn scripting commands don't support the lasers configured in optics slots, which have been added in v2.12, always returning false.
This is especially problematic in BettIR, which relies on these values to determine if the lasers should be re-enabled after switching the device variants (which is why I tagged the severity this way, although it's probably not as important for other players).
Reproduction steps:
Equip an optic with a laser, e.g. MARS or InSight ISM IR from CUP mod (the latter also has an IR flood light)
Enable the laser
Run player isIRLaserOn (currentWeapon player) in the console, and similarly run the same code with isFlashlightOn instead
observe that both commands return false
Expected result: true should be returned if a laser is enabled in either of the two slots