It is also used to indicate surprise. "Sular gitmis!". "Bu yemek cok aci olmus!" - heard right after taking a bite :)
How would you say: he allegedly died in front of me. O gozümden öldumek?
That might happen, for example, when you’re in a train, and you think the person in front of you is sleeping. At some point you realize that he’s dead and then you might form a sentence like that.
If you had witnessed the person dying when he was dying, not as an after the fact realization, then you’d say “gözümün önünde öldü”. Because you knew he was dying when it was happening.