by frag.machine » Sat Nov 09, 2013 1:54 am
@Cobalt: ambient sounds are played every time the engine detects a brush of sky, water, lava or slime in the player's PVS. These sounds are not related to any entity at all.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC 
(LordHavoc)