I didn't realize this till now, but evidently enemies in Dark Forces can't see you in pitch black and you can use infrared googles as an advantage in this case.
In JA enemies won't see you if you're standing in front of them in pitch black. Neither will they detect you if you're walk crouched while you're out of sight.