Almost all of Q1 gameplay is in quakec, which is a a simple c-like language targeting a little VM. Eventually they've opersourced all of the code making the community possible.
I recently started playing Q1 again and it's amazing: the community still supports a number of derivative engines, as well as numerous amazing mods and maps. Arcane Dimensions are insane!
https://en.m.wikipedia.org/wiki/QuakeC